From e3f05ec2f536fa02b81c9248bb6f70a2284ec935 Mon Sep 17 00:00:00 2001 From: Maxwell Du <60411452+maxduu@users.noreply.github.com> Date: Sun, 8 Nov 2026 21:47:58 -0500 Subject: [PATCH 1/6] feat: improved convo agent output prompting with trim method --- .../agent/react/conversational_output_node.py | 41 ++++++- .../react/test_conversational_output_node.py | 100 +++++++++++++++++- 2 files changed, 138 insertions(+), 3 deletions(-) diff --git a/src/uipath_langchain/agent/react/conversational_output_node.py b/src/uipath_langchain/agent/react/conversational_output_node.py index 42af49d49..fd9acb700 100644 --- a/src/uipath_langchain/agent/react/conversational_output_node.py +++ b/src/uipath_langchain/agent/react/conversational_output_node.py @@ -16,12 +16,18 @@ from typing import Any, TypeVar from langchain_core.language_models import BaseChatModel -from langchain_core.messages import AIMessage, BaseMessage, HumanMessage +from langchain_core.messages import ( + AIMessage, + BaseMessage, + HumanMessage, + SystemMessage, +) from langchain_core.runnables.config import var_child_runnable_config from pydantic import BaseModel from uipath.agent.react import SET_CONVERSATIONAL_OUTPUT_TOOL from uipath.agent.react.conversational_prompts import ( get_generate_output_prompt, + strip_conversational_output_section, ) from uipath.llm_client import UiPathAPIError, UiPathError from uipath.llm_client.utils.exceptions import as_uipath_error @@ -74,8 +80,39 @@ def create_conversational_output_extractor( ) output_prompt = get_generate_output_prompt() + def without_output_section( + exchange_messages: Sequence[BaseMessage], + ) -> list[BaseMessage]: + """Drop the loop-only output-fields section from the system message. + + It tells the agent it has no tool for these fields — true in the loop, + the opposite here. The system prompt also outranks the user message + carrying `output_prompt` by its own precedence hierarchy, so leaving it + in would point the model at the prohibition. + + Only the first message is considered, because that is the only place + the section can be. The standard loop's init node puts the freshly + built system prompt at index 0 and drops any stale one from the + replayed history; the advanced loop keeps its prompt out of state + entirely, injecting it per model call, so there is no system message + here at all. + """ + messages = list(exchange_messages) + if not messages: + return messages + first = messages[0] + if not isinstance(first, SystemMessage) or not isinstance(first.content, str): + return messages + stripped = strip_conversational_output_section(first.content) + if stripped != first.content: + messages[0] = first.model_copy(update={"content": stripped}) + return messages + async def extract(exchange_messages: Sequence[BaseMessage]) -> dict[str, Any]: - messages = [*exchange_messages, HumanMessage(content=output_prompt)] + messages = [ + *without_output_section(exchange_messages), + HumanMessage(content=output_prompt), + ] config = config_without_streaming(var_child_runnable_config.get(None)) try: diff --git a/tests/agent/react/test_conversational_output_node.py b/tests/agent/react/test_conversational_output_node.py index 2a4981c3a..09eb5261c 100644 --- a/tests/agent/react/test_conversational_output_node.py +++ b/tests/agent/react/test_conversational_output_node.py @@ -7,12 +7,20 @@ from langchain_core.messages import AIMessage, HumanMessage, SystemMessage from langgraph.constants import TAG_NOSTREAM from pydantic import BaseModel, Field -from uipath.agent.react import SET_CONVERSATIONAL_OUTPUT_TOOL +from uipath.agent.react import ( + SET_CONVERSATIONAL_OUTPUT_TOOL, + get_chat_system_prompt, + get_generate_output_prompt, +) from uipath_langchain.agent.react.conversational_output_node import ( + create_conversational_output_extractor, create_conversational_output_node, ) from uipath_langchain.agent.react.types import AgentGraphState, InnerAgentGraphState +from uipath_langchain.agent.react.utils import ( + build_conversational_output_args_schema, +) class _OutputSchema(BaseModel): @@ -172,3 +180,93 @@ async def test_raises_when_llm_omits_set_conversational_output_call(self): assert exc_info.value.error_info.code == AgentRuntimeError.full_code( AgentRuntimeErrorCode.LLM_INVALID_RESPONSE ) + + +class TestExtractionSeesTheStoredMessages: + """The extraction call replays state verbatim. + + The output-fields section is added by the loop's model call and never + stored, so there is nothing here to strip back out. + """ + + @pytest.mark.asyncio + async def test_system_message_is_passed_through_untouched(self): + model, _non_streaming, bound = _make_mock_model() + extract = create_conversational_output_extractor(model, _OutputSchema) + system = SystemMessage( + content=get_chat_system_prompt( + model="claude-3-sonnet", + system_message="Set ready_for_handoff once billing is confirmed.", + agent_name="Agent", + ) + ) + human = HumanMessage(content="hi") + + await extract([system, human]) + + sent = bound.ainvoke.call_args.args[0] + assert sent[0] is system + assert sent[1] is human + assert "STRUCTURED OUTPUT FOR THIS TURN" not in sent[0].content + assert "Set ready_for_handoff once billing is confirmed." in sent[0].content + + @pytest.mark.asyncio + async def test_generate_output_prompt_still_trails_the_messages(self): + model, _non_streaming, bound = _make_mock_model() + extract = create_conversational_output_extractor(model, _OutputSchema) + + await extract([SystemMessage(content="sys"), HumanMessage(content="hi")]) + + sent = bound.ainvoke.call_args.args[0] + assert sent[-1].content == get_generate_output_prompt() + + +class TestOnlyTheFirstMessageIsConsidered: + """The section can only be in the system message at index 0. + + The standard loop's init node puts the freshly built prompt there and drops + any stale one from the replayed history; the advanced loop keeps its prompt + out of state entirely. Narrowing to index 0 rather than scanning keeps the + rewrite off every other message in the exchange. + """ + + @pytest.mark.asyncio + async def test_a_later_system_message_is_left_alone(self): + model, _non_streaming, bound = _make_mock_model() + extract = create_conversational_output_extractor(model, _OutputSchema) + section_bearing = get_chat_system_prompt( + model="claude-3-sonnet", + system_message="builder prompt", + agent_name="Agent", + output_schema=build_conversational_output_args_schema(_OutputSchema), + ) + stray = SystemMessage(content=section_bearing) + + await extract([SystemMessage(content="real prompt"), HumanMessage("hi"), stray]) + + sent = bound.ainvoke.call_args.args[0] + assert sent[0].content == "real prompt" + assert sent[2] is stray + + @pytest.mark.asyncio + async def test_advanced_shape_has_no_system_message_at_all(self): + """state.messages for an advanced conversational turn starts with the + user's message; the rewrite must simply not apply.""" + model, _non_streaming, bound = _make_mock_model() + extract = create_conversational_output_extractor(model, _OutputSchema) + history = [HumanMessage("hi"), AIMessage(content="done")] + + await extract(history) + + sent = bound.ainvoke.call_args.args[0] + assert sent[0] is history[0] + assert sent[1] is history[1] + + @pytest.mark.asyncio + async def test_empty_history_is_tolerated(self): + model, _non_streaming, bound = _make_mock_model() + extract = create_conversational_output_extractor(model, _OutputSchema) + + await extract([]) + + assert len(bound.ainvoke.call_args.args[0]) == 1 From 45288e3f284e3474de19f0b66a69448b544f7302 Mon Sep 17 00:00:00 2001 From: Maxwell Du <60411452+maxduu@users.noreply.github.com> Date: Tue, 17 Nov 2026 16:23:23 -0500 Subject: [PATCH 2/6] fix: rename --- .../agent/react/conversational_output_node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uipath_langchain/agent/react/conversational_output_node.py b/src/uipath_langchain/agent/react/conversational_output_node.py index fd9acb700..b356e2433 100644 --- a/src/uipath_langchain/agent/react/conversational_output_node.py +++ b/src/uipath_langchain/agent/react/conversational_output_node.py @@ -27,7 +27,7 @@ from uipath.agent.react import SET_CONVERSATIONAL_OUTPUT_TOOL from uipath.agent.react.conversational_prompts import ( get_generate_output_prompt, - strip_conversational_output_section, + strip_conversational_output_hint_section, ) from uipath.llm_client import UiPathAPIError, UiPathError from uipath.llm_client.utils.exceptions import as_uipath_error @@ -103,7 +103,7 @@ def without_output_section( first = messages[0] if not isinstance(first, SystemMessage) or not isinstance(first.content, str): return messages - stripped = strip_conversational_output_section(first.content) + stripped = strip_conversational_output_hint_section(first.content) if stripped != first.content: messages[0] = first.model_copy(update={"content": stripped}) return messages From 08ce40fd7dd004dc62a9de088d761f0ca82d88c6 Mon Sep 17 00:00:00 2001 From: Maxwell Du <60411452+maxduu@users.noreply.github.com> Date: Tue, 17 Nov 2026 16:27:07 -0500 Subject: [PATCH 3/6] refactor: rebuild the message list when stripping the output-hint section Rename without_output_section to without_output_hint_section to match the prompt helpers it calls, and return a new list instead of copying the sequence and assigning to index 0. The standard path hands over state.messages directly, so mutating the copy's first element risked writing the stripped prompt back into graph state. Also trims the docstring, whose detail now lives in the tests that pin the behaviour. --- .../agent/react/conversational_output_node.py | 39 +++++++------------ 1 file changed, 14 insertions(+), 25 deletions(-) diff --git a/src/uipath_langchain/agent/react/conversational_output_node.py b/src/uipath_langchain/agent/react/conversational_output_node.py index b356e2433..4ab1d0458 100644 --- a/src/uipath_langchain/agent/react/conversational_output_node.py +++ b/src/uipath_langchain/agent/react/conversational_output_node.py @@ -80,37 +80,26 @@ def create_conversational_output_extractor( ) output_prompt = get_generate_output_prompt() - def without_output_section( + def without_output_hint_section( exchange_messages: Sequence[BaseMessage], - ) -> list[BaseMessage]: - """Drop the loop-only output-fields section from the system message. - - It tells the agent it has no tool for these fields — true in the loop, - the opposite here. The system prompt also outranks the user message - carrying `output_prompt` by its own precedence hierarchy, so leaving it - in would point the model at the prohibition. - - Only the first message is considered, because that is the only place - the section can be. The standard loop's init node puts the freshly - built system prompt at index 0 and drops any stale one from the - replayed history; the advanced loop keeps its prompt out of state - entirely, injecting it per model call, so there is no system message - here at all. - """ - messages = list(exchange_messages) - if not messages: - return messages - first = messages[0] + ) -> Sequence[BaseMessage]: + """Drop the output-fields section from the system message, which is only relevant for the central conversational loop.""" + if not exchange_messages: + return exchange_messages + first = exchange_messages[0] if not isinstance(first, SystemMessage) or not isinstance(first.content, str): - return messages + return exchange_messages stripped = strip_conversational_output_hint_section(first.content) - if stripped != first.content: - messages[0] = first.model_copy(update={"content": stripped}) - return messages + if stripped == first.content: + return exchange_messages + return [ + first.model_copy(update={"content": stripped}), + *exchange_messages[1:], + ] async def extract(exchange_messages: Sequence[BaseMessage]) -> dict[str, Any]: messages = [ - *without_output_section(exchange_messages), + *without_output_hint_section(exchange_messages), HumanMessage(content=output_prompt), ] config = config_without_streaming(var_child_runnable_config.get(None)) From 9831f408bb691273c6abcacfdded02b090806e05 Mon Sep 17 00:00:00 2001 From: Maxwell Du <60411452+maxduu@users.noreply.github.com> Date: Wed, 18 Nov 2026 17:27:34 -0500 Subject: [PATCH 4/6] feat: give the advanced extraction call the agent's system prompt The advanced engine keeps its system prompt in a state field, injected per model call by _RuntimeSystemPromptMiddleware, so it never reaches state.messages. The conversational output extraction node replays those messages, which meant builder guidance in the system prompt informed the loop and never reached the step that fills the output fields. The standard engine, which keeps the prompt at messages[0], has always had it. Resolve the prompt (static_prompt, else the state key written by capture_exchange_start -- the two are mutually exclusive by construction) and prepend it as a SystemMessage. The prepend builds a new list rather than mutating state.messages: transform_output emits messages[initial_message_count:] as the user-visible response messages, so a system message written into state would surface in the chat. The shared extractor already strips the loop's output-schema hint section from any SystemMessage it receives, so the section does not leak into the extraction call and contradict its instruction. Co-Authored-By: Claude Opus 5 --- src/uipath_langchain/agent/advanced/agent.py | 9 + ...est_conversational_advanced_agent_graph.py | 176 +++++++++++++++++- .../react/test_conversational_output_node.py | 11 +- 3 files changed, 189 insertions(+), 7 deletions(-) diff --git a/src/uipath_langchain/agent/advanced/agent.py b/src/uipath_langchain/agent/advanced/agent.py index 9ae08d87a..7f474099a 100644 --- a/src/uipath_langchain/agent/advanced/agent.py +++ b/src/uipath_langchain/agent/advanced/agent.py @@ -938,6 +938,15 @@ def transform_output(state: BaseModel) -> dict[str, Any]: async def generate_conversational_output(state: BaseModel) -> dict[str, Any]: assert extract_output is not None # guarded by with_output_extraction messages = cast(ConversationalAdvancedAgentGraphState, state).messages + # Inject the system prompt into the messages array for extraction, matching + # standard loop behavior (for advanced, the system prompt is not in the messages array for the core loop). + system_prompt = runtime_prompt.static_prompt or ( + getattr(state, runtime_prompt.state_key, None) + if runtime_prompt.state_key + else None + ) + if system_prompt: + messages = [SystemMessage(content=system_prompt), *messages] return {conversational_output_key: await extract_output(messages)} wrapper: StateGraph[Any, Any, Any, Any] = StateGraph( diff --git a/tests/agent/advanced/test_conversational_advanced_agent_graph.py b/tests/agent/advanced/test_conversational_advanced_agent_graph.py index 3997230ce..e4f05021d 100644 --- a/tests/agent/advanced/test_conversational_advanced_agent_graph.py +++ b/tests/agent/advanced/test_conversational_advanced_agent_graph.py @@ -14,6 +14,8 @@ from langchain_core.runnables import RunnableLambda from langgraph.graph import END, START, StateGraph from pydantic import BaseModel, Field +from uipath.agent.react import SET_CONVERSATIONAL_OUTPUT_TOOL +from uipath.agent.react.conversational_prompts import get_chat_system_prompt from uipath_langchain._utils._attachments import render_attachments_block from uipath_langchain.agent.advanced.agent import ( @@ -23,6 +25,9 @@ from uipath_langchain.agent.advanced.types import ( ConversationalAdvancedAgentGraphState, ) +from uipath_langchain.agent.react.utils import ( + build_conversational_output_args_schema, +) class _Input(BaseModel): @@ -500,7 +505,176 @@ async def record(messages: Any) -> dict[str, Any]: } ) - assert [message.id for message in seen[0]] == ["u0", "u1", "ai-1"] + # The system prompt leads the list (see TestExtractionSeesTheSystemPrompt); + # what this test pins is that no part of the transcript is dropped. + assert [message.id for message in seen[0][1:]] == ["u0", "u1", "ai-1"] + + +class TestExtractionSeesTheSystemPrompt: + """The advanced conversational loop keeps its system prompt in state and injects it per + call, so it never reaches ``state.messages``. The extraction step prepends + the system prompt to the messages array so the LLM-call for output generation has it + as context (matching standard loop logic). + """ + + @pytest.mark.asyncio + async def test_a_static_prompt_is_prepended(self) -> None: + seen = await _extraction_messages(system_prompt="builder prompt") + + assert isinstance(seen[0], SystemMessage) + assert seen[0].content == "builder prompt" + + @pytest.mark.asyncio + async def test_a_resolved_prompt_is_prepended(self) -> None: + """A callable prompt lives in a state field, not on the closure.""" + seen = await _extraction_messages( + system_prompt=lambda args: f"system:{args['tenant']}", + input_schema=_Input, + invoke_input={ + "messages": [HumanMessage(content="hi", id="u1")], + "tenant": "finance", + }, + ) + + assert isinstance(seen[0], SystemMessage) + assert seen[0].content == "system:finance" + + @pytest.mark.asyncio + async def test_an_empty_prompt_prepends_nothing(self) -> None: + seen = await _extraction_messages(system_prompt="") + + assert not any(isinstance(message, SystemMessage) for message in seen) + + @pytest.mark.asyncio + async def test_the_prompt_is_not_written_into_graph_state(self) -> None: + """``transform_output`` emits ``messages[initial_message_count:]``, so a + system message persisted into state would surface to the user as a + response message.""" + seen: list[list[Any]] = [] + + async def record(messages: Any) -> dict[str, Any]: + seen.append(list(messages)) + return {"ticketId": "INC-1"} + + with ( + patch( + "uipath_langchain.agent.advanced.agent.create_advanced_agent", + return_value=_fake_inner_agent(), + ), + patch( + "uipath_langchain.agent.advanced.agent.create_conversational_output_extractor", + return_value=record, + ), + ): + graph = create_conversational_advanced_agent_graph( + model=_mock_model(), + tools=[], + system_prompt="builder prompt", + backend=None, + output_schema=_OutputWithCustomFields, + ).compile() + result = await graph.ainvoke( + {"messages": [HumanMessage(content="hi", id="u1")]} + ) + + assert isinstance(seen[0][0], SystemMessage) + assert len(result["uipath__agent_response_messages"]) == 1 + + @pytest.mark.asyncio + async def test_the_output_hint_section_is_stripped_before_extraction(self) -> None: + """The prepended prompt carries the loop's output-schema section, which + tells the model there is no tool for the fields -- the opposite of what + the extraction call needs. The shared extractor has to strip it, so this + exercises the real extractor rather than a stand-in.""" + model, bound = _mock_extractor_model() + loop_prompt = get_chat_system_prompt( + model="claude-3-sonnet", + system_message="builder prompt", + agent_name="Agent", + output_schema=build_conversational_output_args_schema( + _OutputWithCustomFields + ), + ) + assert "STRUCTURED OUTPUT FOR THIS TURN" in loop_prompt + + with patch( + "uipath_langchain.agent.advanced.agent.create_advanced_agent", + return_value=_fake_inner_agent(), + ): + graph = create_conversational_advanced_agent_graph( + model=model, + tools=[], + system_prompt=loop_prompt, + backend=None, + output_schema=_OutputWithCustomFields, + ).compile() + await graph.ainvoke({"messages": [HumanMessage(content="hi", id="u1")]}) + + sent = bound.ainvoke.call_args.args[0] + assert isinstance(sent[0], SystemMessage) + assert "STRUCTURED OUTPUT FOR THIS TURN" not in sent[0].content + assert "builder prompt" in sent[0].content + + +async def _extraction_messages( + system_prompt: Any, + input_schema: type[BaseModel] | None = None, + invoke_input: dict[str, Any] | None = None, +) -> list[Any]: + """Run the wrapper and return the messages the extraction call received.""" + seen: list[list[Any]] = [] + + async def record(messages: Any) -> dict[str, Any]: + seen.append(list(messages)) + return {"ticketId": "INC-1"} + + with ( + patch( + "uipath_langchain.agent.advanced.agent.create_advanced_agent", + return_value=_fake_inner_agent(), + ), + patch( + "uipath_langchain.agent.advanced.agent.create_conversational_output_extractor", + return_value=record, + ), + ): + graph = create_conversational_advanced_agent_graph( + model=_mock_model(), + tools=[], + system_prompt=system_prompt, + backend=None, + input_schema=input_schema, + output_schema=_OutputWithCustomFields, + ).compile() + await graph.ainvoke( + invoke_input or {"messages": [HumanMessage(content="hi", id="u1")]} + ) + + return seen[0] + + +def _mock_extractor_model() -> tuple[MagicMock, MagicMock]: + """A model whose ``model_copy().bind_tools().ainvoke()`` chain records the + messages and answers with a set_conversational_output call, so the real + extractor can run against it. Returns (model, bound).""" + response = AIMessage( + content="", + tool_calls=[ + { + "name": SET_CONVERSATIONAL_OUTPUT_TOOL.name, + "args": {"ticketId": "INC-1", "resolved": True}, + "id": "call_1", + } + ], + ) + bound = MagicMock() + bound.ainvoke = AsyncMock(return_value=response) + non_streaming = MagicMock() + non_streaming.bind_tools = MagicMock(return_value=bound) + model = MagicMock(spec=BaseChatModel) + model.profile = None + model.model_copy = MagicMock(return_value=non_streaming) + return model, bound def _extractor(args: dict[str, Any]) -> Any: diff --git a/tests/agent/react/test_conversational_output_node.py b/tests/agent/react/test_conversational_output_node.py index 09eb5261c..670b495d1 100644 --- a/tests/agent/react/test_conversational_output_node.py +++ b/tests/agent/react/test_conversational_output_node.py @@ -225,9 +225,8 @@ class TestOnlyTheFirstMessageIsConsidered: """The section can only be in the system message at index 0. The standard loop's init node puts the freshly built prompt there and drops - any stale one from the replayed history; the advanced loop keeps its prompt - out of state entirely. Narrowing to index 0 rather than scanning keeps the - rewrite off every other message in the exchange. + any stale one from the replayed history; the advanced wrapper prepends its + own prompt at index 0 before calling the extractor. """ @pytest.mark.asyncio @@ -249,9 +248,9 @@ async def test_a_later_system_message_is_left_alone(self): assert sent[2] is stray @pytest.mark.asyncio - async def test_advanced_shape_has_no_system_message_at_all(self): - """state.messages for an advanced conversational turn starts with the - user's message; the rewrite must simply not apply.""" + async def test_a_history_with_no_system_message_is_tolerated(self): + """A caller may hand over a bare transcript -- an advanced agent whose + system prompt resolved to nothing, say. The rewrite must not apply.""" model, _non_streaming, bound = _make_mock_model() extract = create_conversational_output_extractor(model, _OutputSchema) history = [HumanMessage("hi"), AIMessage(content="done")] From 75464cb51e073a782f49109c7a922ee06d65885a Mon Sep 17 00:00:00 2001 From: Maxwell Du <60411452+maxduu@users.noreply.github.com> Date: Thu, 19 Nov 2026 14:03:25 -0500 Subject: [PATCH 5/6] chore: bump deps --- pyproject.toml | 4 +- uv.lock | 177 ++++++++++++++++++++++++++++++------------------- 2 files changed, 112 insertions(+), 69 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7cceb2e7f..57e3b42d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,11 @@ [project] name = "uipath-langchain" -version = "0.20.4" +version = "0.20.5" description = "Python SDK that enables developers to build and deploy LangGraph agents to the UiPath Cloud Platform" readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.11" dependencies = [ - "uipath>=2.15.1, <2.16.0", + "uipath>=2.15.4, <2.16.0", "uipath-core>=0.5.34, <0.6.0", "uipath-platform>=0.3.11, <0.4.0", "uipath-runtime>=0.13.5, <0.14.0", diff --git a/uv.lock b/uv.lock index a437877d2..b8837d6be 100644 --- a/uv.lock +++ b/uv.lock @@ -62,7 +62,7 @@ dependencies = [ { name = "frozenlist" }, { name = "multidict" }, { name = "propcache" }, - { name = "typing-extensions", marker = "python_full_version < '3.13'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.13'" }, { name = "yarl" }, ] sdist = { url = "https://files.pythonhosted.org/packages/58/d9/22ce5786ac0c1653ae8b6c23bded02c1686d11f0dbb45b31ce128e0df985/aiohttp-3.14.3.tar.gz", hash = "sha256:9491196535a88924a60afd5b5f434b5b203b6cc616250878dbdb223a8f7844bc", size = 7971213, upload-time = "2026-07-23T01:57:27.037Z" } @@ -175,7 +175,7 @@ version = "0.17.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "sniffio" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" } }, { name = "wrapt" }, ] sdist = { url = "https://files.pythonhosted.org/packages/f1/7a/d51f2fde1e8ae8a83431f8e97b7a71e9358cdb1d4d2ce6be387fa44d68de/aiologic-0.17.1.tar.gz", hash = "sha256:2e1b93b9e88ced318c2a63ad7b382688f40cbfe40e3d42258d49dc9c5aea179d", size = 252354, upload-time = "2026-06-27T20:41:33.25Z" } @@ -189,7 +189,7 @@ version = "1.4.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "frozenlist" }, - { name = "typing-extensions", marker = "python_full_version < '3.13'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.13'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/61/62/06741b579156360248d1ec624842ad0edf697050bbaf7c3e46394e106ad1/aiosignal-1.4.0.tar.gz", hash = "sha256:f47eecd9468083c2029cc99945502cb7708b082c232f9aca65da147157b251c7", size = 25007, upload-time = "2025-07-03T22:54:43.528Z" } wheels = [ @@ -235,7 +235,8 @@ dependencies = [ { name = "jiter" }, { name = "pydantic" }, { name = "sniffio" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/62/f8/6f0560884b5363848347bd640b6c1d04abc25e7aa61787a232f790c6b60a/anthropic-0.125.0.tar.gz", hash = "sha256:e0cdd336580cb7411c1cdab69f80973e9bf4bff7f8e08141811d46307d45c682", size = 1112593, upload-time = "2026-08-19T22:00:42.837Z" } wheels = [ @@ -253,15 +254,15 @@ vertex = [ [[package]] name = "anyio" -version = "4.14.0" +version = "4.16.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "idna" }, - { name = "typing-extensions", marker = "python_full_version < '3.13'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/1c/b5/001890774a9552aff22502b8da382593109ce0c95314abaebbb116567545/anyio-4.14.0.tar.gz", hash = "sha256:b47c1f9ccf73e67021df785332508f99379c68fa7d0684e8e3492cb1d4b23f89", size = 253586, upload-time = "2026-06-15T22:00:49.021Z" } +sdist = { url = "https://files.pythonhosted.org/packages/a1/98/7e457a3b014976887a050561955c0b76e1e7e2d6e27b78ecef2ef80518f2/anyio-4.16.0.tar.gz", hash = "sha256:59bb03251907983d1603d27c3087ddb1e93299ea2163adcdba37899a4fb12ffb", size = 310971, upload-time = "2026-11-01T11:20:07.282Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/ba/16/9826f089383c593cdfc4a6e5aca94d9e91ae1692c57af82c3b2aa5e810f7/anyio-4.14.0-py3-none-any.whl", hash = "sha256:dd9b7a2a9799ed6552fde617b2c5df02b7fdd7d88392fc48101e51bae46164d9", size = 123506, upload-time = "2026-06-15T22:00:47.595Z" }, + { url = "https://files.pythonhosted.org/packages/a9/16/7757fb84c819accc7d7e9af5291b261e4abb8627ee040f99e7d35ef2457a/anyio-4.16.0-py3-none-any.whl", hash = "sha256:c66ae634e0b8228396b801741beb3294326d4b6102f7bba4041c0dfb58c29026", size = 134521, upload-time = "2026-11-01T11:20:05.59Z" }, ] [[package]] @@ -377,7 +378,8 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "azure-core" }, { name = "isodate" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/b6/5a/6dbcb8278c8d3779fc03992d8a9f87a9ce5280437d76e72f8121f9a90d46/azure_ai_contentunderstanding-1.1.0.tar.gz", hash = "sha256:00f39c7cf2ba50c8d4586315f4295a45fad0881daaff07d13d33aea2bafc7ec8", size = 230330, upload-time = "2026-04-20T23:29:08.315Z" } wheels = [ @@ -394,7 +396,8 @@ dependencies = [ { name = "azure-storage-blob" }, { name = "isodate" }, { name = "openai" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/b9/d8/24342aea74fe75b0a8378b6eff665b9c1cb63f855c1a96f70a0095e474a2/azure_ai_projects-2.2.0.tar.gz", hash = "sha256:58ee31bb031cfb004051145c545294bb0d32de679c670c312ef384845bd72cef", size = 668496, upload-time = "2026-05-30T00:20:59.099Z" } wheels = [ @@ -416,7 +419,8 @@ version = "1.41.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "requests" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/a6/f3/b416179e408990df5db0d516283022dde0f5d0111d98c1a848e41853e81c/azure_core-1.41.0.tar.gz", hash = "sha256:f46ff5dfcd230f25cf1c19e8a34b8dc08a337b2503e268bb600a16c00db8ad5a", size = 381042, upload-time = "2026-05-07T23:30:54.302Z" } wheels = [ @@ -432,7 +436,8 @@ dependencies = [ { name = "cryptography" }, { name = "msal" }, { name = "msal-extensions" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/c5/0e/3a63efb48aa4a5ae2cfca61ee152fbcb668092134d3eb8bfda472dd5c617/azure_identity-1.25.3.tar.gz", hash = "sha256:ab23c0d63015f50b630ef6c6cf395e7262f439ce06e5d07a64e874c724f8d9e6", size = 286304, upload-time = "2026-03-13T01:12:20.892Z" } wheels = [ @@ -447,7 +452,8 @@ dependencies = [ { name = "azure-common" }, { name = "azure-core" }, { name = "isodate" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/cf/68/9d59a0bed5fd9581b45444e8abc3ecda97e0466ae0f03affc7cddfb9fa74/azure_search_documents-11.6.0.tar.gz", hash = "sha256:fcc807076ff82024be576ffccb0d0f3261e5c2a112a6666b86ec70bbdb2e1d64", size = 311194, upload-time = "2025-10-09T22:04:03.655Z" } wheels = [ @@ -462,7 +468,8 @@ dependencies = [ { name = "azure-core" }, { name = "cryptography" }, { name = "isodate" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/3b/48/84a820d898267f662b5c06f7cd76fdb8a9e272b44aa9376cef3ec0f6a294/azure_storage_blob-12.30.0.tar.gz", hash = "sha256:2cd74d4d5731e5eb6b8d5c5056ee115a5e88f8fdf22517b739836fda685018be", size = 618229, upload-time = "2026-06-08T11:45:35.575Z" } wheels = [ @@ -536,7 +543,7 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "botocore-stubs" }, { name = "types-s3transfer" }, - { name = "typing-extensions", marker = "python_full_version < '3.12'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/09/32/1aa4aeb3b424343841862f42090ae0d7464b1d046b8a0c9489a10dbfd8bd/boto3_stubs-1.43.34.tar.gz", hash = "sha256:2b6580065e1e145687fd576f15bcf5a399619c8d5121769c8a59c784c2dd22ac", size = 103049, upload-time = "2026-06-19T20:06:52.507Z" } wheels = [ @@ -1070,7 +1077,7 @@ version = "0.11.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "aiologic" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" } }, ] sdist = { url = "https://files.pythonhosted.org/packages/d9/e3/49afa1bc180e0d28008ec6bcdf82a4072d1c7a41032b5b759b60814ca4b0/culsans-0.11.0.tar.gz", hash = "sha256:0b43d0d05dce6106293d114c86e3fb4bfc63088cfe8ff08ed3fe36891447fe33", size = 107546, upload-time = "2025-12-31T23:15:38.196Z" } wheels = [ @@ -1416,7 +1423,8 @@ dependencies = [ { name = "proto-plus" }, { name = "protobuf" }, { name = "pydantic" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/d0/74/71440b7793068d8411f096712d6274a64a42f44bd01a11d67d8cbbd27b54/google_cloud_aiplatform-1.158.0.tar.gz", hash = "sha256:85b6bedc3823824617db1ea83e07fa07f00681d7ab63c42cdc584066a844737b", size = 11128785, upload-time = "2026-06-16T23:08:45.036Z" } wheels = [ @@ -1547,7 +1555,8 @@ dependencies = [ { name = "requests" }, { name = "sniffio" }, { name = "tenacity" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, { name = "websockets" }, ] sdist = { url = "https://files.pythonhosted.org/packages/37/f1/f2f31b2a6bd826bc2cb73068df880954a026474c03a4315637d20cc13965/google_genai-2.22.0.tar.gz", hash = "sha256:9fa3b5d9ddb635005d8ab2d6206fb2b3d7204b66965bbce7de13ecd1a866ebcd", size = 684719, upload-time = "2026-09-02T18:06:02.906Z" } @@ -1612,7 +1621,8 @@ name = "grpcio" version = "1.81.1" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/b0/b5/1ff353970a87eda4c98251e34d2dfd214abd4982dc89119c9252a2a482d2/grpcio-1.81.1.tar.gz", hash = "sha256:6fa10a767143a5e82e8eaab53918af0cd8909a57a27f8cb2288b80a613ac671b", size = 13026582, upload-time = "2026-06-11T12:46:51.673Z" } wheels = [ @@ -1788,7 +1798,7 @@ dependencies = [ { name = "httpx2-jsfetch", marker = "python_full_version >= '3.12' and sys_platform == 'emscripten'" }, { name = "idna" }, { name = "truststore", marker = "sys_platform != 'emscripten'" }, - { name = "typing-extensions", marker = "python_full_version < '3.13'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.13'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/7f/f8/579a8b51e42e38ee32647df9f08aa25643ae788e275cc625b199829c4671/httpx2-2.12.0.tar.gz", hash = "sha256:7631fe9887a8a2275f4a2540e053aa670fcc50742864a9ae7c66e609fdcf12cf", size = 100040, upload-time = "2026-08-18T13:22:09.086Z" } wheels = [ @@ -1818,7 +1828,8 @@ dependencies = [ { name = "pyyaml" }, { name = "tqdm" }, { name = "typer" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/e6/7e/fad82ad491b226e832d2da90a1a59f36acd4526cda8c726f639834754aa4/huggingface_hub-1.20.1.tar.gz", hash = "sha256:9f6d63bfbeab2d2a8357200a9bc4f18cd2c8bfac9579f792f5922e77bf6471d0", size = 859910, upload-time = "2026-06-18T22:06:53.348Z" } wheels = [ @@ -2169,7 +2180,8 @@ dependencies = [ { name = "pydantic" }, { name = "pyyaml" }, { name = "tenacity" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, { name = "uuid-utils" }, ] sdist = { url = "https://files.pythonhosted.org/packages/89/7b/406b4a8dd43dd01f69e04aafdee206809a2097134b2f944e12802eae7948/langchain_core-1.6.2.tar.gz", hash = "sha256:1ec6d3a98f7c8cdbb5bb0deff86e7ca37e16bf4f8f49f022d10723656c62352d", size = 1004390, upload-time = "2026-09-04T21:29:22.769Z" } @@ -2264,7 +2276,8 @@ name = "langchain-protocol" version = "0.0.18" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/d2/59/b5959aea96faa9146e2e49a7a22882b3528c62efafe9a6a95beab30c2305/langchain_protocol-0.0.18.tar.gz", hash = "sha256:ec3e11782f1ed0c9db38e5a9ed01b0e7a0d3fba406faa8aef6594b73c56a63e6", size = 6150, upload-time = "2026-06-18T17:08:26.959Z" } wheels = [ @@ -2375,7 +2388,8 @@ dependencies = [ { name = "requests" }, { name = "requests-toolbelt" }, { name = "sniffio" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, { name = "uuid-utils" }, { name = "websockets" }, { name = "xxhash" }, @@ -2584,7 +2598,8 @@ dependencies = [ { name = "pywin32", marker = "sys_platform == 'win32'" }, { name = "sse-starlette" }, { name = "starlette" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, { name = "typing-inspection" }, { name = "uvicorn", marker = "sys_platform != 'emscripten'" }, ] @@ -2599,7 +2614,8 @@ version = "2.3.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "pydantic" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/9e/2d/7c251e34207f6c51000312fc8839111ac45cfe02023f90b44e7f1051dd8e/mcp_types-2.3.0.tar.gz", hash = "sha256:d1e46549edb35ee19a94940fcee6d1addd7e589ab7ea92dda83f5d84781fc362", size = 65898, upload-time = "2026-10-02T22:06:57.863Z" } wheels = [ @@ -2857,7 +2873,8 @@ dependencies = [ { name = "librt", marker = "platform_python_implementation != 'PyPy'" }, { name = "mypy-extensions" }, { name = "pathspec" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/82/15/cca9d88503549ed6fedeaa1d448cdddd542ee8a490232d732e278036fbf2/mypy-2.1.0.tar.gz", hash = "sha256:81e76ad12c2d804512e9b13240d1588316531bfba07558286078bfbce9613633", size = 3898359, upload-time = "2026-05-11T18:37:36.237Z" } wheels = [ @@ -3067,7 +3084,8 @@ dependencies = [ { name = "pydantic" }, { name = "sniffio" }, { name = "tqdm" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/f3/fa/88d0c58a0c58df7e6758e66b99c5d028d5e0bb49f8812d7203940cd9dbf1/openai-2.43.0.tar.gz", hash = "sha256:e74d238200a26868977002190fb6631613480a93dfe0c9c982e77021ed60a017", size = 785369, upload-time = "2026-06-17T17:06:56.06Z" } wheels = [ @@ -3117,19 +3135,20 @@ wheels = [ [[package]] name = "opentelemetry-api" -version = "1.42.1" +version = "1.45.2" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/b4/1c/125e1c936c0873796771b7f04f6c93b9f1bf5d424cea90fda94a99f61da8/opentelemetry_api-1.42.1.tar.gz", hash = "sha256:56c63bea9f77b62856be8c47600474acad853b2924b99b1687c4cb6297166716", size = 72296, upload-time = "2026-05-21T16:32:49.335Z" } +sdist = { url = "https://files.pythonhosted.org/packages/19/14/cf3a6b6448849656e1e5f4e2101f3988dc6789724050096aba1bc5ccf592/opentelemetry_api-1.45.2.tar.gz", hash = "sha256:d7b0008e21e5fd61cbe7a7f34ca3b6905a78ab677d9bc395e299359c75cda6b4", size = 73277, upload-time = "2026-10-29T17:29:37.888Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/a3/ca/9520cc1f3dfbbd03ac5903bbf55833e257bc64b1cf30fa8b0d6df374d821/opentelemetry_api-1.42.1-py3-none-any.whl", hash = "sha256:51a69edacadbc03a8950ace1c4c21099cacc538820ac2c9e36277e78cebba714", size = 61311, upload-time = "2026-05-21T16:32:28.822Z" }, + { url = "https://files.pythonhosted.org/packages/a9/2d/610db864d7513158cebb8f36cc88e67e73bd6c7aa1905ef18d89e1281c81/opentelemetry_api-1.45.2-py3-none-any.whl", hash = "sha256:2cbd737377e710ee740d261c94e93fa0f08e6d037c18f17513cc0a2d94479a34", size = 60335, upload-time = "2026-10-29T17:29:06.955Z" }, ] [[package]] name = "opentelemetry-instrumentation" -version = "0.63b1" +version = "0.66b2" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "opentelemetry-api" }, @@ -3137,36 +3156,38 @@ dependencies = [ { name = "packaging" }, { name = "wrapt" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/da/6d/4de72d97ff54db1ed270c7a59c9b904b917c0ac7af429c086c388b824ddb/opentelemetry_instrumentation-0.63b1.tar.gz", hash = "sha256:32368d6ae52c8de20aa790a6ad86b10a76f09956092337ae37d675773990e541", size = 41081, upload-time = "2026-05-21T16:36:14.206Z" } +sdist = { url = "https://files.pythonhosted.org/packages/76/b9/46a136199fa6928eecefec8418867a460d94f01c608a85d22bd2ed4e8d48/opentelemetry_instrumentation-0.66b2.tar.gz", hash = "sha256:02b094150e53b76f5906d75e628dbb3833bbc6e62fa109b5c7ba0c081865e923", size = 43305, upload-time = "2026-10-29T17:38:11.618Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/35/a1/9314e621c143e4d82a5bf7a43c2ff7a745d31023506336857607c8c543cc/opentelemetry_instrumentation-0.63b1-py3-none-any.whl", hash = "sha256:f1986716d52cc316ea5f60189098726a9071d8ecc0eee96c9ed110be08bade9c", size = 35577, upload-time = "2026-05-21T16:34:56.818Z" }, + { url = "https://files.pythonhosted.org/packages/3b/41/014d40e2b08a5d9d9058ed4967ad992657c203ce0c292ded97364ee7b82a/opentelemetry_instrumentation-0.66b2-py3-none-any.whl", hash = "sha256:fa9ccfdab147a14af8107d19ef0a7b5015675273c5adced7a1fc38f28b42ec4c", size = 36902, upload-time = "2026-10-29T17:37:06.994Z" }, ] [[package]] name = "opentelemetry-sdk" -version = "1.42.1" +version = "1.45.2" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "opentelemetry-api" }, { name = "opentelemetry-semantic-conventions" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/40/f7/b390bd9bfd703bf98a68fea1f27786c6872331fd617164a54b8a59bdc008/opentelemetry_sdk-1.42.1.tar.gz", hash = "sha256:8c834e8f8c9ba4171d4ec843d0cb8a67e4c7394d3f9e9297e582cbd9456ddbf7", size = 239262, upload-time = "2026-05-21T16:33:04.641Z" } +sdist = { url = "https://files.pythonhosted.org/packages/7b/1a/74a21d4d6969fb8b432ac397e66112a8167a6deb267ea4559dbaf2fe91ef/opentelemetry_sdk-1.45.2.tar.gz", hash = "sha256:7eec4de13dd21ff3a1670dcb0e02079e692736f94d733dfdce5af461d884248d", size = 221705, upload-time = "2026-10-29T17:29:54.685Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/8f/6b/4287766cfbde577ae2272e8884abac325aeaac0d64f41c61d5b8cc595105/opentelemetry_sdk-1.42.1-py3-none-any.whl", hash = "sha256:083cd4bbfaa5aa7b5a9e552430d9951219967cfb27aa61feb13a77aba1fc839d", size = 170907, upload-time = "2026-05-21T16:32:45.894Z" }, + { url = "https://files.pythonhosted.org/packages/9f/a5/9a3b793ef48245f2336a16beb2324c2397dbb3f987cd68942f77cca06156/opentelemetry_sdk-1.45.2-py3-none-any.whl", hash = "sha256:ff974ea70ee4f1d51e2ec152db37c2b626c7bf82bb3f7d86114fd8704e7199c6", size = 141756, upload-time = "2026-10-29T17:29:33.722Z" }, ] [[package]] name = "opentelemetry-semantic-conventions" -version = "0.63b1" +version = "0.66b2" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "opentelemetry-api" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/93/99/4d7dd6df64795951413ce6e815f8cf1eb191daf7196ae86574589643d5f3/opentelemetry_semantic_conventions-0.63b1.tar.gz", hash = "sha256:3daf963611334b365e98a57438183eb012d3bfb40b2d931a9af613476b8701a9", size = 148340, upload-time = "2026-05-21T16:33:05.455Z" } +sdist = { url = "https://files.pythonhosted.org/packages/37/3f/50f95972b50e8e353f5b9342034c9cd17730f1956f009ce6a3fbbd89f9ce/opentelemetry_semantic_conventions-0.66b2.tar.gz", hash = "sha256:7da5f1a5dc4383eb66711d4d3d3e71824d9403ac1559fea021cc103c1a4c4976", size = 150246, upload-time = "2026-10-29T17:29:55.682Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/cb/7a/7fe66f5f3682b1dd47d88cc4e11f1c6c0966b737de2d16671146e23c39a5/opentelemetry_semantic_conventions-0.63b1-py3-none-any.whl", hash = "sha256:dfe5ef4dee82586b746f522b818ceb298d00b3d59f660042bd79404bff8d0682", size = 203713, upload-time = "2026-05-21T16:32:47.016Z" }, + { url = "https://files.pythonhosted.org/packages/67/bd/6bf33ed31521c565931c037e9e81bac47c1acb000e850c6e24220e2a0c00/opentelemetry_semantic_conventions-0.66b2-py3-none-any.whl", hash = "sha256:4cbe61e5f9275d57ab31708446e7938ef4291ebbe6a7fca6f7a629c5acae87d8", size = 206280, upload-time = "2026-10-29T17:29:35.062Z" }, ] [[package]] @@ -3656,7 +3677,8 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "annotated-types" }, { name = "pydantic-core" }, - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, { name = "typing-inspection" }, ] sdist = { url = "https://files.pythonhosted.org/packages/18/a5/b60d21ac674192f8ab0ba4e9fd860690f9b4a6e51ca5df118733b487d8d6/pydantic-2.13.4.tar.gz", hash = "sha256:c40756b57adaa8b1efeeced5c196f3f3b7c435f90e84ea7f443901bec8099ef6", size = 844775, upload-time = "2026-05-06T13:43:05.343Z" } @@ -3669,7 +3691,8 @@ name = "pydantic-core" version = "2.46.4" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/9d/56/921726b776ace8d8f5db44c4ef961006580d91dc52b803c489fafd1aa249/pydantic_core-2.46.4.tar.gz", hash = "sha256:62f875393d7f270851f20523dd2e29f082bcc82292d66db2b64ea71f64b6e1c1", size = 471464, upload-time = "2026-05-06T13:37:06.98Z" } wheels = [ @@ -3803,11 +3826,11 @@ wheels = [ [[package]] name = "pyjwt" -version = "2.13.0" +version = "2.15.1" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/3b/81/58d0ac84e1ef3a3843791d6954d94c0b33d526c75eeb1efbce9d0a4c4077/pyjwt-2.13.0.tar.gz", hash = "sha256:41571c89ca91598c79e8ef18a2d07367d4810fbbd6f637794879baf1b7703423", size = 107515, upload-time = "2026-05-21T19:54:36.618Z" } +sdist = { url = "https://files.pythonhosted.org/packages/43/ea/5194e52748b0da83d71e082d75496eaec6e58f419f5e184786ded517e6a9/pyjwt-2.15.1.tar.gz", hash = "sha256:4f259e80cdfb6b3fc18a7de51fd1ef9ec79652f25019bae68975ca2468a34df8", size = 121252, upload-time = "2026-09-28T18:40:42.598Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/a3/5e/ecf12fdb62546d64385c158514e9b2b671f7832108ef2ecd2020ce0af2d1/pyjwt-2.13.0-py3-none-any.whl", hash = "sha256:66adcc2aff09b3f1bbd95fc1e1577df8ac8723c978552fd43304c8a290ac5728", size = 31274, upload-time = "2026-05-21T19:54:35.362Z" }, + { url = "https://files.pythonhosted.org/packages/50/ca/44de4e75f8aadc457f0634be3b542815078ded46dca30efb960edeecad6e/pyjwt-2.15.1-py3-none-any.whl", hash = "sha256:42d59d631f7768a1028a64c7ff581a9bf7519804daf91fc5b6c56e30eec5e193", size = 33860, upload-time = "2026-09-28T18:40:41.429Z" }, ] [package.optional-dependencies] @@ -3861,7 +3884,7 @@ version = "1.4.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "pytest" }, - { name = "typing-extensions", marker = "python_full_version < '3.13'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.13'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/43/7c/d36d04db312ecf4298932ef77e6e4a9e8ad017906e24e34f0b0c361a2473/pytest_asyncio-1.4.0.tar.gz", hash = "sha256:c6c0d2259945122819f171a32ecea2c349ead889ee28176caaf492143424be42", size = 58514, upload-time = "2026-05-26T09:56:04.083Z" } wheels = [ @@ -4117,7 +4140,7 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "attrs" }, { name = "rpds-py" }, - { name = "typing-extensions", marker = "python_full_version < '3.13'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.13'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/22/f5/df4e9027acead3ecc63e50fe1e36aca1523e1719559c499951bb4b53188f/referencing-0.37.0.tar.gz", hash = "sha256:44aefc3142c5b842538163acb373e24cce6632bd54bdb01b21ad5863489f50d8", size = 78036, upload-time = "2025-10-13T15:30:48.871Z" } wheels = [ @@ -4519,11 +4542,11 @@ wheels = [ [[package]] name = "sqlparse" -version = "0.6.0" +version = "0.6.1" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/5f/d3/3f06a1006f2261d1342aefb3c71eed02f5d4ca5bdbecd86ebc12ad38306e/sqlparse-0.6.0.tar.gz", hash = "sha256:113c35c75365ab9cc9c7231d68c6428fb11c085fc8e9eb1ad659b7ddbf6cd2b9", size = 178477, upload-time = "2026-08-13T19:16:06.396Z" } +sdist = { url = "https://files.pythonhosted.org/packages/7e/e0/361c764ea58cc1a75f7b4b424a74b08449db8bfa5e9199c7275999fdd1b9/sqlparse-0.6.1.tar.gz", hash = "sha256:ca722573f848ff2d30e40ea30f53a104b7dea7635ea9285891263eb2c58fb6e7", size = 182236, upload-time = "2026-11-01T18:06:45.951Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/d9/50/f00935da0ec7cbf325f8dc4f772ae46fbc7b672dd62876e73f0a94adda57/sqlparse-0.6.0-py3-none-any.whl", hash = "sha256:b861c0288ce2fa56209a9a6412d2e066ac664b3873b89c26c9d8415e8e32996f", size = 50070, upload-time = "2026-08-13T19:16:04.062Z" }, + { url = "https://files.pythonhosted.org/packages/df/ff/2fee788e82e75be8f210c65c5d103bf44c880e3769c884652a4cd911b8ba/sqlparse-0.6.1-py3-none-any.whl", hash = "sha256:3be5a72d04c873d690d7c6dedd33d6fae2ef82759881ceec02fc2efd0cba564f", size = 51200, upload-time = "2026-11-01T18:06:47.434Z" }, ] [[package]] @@ -4545,7 +4568,7 @@ version = "1.6.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "anyio" }, - { name = "typing-extensions", marker = "python_full_version < '3.13'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.13'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/b5/b4/205b0d5241d934e8add0c38aa924c4f9fb7330834ff11e5444db964ec3f9/starlette-1.6.0.tar.gz", hash = "sha256:d4e3ac5e546444960c710297a3c9fc3f7ebae1b7e963f3d36173b49da535be9b", size = 2716969, upload-time = "2026-08-08T18:27:57.512Z" } wheels = [ @@ -4722,7 +4745,8 @@ name = "typeguard" version = "4.6.0" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/b4/de/4420db493fa8fc0856d5e5c1b159c63a323d2de2317babe36b01568928e8/typeguard-4.6.0.tar.gz", hash = "sha256:e7414f09111317de3e335de92cd397c5c0ca00b1cc1676de12e1d444a79b3f21", size = 82330, upload-time = "2026-07-26T08:40:23.207Z" } wheels = [ @@ -4787,17 +4811,36 @@ wheels = [ name = "typing-extensions" version = "4.15.0" source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version >= '3.15'", +] sdist = { url = "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac84269196e94cf00f187f7ed21c242792a923cdb1c61f/typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466", size = 109391, upload-time = "2025-08-25T13:49:26.313Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548", size = 44614, upload-time = "2025-08-25T13:49:24.86Z" }, ] +[[package]] +name = "typing-extensions" +version = "4.16.0" +source = { registry = "https://pypi.org/simple" } +resolution-markers = [ + "python_full_version == '3.14.*'", + "python_full_version == '3.13.*'", + "python_full_version == '3.12.*' and sys_platform == 'emscripten'", + "python_full_version < '3.12' or (python_full_version == '3.12.*' and sys_platform != 'emscripten')", +] +sdist = { url = "https://files.pythonhosted.org/packages/f6/cc/6253133b5bb138fc3306cebfbda2c520f545d36b5be2c7255cc528bb45d6/typing_extensions-4.16.0.tar.gz", hash = "sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5", size = 113555, upload-time = "2026-07-02T08:40:05.92Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/49/d3/b8441a820a491ddfc024b0b0cf0393375b75ea13866d9c66727e54c2fc80/typing_extensions-4.16.0-py3-none-any.whl", hash = "sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8", size = 45571, upload-time = "2026-07-02T08:40:04.659Z" }, +] + [[package]] name = "typing-inspection" version = "0.4.2" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "typing-extensions" }, + { name = "typing-extensions", version = "4.15.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.15'" }, + { name = "typing-extensions", version = "4.16.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.15'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/55/e3/70399cb7dd41c10ac53367ae42139cf4b1ca5f36bb3dc6c9d33acdb43655/typing_inspection-0.4.2.tar.gz", hash = "sha256:ba561c48a67c5958007083d386c3295464928b01faa735ab8547c5692e87f464", size = 75949, upload-time = "2025-10-01T02:14:41.687Z" } wheels = [ @@ -4806,7 +4849,7 @@ wheels = [ [[package]] name = "uipath" -version = "2.15.2" +version = "2.15.4" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "applicationinsights" }, @@ -4831,23 +4874,23 @@ dependencies = [ { name = "uipath-platform" }, { name = "uipath-runtime" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/b4/5f/fc3fcf760e3fad651f1f7c7e887c2fc36d6c99abb78d1aed2019f9d58e3f/uipath-2.15.2.tar.gz", hash = "sha256:303dbb9ff14954bdcad03ef0dfbab46fd98865c37890d3b289f65fccd779105d", size = 4611713, upload-time = "2026-11-10T08:17:58.635Z" } +sdist = { url = "https://files.pythonhosted.org/packages/5f/87/d478bcacb278ad4bedc39e7291177a5808923a966d403112e6994c722e46/uipath-2.15.4.tar.gz", hash = "sha256:febc66a19b0136c4947859df3c45357dd3163d8872e11cfac4d743b30ba40a1d", size = 4628541, upload-time = "2026-11-19T17:41:36.083Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/99/f1/41a7c45309d63fad851d9524755acffd4622d5c8166ae31189a90d7665b2/uipath-2.15.2-py3-none-any.whl", hash = "sha256:543894e5abe30e9f54889015592ad0d97c6cbfa6912c87fb02b88569f63ef492", size = 460190, upload-time = "2026-11-10T08:17:56.856Z" }, + { url = "https://files.pythonhosted.org/packages/91/c9/7f3939b73b7d838bd96cf8a4dd22016ddc24e426adaf8a90f166656c840a/uipath-2.15.4-py3-none-any.whl", hash = "sha256:a78e7a003ac1474eabe737bd7ad1c534eddc6df6f6fca17f12651ca5689103ac", size = 462070, upload-time = "2026-11-19T17:41:33.738Z" }, ] [[package]] name = "uipath-core" -version = "0.5.34" +version = "0.5.35" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "opentelemetry-instrumentation" }, { name = "opentelemetry-sdk" }, { name = "pydantic" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/fc/7e/4e41e9278249a82cd8e14fbe5e407de480be338cde79fe4d09b647fdcaca/uipath_core-0.5.34.tar.gz", hash = "sha256:6511d72989e87f24d3ed3ac3649379c78bce0f82663300357354819d729a4ad8", size = 131912, upload-time = "2026-11-02T11:12:43.798Z" } +sdist = { url = "https://files.pythonhosted.org/packages/4c/41/59aee7fed8f99b5436ae46395407d398ea23afd3bfb86722548f21997922/uipath_core-0.5.35.tar.gz", hash = "sha256:5a6d1d3aa2922afc2b8cabe0330a4e6b5521579e1615b921155c753cd1f5c5c3", size = 131459, upload-time = "2026-11-19T15:15:23.964Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/b7/38/8f1b0db5987ad3607ba81bdd576fe71e5d941b2d9cf31ead262813c5efaf/uipath_core-0.5.34-py3-none-any.whl", hash = "sha256:f3e1168e4ae440cf425703f50986e5d29f635c5c6d4025b3b1f0eebad0e3622c", size = 55393, upload-time = "2026-11-02T11:12:42.089Z" }, + { url = "https://files.pythonhosted.org/packages/b9/29/b3dca487c3092ad243621a9d66410519841a63172ab3750e4292201a2cef/uipath_core-0.5.35-py3-none-any.whl", hash = "sha256:483d1a5dba8a35f5b52cb89cfc01dc19d3fca9f791f33230709834b60ad7c007", size = 55397, upload-time = "2026-11-19T15:15:22.4Z" }, ] [[package]] @@ -4861,7 +4904,7 @@ wheels = [ [[package]] name = "uipath-langchain" -version = "0.20.4" +version = "0.20.5" source = { editable = "." } dependencies = [ { name = "a2a-sdk" }, @@ -4960,7 +5003,7 @@ requires-dist = [ { name = "pydantic-settings", specifier = ">=2.6.0" }, { name = "python-dotenv", specifier = ">=1.2.2,<2.0.0" }, { name = "rdflib", specifier = ">=7.0.0,<8.0.0" }, - { name = "uipath", specifier = ">=2.15.1,<2.16.0" }, + { name = "uipath", specifier = ">=2.15.4,<2.16.0" }, { name = "uipath-core", specifier = ">=0.5.34,<0.6.0" }, { name = "uipath-langchain", extras = ["code-interpreter"], marker = "extra == 'all'" }, { name = "uipath-langchain", extras = ["video"], marker = "extra == 'all'" }, @@ -5059,7 +5102,7 @@ wheels = [ [[package]] name = "uipath-platform" -version = "0.3.11" +version = "0.3.12" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "anyio" }, @@ -5070,9 +5113,9 @@ dependencies = [ { name = "truststore" }, { name = "uipath-core" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/82/c1/d43da71645d56018f1f0c2a5eb323e6db0705e307b0b01f2e73f80b5ebcb/uipath_platform-0.3.11.tar.gz", hash = "sha256:cc4c77e42af59b1c4c11b7902ad29e7754c0cc0236191ba39e1aabaaf7736615", size = 509107, upload-time = "2026-11-19T09:13:35.478Z" } +sdist = { url = "https://files.pythonhosted.org/packages/61/4a/a1527550f880fa4468f70fa11e4a78bb7da63c3135a56df29c24bb923004/uipath_platform-0.3.12.tar.gz", hash = "sha256:6059d786bff2d39b35a5c10a727b700a6daa464b2ea8ab6bdceef89f92a04473", size = 508432, upload-time = "2026-11-19T15:18:21.866Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/49/3b/9f8932871ed5f5966db6f2de3b2c2bc0a33be4539df02e2caddf112dee93/uipath_platform-0.3.11-py3-none-any.whl", hash = "sha256:526dab44ef1184a95d8bdd7e8598276f6fc0036debaabec6da306ea43b183a98", size = 325204, upload-time = "2026-11-19T09:13:33.89Z" }, + { url = "https://files.pythonhosted.org/packages/c6/70/a9b0214fceccf4ea3f48df6e99960617e3d77e660ec9eb14106e05083679/uipath_platform-0.3.12-py3-none-any.whl", hash = "sha256:049f06463ebc05d5c22db6ef31459d12df62d72d95234e3e996f82d8de60ad00", size = 325232, upload-time = "2026-11-19T15:18:20.1Z" }, ] [[package]] From a1039f6784e397bf1617703fae2dec6a1953904d Mon Sep 17 00:00:00 2001 From: Maxwell Du <60411452+maxduu@users.noreply.github.com> Date: Thu, 19 Nov 2026 14:33:12 -0500 Subject: [PATCH 6/6] test: pin that stripping the hint section leaves graph state alone The node hands state.messages to the extractor directly, so a strip that edited the system message in place would write the stripped prompt back into graph state and the loop would silently lose its output-fields section. No existing test covered this: the only section-bearing system message sat at index 2, so the rebuild branch never ran with real graph state. Reverting the rebuild to an in-place assignment passed the whole suite; it now fails exactly this test. Reported by Copilot on #1225. Co-Authored-By: Claude Opus 5 --- .../react/test_conversational_output_node.py | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tests/agent/react/test_conversational_output_node.py b/tests/agent/react/test_conversational_output_node.py index edd050fcc..d3c400140 100644 --- a/tests/agent/react/test_conversational_output_node.py +++ b/tests/agent/react/test_conversational_output_node.py @@ -121,6 +121,32 @@ async def test_appends_human_instruction_for_llm_call(self): # Nothing is written to the messages channel — args flow via inner_state. assert "messages" not in result + @pytest.mark.asyncio + async def test_stripping_does_not_write_back_into_graph_state(self): + """The node hands `state.messages` to the extractor directly, so a + strip that edited the system message in place would leave graph state + holding a prompt stripped of its output-fields section -- the loop + would silently lose it. Only the call's copy may be rewritten. + """ + model, _non_streaming, bound = _make_mock_model() + node = create_conversational_output_node(model, _OutputSchema) + section_bearing = get_chat_system_prompt( + model="claude-3-sonnet", + system_message="builder prompt", + agent_name="Agent", + output_schema=build_conversational_output_args_schema(_OutputSchema), + ) + state = _make_state( + [SystemMessage(content=section_bearing), HumanMessage(content="hi")] + ) + + await node(state) + + sent = bound.ainvoke.call_args.args[0] + assert "STRUCTURED OUTPUT FOR THIS TURN" not in sent[0].content + assert "builder prompt" in sent[0].content + assert state.messages[0].content == section_bearing + @pytest.mark.asyncio async def test_binds_only_set_conversational_output_tool(self): model, non_streaming, _bound = _make_mock_model()