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

Function rust_agent_definition_to_js

sdk/node/src/lib.rs:2777–2791  ·  view source on GitHub ↗
(def: RustAgentDefinition)

Source from the content-addressed store, hash-verified

2775}
2776
2777fn 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

Callers 1

register_worker_agentMethod · 0.85

Calls 1

model_refMethod · 0.80

Tested by

no test coverage detected