Add the Background field to subagent requests (N2 WP5) #29
@@ -30,6 +30,9 @@ type Request struct {
|
|||||||
// Deadline / MaxToolCalls 是宿主注入的预算余量(模型不可自行扩权)。
|
// Deadline / MaxToolCalls 是宿主注入的预算余量(模型不可自行扩权)。
|
||||||
Deadline time.Time `json:"-"`
|
Deadline time.Time `json:"-"`
|
||||||
MaxToolCalls int `json:"-"`
|
MaxToolCalls int `json:"-"`
|
||||||
|
// Background 为真时宿主以后台方式派生(语义同产品 delegate 的
|
||||||
|
// background 参数;AgentSpec.Background 声明经宿主写入本字段消费)。
|
||||||
|
Background bool `json:"background,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Result 是子代理的回传:至少包含结论文本;文件由宿主按写范围物化。
|
// Result 是子代理的回传:至少包含结论文本;文件由宿主按写范围物化。
|
||||||
@@ -73,7 +76,8 @@ func (t *delegateTool) Parameters() json.RawMessage {
|
|||||||
"write_scope":{"type":"string"},
|
"write_scope":{"type":"string"},
|
||||||
"non_goals":{"type":"string"},
|
"non_goals":{"type":"string"},
|
||||||
"done_criteria":{"type":"string"},
|
"done_criteria":{"type":"string"},
|
||||||
"deliverables":{"type":"array","items":{"type":"string"}}
|
"deliverables":{"type":"array","items":{"type":"string"}},
|
||||||
|
"background":{"type":"boolean"}
|
||||||
}}`)
|
}}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user