pub struct CreateDeepAgentParams {
pub tools: Vec<ToolBox>,
pub instructions: String,
pub middleware: Vec<Arc<dyn AgentMiddleware>>,
pub model: Option<Arc<dyn LanguageModel>>,
pub subagents: Vec<SubAgentConfig>,
pub context_schema: Option<String>,
pub checkpointer: Option<Arc<dyn Checkpointer>>,
pub tool_configs: HashMap<String, HitlPolicy>,
}
Expand description
Parameters for create_deep_agent() that mirror the Python API exactly
This struct matches the Python function signature:
def create_deep_agent(
tools: Sequence[Union[BaseTool, Callable, dict[str, Any]]] = [],
instructions: str = "",
middleware: Optional[list[AgentMiddleware]] = None,
model: Optional[Union[str, LanguageModelLike]] = None,
subagents: Optional[list[SubAgent | CustomSubAgent]] = None,
context_schema: Optional[Type[Any]] = None,
checkpointer: Optional[Checkpointer] = None,
tool_configs: Optional[dict[str, bool | ToolConfig]] = None,
)
Fields§
§tools: Vec<ToolBox>
§instructions: String
§middleware: Vec<Arc<dyn AgentMiddleware>>
§model: Option<Arc<dyn LanguageModel>>
§subagents: Vec<SubAgentConfig>
§context_schema: Option<String>
§checkpointer: Option<Arc<dyn Checkpointer>>
§tool_configs: HashMap<String, HitlPolicy>
Trait Implementations§
Source§impl Default for CreateDeepAgentParams
impl Default for CreateDeepAgentParams
Source§fn default() -> CreateDeepAgentParams
fn default() -> CreateDeepAgentParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateDeepAgentParams
impl !RefUnwindSafe for CreateDeepAgentParams
impl Send for CreateDeepAgentParams
impl Sync for CreateDeepAgentParams
impl Unpin for CreateDeepAgentParams
impl !UnwindSafe for CreateDeepAgentParams
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