You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support OCI/catalog and URL references as sub-agents and handoffs
Allow sub_agents and handoffs in agent configs to reference external agents
from OCI registries (e.g. agentcatalog/pirate) or URLs, in addition to
locally-defined agent names.
- Add IsExternalReference() to distinguish OCI/URL refs from local names
- Update validateConfig to allow external refs in both sub_agents and handoffs
- Add resolveAgentRefs() in teamloader to load external agents on demand
- Cache external agents by reference string to avoid duplicate loads
- Add recursion depth limit (max 10) to prevent circular reference loops
- Keep external agents separate from local agents to prevent name collisions
- Add example config and comprehensive tests
Closes#1604
Assisted-By: cagent
Copy file name to clipboardExpand all lines: agent-schema.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -148,14 +148,14 @@
148
148
},
149
149
"sub_agents": {
150
150
"type": "array",
151
-
"description": "List of sub-agents",
151
+
"description": "List of sub-agents. Can be names of agents defined in this config or external references (OCI images like 'namespace/repo' or URLs).",
152
152
"items": {
153
153
"type": "string"
154
154
}
155
155
},
156
156
"handoffs": {
157
157
"type": "array",
158
-
"description": "List of agents this agent can hand off the conversation to",
158
+
"description": "List of agents this agent can hand off the conversation to. Can be names of agents defined in this config or external references (OCI images like 'namespace/repo' or URLs).",
0 commit comments