From 7a0c3e0482cd531e8068ed1a715c49c194b2b9a0 Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Thu, 31 Jul 2025 17:27:37 -0400 Subject: [PATCH] fix: update snapshots --- .../prompts/__snapshots__/test_chat.ambr | 4 +- .../runnables/__snapshots__/test_graph.ambr | 53 +++++++++++++++++-- 2 files changed, 51 insertions(+), 6 deletions(-) diff --git a/libs/core/tests/unit_tests/prompts/__snapshots__/test_chat.ambr b/libs/core/tests/unit_tests/prompts/__snapshots__/test_chat.ambr index 44175f5b93d..f45b2f7dae9 100644 --- a/libs/core/tests/unit_tests/prompts/__snapshots__/test_chat.ambr +++ b/libs/core/tests/unit_tests/prompts/__snapshots__/test_chat.ambr @@ -1062,7 +1062,7 @@ 'description': ''' A chunk of a tool call (e.g., as part of a stream). - When merging ToolCallChunks (e.g., via ``AIMessageChunk.__add__``), + When merging ``ToolCallChunks`` (e.g., via ``AIMessageChunk.__add__``), all string attributes are concatenated. Chunks are only merged if their values of ``index`` are equal and not ``None``. @@ -2523,7 +2523,7 @@ 'description': ''' A chunk of a tool call (e.g., as part of a stream). - When merging ToolCallChunks (e.g., via ``AIMessageChunk.__add__``), + When merging ``ToolCallChunks`` (e.g., via ``AIMessageChunk.__add__``), all string attributes are concatenated. Chunks are only merged if their values of ``index`` are equal and not ``None``. diff --git a/libs/core/tests/unit_tests/runnables/__snapshots__/test_graph.ambr b/libs/core/tests/unit_tests/runnables/__snapshots__/test_graph.ambr index c600f508299..ee37908b390 100644 --- a/libs/core/tests/unit_tests/runnables/__snapshots__/test_graph.ambr +++ b/libs/core/tests/unit_tests/runnables/__snapshots__/test_graph.ambr @@ -618,7 +618,7 @@ Annotation for citing data from a document. .. note:: - ``start/end`` indices refer to the **response text**, + ``start``/``end`` indices refer to the **response text**, not the source text. This means that the indices are relative to the model's response, not the original document (as specified in the ``url``). @@ -1258,7 +1258,7 @@ The purpose of this block should be to simply hold a provider-specific payload. If a provider's non-standard output includes reasoning and tool calls, it should be the adapter's job to parse that payload and emit the corresponding standard - ReasoningContentBlock and ToolCallContentBlocks. + ``ReasoningContentBlock`` and ``ToolCallContentBlocks``. .. note:: ``create_non_standard_block`` may also be used as a factory to create a @@ -1440,7 +1440,7 @@ Contains additional information returned by the provider, such as response headers, service tiers, log probabilities, system fingerprints, etc. - Extra keys are permitted from what is typed here (via `total=False`), allowing + Extra keys are permitted from what is typed here (via ``total=False``), allowing for provider-specific metadata to be included without breaking the type definition. ''', @@ -1656,7 +1656,7 @@ 'description': ''' A chunk of a tool call (e.g., as part of a stream). - When merging ToolCallChunks (e.g., via ``AIMessageChunk.__add__``), + When merging ``ToolCallChunks`` (e.g., via ``AIMessageChunk.__add__``), all string attributes are concatenated. Chunks are only merged if their values of ``index`` are equal and not ``None``. @@ -2540,6 +2540,15 @@ dict({ '$ref': '#/$defs/ToolCall', }), + dict({ + '$ref': '#/$defs/ToolCallChunk', + }), + dict({ + '$ref': '#/$defs/Citation', + }), + dict({ + '$ref': '#/$defs/NonStandardAnnotation', + }), dict({ '$ref': '#/$defs/InvalidToolCall', }), @@ -2663,6 +2672,15 @@ dict({ '$ref': '#/$defs/ToolCall', }), + dict({ + '$ref': '#/$defs/ToolCallChunk', + }), + dict({ + '$ref': '#/$defs/Citation', + }), + dict({ + '$ref': '#/$defs/NonStandardAnnotation', + }), dict({ '$ref': '#/$defs/InvalidToolCall', }), @@ -2786,6 +2804,15 @@ dict({ '$ref': '#/$defs/ToolCall', }), + dict({ + '$ref': '#/$defs/ToolCallChunk', + }), + dict({ + '$ref': '#/$defs/Citation', + }), + dict({ + '$ref': '#/$defs/NonStandardAnnotation', + }), dict({ '$ref': '#/$defs/InvalidToolCall', }), @@ -2871,6 +2898,15 @@ dict({ '$ref': '#/$defs/ToolCall', }), + dict({ + '$ref': '#/$defs/ToolCallChunk', + }), + dict({ + '$ref': '#/$defs/Citation', + }), + dict({ + '$ref': '#/$defs/NonStandardAnnotation', + }), dict({ '$ref': '#/$defs/InvalidToolCall', }), @@ -2979,6 +3015,15 @@ dict({ '$ref': '#/$defs/ToolCall', }), + dict({ + '$ref': '#/$defs/ToolCallChunk', + }), + dict({ + '$ref': '#/$defs/Citation', + }), + dict({ + '$ref': '#/$defs/NonStandardAnnotation', + }), dict({ '$ref': '#/$defs/InvalidToolCall', }),