| 1686 | #[napi(object)] |
| 1687 | #[derive(Default)] |
| 1688 | pub 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)] |
| 1710 | pub struct AgentDefinition { |
no outgoing calls
no test coverage detected