diff options
Diffstat (limited to 'internal/executor/agentmcp.go')
| -rw-r--r-- | internal/executor/agentmcp.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/executor/agentmcp.go b/internal/executor/agentmcp.go index 4368031..2177fbd 100644 --- a/internal/executor/agentmcp.go +++ b/internal/executor/agentmcp.go @@ -66,6 +66,7 @@ type spawnSubtaskInput struct { Instructions string `json:"instructions" jsonschema:"complete instructions for the subtask agent"` Model string `json:"model,omitempty" jsonschema:"optional model override, e.g. sonnet or opus"` MaxBudgetUSD float64 `json:"max_budget_usd,omitempty" jsonschema:"optional budget cap in USD"` + Role string `json:"role,omitempty" jsonschema:"optional role name to dispatch the subtask through instead of a fixed model (e.g. an evaluator role); when set, model is ignored and the role's escalation ladder picks the provider/model"` } type recordProgressInput struct { @@ -118,6 +119,7 @@ func newAgentServer(ch AgentChannel) *mcp.Server { Instructions: in.Instructions, Model: in.Model, MaxBudgetUSD: in.MaxBudgetUSD, + Role: in.Role, }) if err != nil { return nil, nil, err |
