(def: RustAgentDefinition)
| 4712 | } |
| 4713 | |
| 4714 | fn 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")] |
no test coverage detected