From 32a55652fe31339acb77c84ee6f2f01a213b1a31 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Wed, 18 Feb 2026 14:52:57 -0700 Subject: [PATCH] fix: Fixed a bug in the new supervisor and todo built-ins that was causing errors with OpenAI models --- src/function/supervisor.rs | 3 +++ src/function/todo.rs | 1 + 2 files changed, 4 insertions(+) diff --git a/src/function/supervisor.rs b/src/function/supervisor.rs index d424b04..ec73f20 100644 --- a/src/function/supervisor.rs +++ b/src/function/supervisor.rs @@ -128,6 +128,7 @@ pub fn supervisor_function_declarations() -> Vec { description: "List all currently running subagents and their status.".to_string(), parameters: JsonSchema { type_value: Some("object".to_string()), + properties: Some(IndexMap::new()), ..Default::default() }, agent: false, @@ -211,6 +212,7 @@ pub fn supervisor_function_declarations() -> Vec { description: "List all tasks in the task queue with their status and dependencies.".to_string(), parameters: JsonSchema { type_value: Some("object".to_string()), + properties: Some(IndexMap::new()), ..Default::default() }, agent: false, @@ -289,6 +291,7 @@ pub fn teammate_function_declarations() -> Vec { description: "Check for and drain all pending messages in your inbox from sibling agents or your parent.".to_string(), parameters: JsonSchema { type_value: Some("object".to_string()), + properties: Some(IndexMap::new()), ..Default::default() }, agent: false, diff --git a/src/function/todo.rs b/src/function/todo.rs index e4c2738..da73f5e 100644 --- a/src/function/todo.rs +++ b/src/function/todo.rs @@ -71,6 +71,7 @@ pub fn todo_function_declarations() -> Vec { description: "Display the current todo list with status of each item.".to_string(), parameters: JsonSchema { type_value: Some("object".to_string()), + properties: Some(IndexMap::new()), ..Default::default() }, agent: false,