pub struct SubAgentConfig {
pub name: String,
pub description: String,
pub instructions: String,
pub tools: Option<Vec<Arc<dyn ToolHandle>>>,
pub planner: Option<Arc<dyn PlannerHandle>>,
}
Expand description
Configuration for creating and registering a subagent using a simple, Python-like shape.
This mirrors the Python SubAgent TypedDict:
class SubAgent(TypedDict):
name: str
description: str
prompt: str
tools: NotRequired[list[str]]
model_settings: NotRequired[dict[str, Any]]
Fields§
§name: String
§description: String
§instructions: String
§tools: Option<Vec<Arc<dyn ToolHandle>>>
§planner: Option<Arc<dyn PlannerHandle>>
Trait Implementations§
Source§impl IntoIterator for SubAgentConfig
impl IntoIterator for SubAgentConfig
Auto Trait Implementations§
impl Freeze for SubAgentConfig
impl !RefUnwindSafe for SubAgentConfig
impl Send for SubAgentConfig
impl Sync for SubAgentConfig
impl Unpin for SubAgentConfig
impl !UnwindSafe for SubAgentConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more