Repository navigation
Conversation
…settings [PRODEV-1742]
Add AgentConversationalAgentToolSettings with conversation_mode
("single" | "multiple", absent = None, treated as single by the runtime)
and run_in_background, and use it for the conversational agent tool.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A strict Literal made a conversationMode this version does not know fail the whole AgentDefinition, unlike the lenient handling of unknown tool types, and a future third mode would stop a new runtime from loading the agent. An unknown string now reads as None (with a warning, and None means single); null stays None, and a non-string is still a validation error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
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.



PR stack (PRODEV-1742 conversation mode), merge in this order
settings.conversationMode(single | multiple, absent = single). https://github.com/UiPath/Agents/pull/6761Summary
AgentConversationalAgentToolSettings(AgentToolSettings)and uses it as thesettingstype ofAgentConversationalAgentToolResourceConfig.conversationMode:"single" | "multiple", optional. Absent ornullparses toNone; the runtime ([3/5]) treatsNoneas"single". An unknown string (for example a mode a later release adds) is read asNonewith a warning, like an unknown tool type, so it does not stop the wholeAgentDefinitionfrom loading. A non-string value is still a validation error.runInBackground: optional bool. It already exists in the released storage schema but wasn't modelled in Python.AgentToolSettingskeepsextra="allow", so old records and unknown settings still parse and round-trip.uipathto 2.14.44 (theuv.lockentry for the editable package is updated too).Test plan
uv run pytest tests/agent --no-cov(newTestConversationalAgentToolSettings: both modes, absent, null, unknown strings read asNonewith a warning (direct and throughAgentDefinition, which still loads), non-strings rejected, no warning for known values,runInBackground, base settings and extras preserved, record without asettingskey, alias round-trip). The new tests failed before the change (ImportError, then the unknown-string cases).ruff check,ruff format --check,mypy src tests,scripts/lint_httpx_client.py🤖 Generated with Claude Code