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

Class WorkerAgentSpec

sdk/node/src/lib.rs:1688–1707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1686#[napi(object)]
1687#[derive(Default)]
1688pub struct WorkerAgentSpec {
1689 /// Stable worker name used by task delegation.
1690 pub name: String,
1691 /// Human-readable worker purpose.
1692 pub description: String,
1693 /// Preset role: "read_only", "planner", "implementer", "verifier", "reviewer", or "custom".
1694 pub kind: Option<String>,
1695 /// Hide from UI lists while allowing explicit delegation.
1696 pub hidden: Option<bool>,
1697 /// Optional permission policy override.
1698 pub permissions: Option<PermissionPolicy>,
1699 /// Optional model override in "provider/model" format.
1700 pub model: Option<String>,
1701 /// Optional worker-specific prompt.
1702 pub prompt: Option<String>,
1703 /// Maximum execution steps/tool rounds.
1704 pub max_steps: Option<u32>,
1705 /// How child runs resolve Ask decisions: "auto_approve" (default), "deny_on_ask", or "inherit_parent".
1706 pub confirmation_inheritance: Option<String>,
1707}
1708
1709#[napi(object)]
1710pub struct AgentDefinition {

Calls

no outgoing calls

Tested by

no test coverage detected