feat: support conversational runtime prompts - #1029
Open
radu-mocanu wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Adds runtime system-prompt interpolation to conversational advanced agents, aligning their behavior with autonomous advanced agents so per-turn exchange inputs (custom inputs/user settings) can be resolved into a system prompt once per invocation and applied to each Deep Agents model request, while preserving backward compatibility for static prompts.
Changes:
- Extend
create_conversational_advanced_agent_graphto accept a callablesystem_prompt, resolve it from exchange inputs, and inject it via_RuntimeSystemPromptMiddlewarewith collision-safe state keys. - Introduce a dedicated conversational input base model to preserve alias handling and message contract behavior, including support for user-supplied
input_schemawithout dropping conversation messages. - Add comprehensive tests covering callable vs static prompts, alias serialization, schema/message preservation, internal-field collision avoidance, and Deep Agents prompt composition.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/uipath_langchain/agent/advanced/agent.py |
Implements per-exchange runtime system prompt resolution for conversational graphs and injects it into Deep Agents requests via middleware with collision-safe state keys. |
src/uipath_langchain/agent/advanced/types.py |
Adds a conversational input base model with alias/name validation config to support reliable prompt input serialization and wrapper state composition. |
tests/agent/advanced/test_conversational_advanced_agent_graph.py |
Adds test coverage for runtime prompt resolution, alias handling, collision safety, and Deep Agents request augmentation. |
pyproject.toml |
Bumps package version to 0.16.2. |
uv.lock |
Updates lockfile to reflect version bump. |
radu-mocanu
force-pushed
the
feat/conversational-runtime-prompt
branch
4 times, most recently
from
August 7, 2026 15:09
7b02dc6 to
b4a40b5
Compare
radu-mocanu
force-pushed
the
feat/conversational-runtime-prompt
branch
from
August 7, 2026 15:15
b4a40b5 to
5e7b175
Compare
|
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.



Summary
Why
PR #1016 added runtime prompt interpolation for autonomous advanced agents. Conversational advanced agents need the same behavior so custom inputs and user settings are resolved for every turn.
Validation