(
agent: String,
description: String,
prompt: String,
background: bool,
max_steps: Option<u32>,
)
| 5849 | } |
| 5850 | |
| 5851 | fn delegate_task_args( |
| 5852 | agent: String, |
| 5853 | description: String, |
| 5854 | prompt: String, |
| 5855 | background: bool, |
| 5856 | max_steps: Option<u32>, |
| 5857 | ) -> serde_json::Value { |
| 5858 | let mut args = serde_json::json!({ |
| 5859 | "agent": agent, |
| 5860 | "description": description, |
| 5861 | "prompt": prompt, |
| 5862 | }); |
| 5863 | if background { |
| 5864 | args["background"] = serde_json::json!(true); |
| 5865 | } |
| 5866 | if let Some(max_steps) = max_steps { |
| 5867 | args["max_steps"] = serde_json::json!(max_steps); |
| 5868 | } |
| 5869 | args |
| 5870 | } |
| 5871 | |
| 5872 | fn parallel_task_args(tasks: serde_json::Value) -> PyResult<serde_json::Value> { |
| 5873 | if !tasks.is_array() { |
no outgoing calls