(def: RustAgentDefinition)
| 2775 | } |
| 2776 | |
| 2777 | fn rust_agent_definition_to_js(def: RustAgentDefinition) -> AgentDefinition { |
| 2778 | AgentDefinition { |
| 2779 | name: def.name, |
| 2780 | description: def.description, |
| 2781 | native: def.native, |
| 2782 | hidden: def.hidden, |
| 2783 | model: def.model.map(|model| model.model_ref()), |
| 2784 | prompt: def.prompt, |
| 2785 | max_steps: def.max_steps.map(|steps| steps as u32), |
| 2786 | confirmation_inheritance: def |
| 2787 | .confirmation_inheritance |
| 2788 | .as_ref() |
| 2789 | .map(confirmation_inheritance_to_js), |
| 2790 | } |
| 2791 | } |
| 2792 | |
| 2793 | // ============================================================================ |
| 2794 | // Agent |
no test coverage detected