Repository navigation
feat(agent): read the subagents an advanced agent configures [PC-5134] - #2040
Draft
tudormatei1 wants to merge 1 commit into
Draft
tudormatei1 wants to merge 1 commit into
tudormatei1 wants to merge 1 commit into
Conversation
Advanced agents can now list their subagents in agent.json under settings.subagents: name, description, prompt, model, BYO connection, mode and tools. A missing list means the default general-purpose subagent, an empty list means none. Entries that don't parse are logged and dropped so one bad subagent doesn't fail the whole agent. A subagents.<name> prompt token resolves to that subagent's name. Co-authored-by: Radu Mocanu <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Advanced agents can now list their subagents in
agent.jsonundersettings.subagents, so the runtime can build exactly those instead of always adding deepagents'general-purposesubagent. This is the model side of PC-5134; the runtime and designer PRs build on it.settings.subagentsmissing means the defaultgeneral-purposesubagent,[]means none, and a list is the exact set. Each entry has a name, description, optional prompt, model and BYO connection,isolatedorforkmode, and tool ids.modeincluded, is logged and dropped, so one bad subagent doesn't fail the whole agent.subagents.<name>prompt token resolves to that subagent's name, like the tool and context tokens.uipathto 2.15.16 so uipath-agents can require it.New tests in
tests/agent/models/test_agent.pycover missing vs empty vs set, the dropped malformed entry and the unknown mode;test_text_tokens.pycovers the token.Merge first. The rest of PC-5134: UiPath/uipath-langchain-python#1262, UiPath/uipath-agents-python#936, UiPath/apollo-ui#1709, UiPath/Agents#7265, and the alpha flag in UiPath/gitops-centralized-cluster#636942.
🤖 Generated with Claude Code