MCPcopy Index your code
hub / github.com/AI45Lab/Code / worker

Method worker

core/src/subagent.rs:450–452  ·  view source on GitHub ↗

Create an agent definition from a disposable worker recipe.

(spec: WorkerAgentSpec)

Source from the content-addressed store, hash-verified

448
449 /// Create an agent definition from a disposable worker recipe.
450 pub fn worker(spec: WorkerAgentSpec) -> Self {
451 spec.into_agent_definition()
452 }
453
454 /// Mark as native (built-in)
455 pub fn native(mut self) -> Self {

Callers

nothing calls this directly

Calls 1

into_agent_definitionMethod · 0.80

Tested by

no test coverage detected