mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-08 07:57:30 +08:00
add child-model agent_task flow with node model capability and stricter device contracts
This commit is contained in:
@@ -137,6 +137,8 @@ func (m *Manager) SupportsAction(nodeID, action string) bool {
|
||||
switch action {
|
||||
case "run":
|
||||
return n.Capabilities.Run
|
||||
case "agent_task":
|
||||
return n.Capabilities.Model
|
||||
case "camera_snap", "camera_clip":
|
||||
return n.Capabilities.Camera
|
||||
case "screen_record", "screen_snapshot":
|
||||
@@ -162,6 +164,10 @@ func (m *Manager) PickFor(action string) (NodeInfo, bool) {
|
||||
if n.Capabilities.Run {
|
||||
return n, true
|
||||
}
|
||||
case "agent_task":
|
||||
if n.Capabilities.Model {
|
||||
return n, true
|
||||
}
|
||||
case "camera_snap", "camera_clip":
|
||||
if n.Capabilities.Camera {
|
||||
return n, true
|
||||
|
||||
Reference in New Issue
Block a user