feat(agent): add modelSettings to agent settings [PC-4672] - #1837
Open
tudormatei1 wants to merge 2 commits into
Open
feat(agent): add modelSettings to agent settings [PC-4672]#1837tudormatei1 wants to merge 2 commits into
tudormatei1 wants to merge 2 commits into
Conversation
tudormatei1
force-pushed
the
feat/model-specific-settings
branch
from
August 3, 2026 09:31
3cee6ff to
2ded5a6
Compare
tudormatei1
force-pushed
the
feat/model-specific-settings
branch
from
August 13, 2026 15:32
cad9cdf to
be0b0c6
Compare
tudormatei1
marked this pull request as ready for review
August 13, 2026 15:33
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support in the UiPath Python SDK’s agent definition models for a provider-native settings.modelSettings block (a free-form “bag” of model parameters) so agent.json can carry model-specific tuning options without the SDK needing a fixed schema.
Changes:
- Introduce
ModelSettingsand addAgentSettings.model_settings(aliased tomodelSettings) to preserve arbitrary provider parameters. - Add unit tests validating
modelSettingsis optional and round-trips verbatim via alias-based dump. - Bump
uipathpackage version to2.15.0and update the lockfile accordingly.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/uipath/src/uipath/agent/models/agent.py | Adds ModelSettings bag model and wires modelSettings into AgentSettings. |
| packages/uipath/tests/agent/models/test_agent.py | Adds coverage for absent/present modelSettings behavior and verbatim round-trip. |
| packages/uipath/pyproject.toml | Bumps package version to 2.15.0. |
| packages/uipath/uv.lock | Updates locked uipath version entry to 2.15.0. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
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.



Add a
modelSettingsblock tosettingsin agent.json, parsed intoAgentSettings.model_settings. It's a native bag (ModelSettings(BaseCfg), no declared fields); keys are the target model's own parameter names and are forwarded verbatim, so discovery stays the source of truth for the shape. AbsentmodelSettingsparses to None, keeping existing agent.json working.