Skip to content

feat: expose conversationalService.enableOutputs FPS flag on context#142

Merged
maxduu merged 4 commits into
mainfrom
convo-agent-output
Jul 2, 2026
Merged

feat: expose conversationalService.enableOutputs FPS flag on context#142
maxduu merged 4 commits into
mainfrom
convo-agent-output

Conversation

@maxduu

@maxduu maxduu commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Add a new field on UiPathRuntimeContext that surfaces the conversationalService.enableOutputs FPS property, so downstream layers (uipath-agents) can gate the new "conversational structured outputs" feature
on whether the service has opted in.

This is primarily to ensure only Flow-started agent-jobs have conversational output feature working at the moment. For the regular conversational-agent jobs (started to serve a chat) there's no point of generating outputs as they aren't surfaced to the user.

Related PRs

Part of a coordinated four-repo change. Each PR is independently reviewable, but they land together:

Test plan

  • `uv run pytest tests/test_context.py` (23 tests pass)
  • `ruff check` + `ruff format --check` clean

Copilot AI review requested due to automatic review settings July 2, 2026 05:54
@maxduu maxduu requested a review from a team as a code owner July 2, 2026 05:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR surfaces the conversationalService.enableOutputs FPS flag on UiPathRuntimeContext so downstream layers can gate “conversational structured outputs” based on tenant/service opt-in.

Changes:

  • Added conversational_outputs_enabled: bool = False to UiPathRuntimeContext.
  • Extended UiPathRuntimeContext.from_config() FPS property mappings to populate the new field.
  • Updated/added tests to verify extraction and the default-to-False behavior when the FPS key is absent.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/uipath/runtime/context.py Adds the new context field and maps conversationalService.enableOutputs into it during config loading.
tests/test_context.py Extends FPS extraction coverage and adds a defaulting behavior test for the new flag.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +54 to +57
conversational_outputs_enabled: bool = Field(
False,
description="Whether conversational agent output-generation is enabled."
)
@maxduu maxduu force-pushed the convo-agent-output branch from b799e81 to adacf6f Compare July 2, 2026 16:30
@maxduu maxduu changed the title feat: expose conversationalService.enableOutputs FPS flag on UiPathRuntimeContext feat: expose conversationalService.enableOutputs FPS flag on context Jul 2, 2026
@sonarqubecloud

sonarqubecloud Bot commented Jul 2, 2026

Copy link
Copy Markdown

@maxduu maxduu merged commit eb0e7b7 into main Jul 2, 2026
64 of 66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants