snapshots

This commit is contained in:
Mason Daugherty 2025-08-05 09:55:13 -04:00
parent c7c47f81c4
commit c709f85c27
No known key found for this signature in database

View File

@ -3006,7 +3006,7 @@
'description': ''' 'description': '''
A chunk of a tool call (e.g., as part of a stream). 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 all string attributes are concatenated. Chunks are only merged if their
values of ``index`` are equal and not ``None``. values of ``index`` are equal and not ``None``.
@ -4530,7 +4530,7 @@
'description': ''' 'description': '''
A chunk of a tool call (e.g., as part of a stream). 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 all string attributes are concatenated. Chunks are only merged if their
values of ``index`` are equal and not ``None``. values of ``index`` are equal and not ``None``.
@ -6066,7 +6066,7 @@
'description': ''' 'description': '''
A chunk of a tool call (e.g., as part of a stream). 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 all string attributes are concatenated. Chunks are only merged if their
values of ``index`` are equal and not ``None``. values of ``index`` are equal and not ``None``.
@ -7458,7 +7458,7 @@
'description': ''' 'description': '''
A chunk of a tool call (e.g., as part of a stream). 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 all string attributes are concatenated. Chunks are only merged if their
values of ``index`` are equal and not ``None``. values of ``index`` are equal and not ``None``.
@ -9024,7 +9024,7 @@
'description': ''' 'description': '''
A chunk of a tool call (e.g., as part of a stream). 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 all string attributes are concatenated. Chunks are only merged if their
values of ``index`` are equal and not ``None``. values of ``index`` are equal and not ``None``.
@ -9638,7 +9638,7 @@
Annotation for citing data from a document. Annotation for citing data from a document.
.. note:: .. 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 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``). response, not the original document (as specified in the ``url``).
@ -10267,7 +10267,7 @@
The purpose of this block should be to simply hold a provider-specific payload. 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 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 the adapter's job to parse that payload and emit the corresponding standard
ReasoningContentBlock and ToolCallContentBlocks. ``ReasoningContentBlock`` and ``ToolCallContentBlocks``.
.. note:: .. note::
``create_non_standard_block`` may also be used as a factory to create a ``create_non_standard_block`` may also be used as a factory to create a
@ -10445,7 +10445,7 @@
Contains additional information returned by the provider, such as Contains additional information returned by the provider, such as
response headers, service tiers, log probabilities, system fingerprints, etc. 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 for provider-specific metadata to be included without breaking the type
definition. definition.
''', ''',
@ -10658,7 +10658,7 @@
'description': ''' 'description': '''
A chunk of a tool call (e.g., as part of a stream). 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 all string attributes are concatenated. Chunks are only merged if their
values of ``index`` are equal and not ``None``. values of ``index`` are equal and not ``None``.
@ -11533,10 +11533,10 @@
'$ref': '#/definitions/ToolCall', '$ref': '#/definitions/ToolCall',
}), }),
dict({ dict({
'$ref': '#/definitions/InvalidToolCall', '$ref': '#/definitions/ToolCallChunk',
}), }),
dict({ dict({
'$ref': '#/definitions/ToolCallChunk', '$ref': '#/definitions/InvalidToolCall',
}), }),
dict({ dict({
'$ref': '#/definitions/ReasoningContentBlock', '$ref': '#/definitions/ReasoningContentBlock',
@ -11658,10 +11658,10 @@
'$ref': '#/definitions/ToolCall', '$ref': '#/definitions/ToolCall',
}), }),
dict({ dict({
'$ref': '#/definitions/InvalidToolCall', '$ref': '#/definitions/ToolCallChunk',
}), }),
dict({ dict({
'$ref': '#/definitions/ToolCallChunk', '$ref': '#/definitions/InvalidToolCall',
}), }),
dict({ dict({
'$ref': '#/definitions/ReasoningContentBlock', '$ref': '#/definitions/ReasoningContentBlock',
@ -11783,10 +11783,10 @@
'$ref': '#/definitions/ToolCall', '$ref': '#/definitions/ToolCall',
}), }),
dict({ dict({
'$ref': '#/definitions/InvalidToolCall', '$ref': '#/definitions/ToolCallChunk',
}), }),
dict({ dict({
'$ref': '#/definitions/ToolCallChunk', '$ref': '#/definitions/InvalidToolCall',
}), }),
dict({ dict({
'$ref': '#/definitions/ReasoningContentBlock', '$ref': '#/definitions/ReasoningContentBlock',
@ -11870,10 +11870,10 @@
'$ref': '#/definitions/ToolCall', '$ref': '#/definitions/ToolCall',
}), }),
dict({ dict({
'$ref': '#/definitions/InvalidToolCall', '$ref': '#/definitions/ToolCallChunk',
}), }),
dict({ dict({
'$ref': '#/definitions/ToolCallChunk', '$ref': '#/definitions/InvalidToolCall',
}), }),
dict({ dict({
'$ref': '#/definitions/ReasoningContentBlock', '$ref': '#/definitions/ReasoningContentBlock',
@ -11980,10 +11980,10 @@
'$ref': '#/definitions/ToolCall', '$ref': '#/definitions/ToolCall',
}), }),
dict({ dict({
'$ref': '#/definitions/InvalidToolCall', '$ref': '#/definitions/ToolCallChunk',
}), }),
dict({ dict({
'$ref': '#/definitions/ToolCallChunk', '$ref': '#/definitions/InvalidToolCall',
}), }),
dict({ dict({
'$ref': '#/definitions/ReasoningContentBlock', '$ref': '#/definitions/ReasoningContentBlock',
@ -13212,7 +13212,7 @@
'description': ''' 'description': '''
A chunk of a tool call (e.g., as part of a stream). 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 all string attributes are concatenated. Chunks are only merged if their
values of ``index`` are equal and not ``None``. values of ``index`` are equal and not ``None``.
@ -14698,7 +14698,7 @@
'description': ''' 'description': '''
A chunk of a tool call (e.g., as part of a stream). 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 all string attributes are concatenated. Chunks are only merged if their
values of ``index`` are equal and not ``None``. values of ``index`` are equal and not ``None``.