Skip to content

feat(agent): read the subagents an advanced agent configures [PC-5134] - #2040

Draft
tudormatei1 wants to merge 1 commit into
mainfrom
feat/PC-5134-advanced-subagents
Draft

tudormatei1 wants to merge 1 commit into
mainfrom
feat/PC-5134-advanced-subagents

Conversation

@tudormatei1

@tudormatei1 tudormatei1 commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Advanced agents can now list their subagents in agent.json under settings.subagents, so the runtime can build exactly those instead of always adding deepagents' general-purpose subagent. This is the model side of PC-5134; the runtime and designer PRs build on it.

  • settings.subagents missing means the default general-purpose subagent, [] means none, and a list is the exact set. Each entry has a name, description, optional prompt, model and BYO connection, isolated or fork mode, and tool ids.
  • An entry that doesn't parse, an unknown mode included, is logged and dropped, so one bad subagent doesn't fail the whole agent.
  • A subagents.<name> prompt token resolves to that subagent's name, like the tool and context tokens.
  • Bumps uipath to 2.15.16 so uipath-agents can require it.

New tests in tests/agent/models/test_agent.py cover missing vs empty vs set, the dropped malformed entry and the unknown mode; test_text_tokens.py covers 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

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]>
@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-runtime test:uipath-integrations labels Dec 3, 2026
@sonarqubecloud

sonarqubecloud Bot commented Dec 3, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-integrations test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant