fix: Fixed a bug in the new supervisor and todo built-ins that was causing errors with OpenAI models
This commit is contained in:
@@ -128,6 +128,7 @@ pub fn supervisor_function_declarations() -> Vec<FunctionDeclaration> {
|
|||||||
description: "List all currently running subagents and their status.".to_string(),
|
description: "List all currently running subagents and their status.".to_string(),
|
||||||
parameters: JsonSchema {
|
parameters: JsonSchema {
|
||||||
type_value: Some("object".to_string()),
|
type_value: Some("object".to_string()),
|
||||||
|
properties: Some(IndexMap::new()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
agent: false,
|
agent: false,
|
||||||
@@ -211,6 +212,7 @@ pub fn supervisor_function_declarations() -> Vec<FunctionDeclaration> {
|
|||||||
description: "List all tasks in the task queue with their status and dependencies.".to_string(),
|
description: "List all tasks in the task queue with their status and dependencies.".to_string(),
|
||||||
parameters: JsonSchema {
|
parameters: JsonSchema {
|
||||||
type_value: Some("object".to_string()),
|
type_value: Some("object".to_string()),
|
||||||
|
properties: Some(IndexMap::new()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
agent: false,
|
agent: false,
|
||||||
@@ -289,6 +291,7 @@ pub fn teammate_function_declarations() -> Vec<FunctionDeclaration> {
|
|||||||
description: "Check for and drain all pending messages in your inbox from sibling agents or your parent.".to_string(),
|
description: "Check for and drain all pending messages in your inbox from sibling agents or your parent.".to_string(),
|
||||||
parameters: JsonSchema {
|
parameters: JsonSchema {
|
||||||
type_value: Some("object".to_string()),
|
type_value: Some("object".to_string()),
|
||||||
|
properties: Some(IndexMap::new()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
agent: false,
|
agent: false,
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ pub fn todo_function_declarations() -> Vec<FunctionDeclaration> {
|
|||||||
description: "Display the current todo list with status of each item.".to_string(),
|
description: "Display the current todo list with status of each item.".to_string(),
|
||||||
parameters: JsonSchema {
|
parameters: JsonSchema {
|
||||||
type_value: Some("object".to_string()),
|
type_value: Some("object".to_string()),
|
||||||
|
properties: Some(IndexMap::new()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
agent: false,
|
agent: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user