MCPcopy Create free account
hub / github.com/AI45Lab/Code / rust_agent_definition_to_py

Function rust_agent_definition_to_py

sdk/python/src/lib.rs:4714–4728  ·  view source on GitHub ↗
(def: RustAgentDefinition)

Source from the content-addressed store, hash-verified

4712}
4713
4714fn rust_agent_definition_to_py(def: RustAgentDefinition) -> PyAgentDefinition {
4715 PyAgentDefinition {
4716 name: def.name,
4717 description: def.description,
4718 native: def.native,
4719 hidden: def.hidden,
4720 model: def.model.map(|model| model.model_ref()),
4721 prompt: def.prompt,
4722 max_steps: def.max_steps,
4723 confirmation_inheritance: def
4724 .confirmation_inheritance
4725 .as_ref()
4726 .map(confirmation_inheritance_to_py),
4727 }
4728}
4729
4730/// Automatic child-agent delegation controls.
4731#[pyclass(name = "AutoDelegationConfig")]

Callers 1

register_worker_agentMethod · 0.85

Calls 1

model_refMethod · 0.80

Tested by

no test coverage detected