mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-09 04:50:37 +00:00
nit: rearrange index
to be grouped with other always-present fields
This commit is contained in:
parent
df0a8562a9
commit
ee13a3b6fa
@ -470,15 +470,15 @@ class ImageContentBlock(TypedDict):
|
|||||||
`Examples from IANA <https://www.iana.org/assignments/media-types/media-types.xhtml#image>`__
|
`Examples from IANA <https://www.iana.org/assignments/media-types/media-types.xhtml#image>`__
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
index: NotRequired[int]
|
||||||
|
"""Index of block in aggregate response. Used during streaming."""
|
||||||
|
|
||||||
url: NotRequired[str]
|
url: NotRequired[str]
|
||||||
"""URL of the image."""
|
"""URL of the image."""
|
||||||
|
|
||||||
base64: NotRequired[str]
|
base64: NotRequired[str]
|
||||||
"""Data as a base64 string."""
|
"""Data as a base64 string."""
|
||||||
|
|
||||||
index: NotRequired[int]
|
|
||||||
"""Index of block in aggregate response. Used during streaming."""
|
|
||||||
|
|
||||||
# title: NotRequired[str]
|
# title: NotRequired[str]
|
||||||
# """Title of the image."""
|
# """Title of the image."""
|
||||||
|
|
||||||
@ -508,15 +508,15 @@ class VideoContentBlock(TypedDict):
|
|||||||
`Examples from IANA <https://www.iana.org/assignments/media-types/media-types.xhtml#video>`__
|
`Examples from IANA <https://www.iana.org/assignments/media-types/media-types.xhtml#video>`__
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
index: NotRequired[int]
|
||||||
|
"""Index of block in aggregate response. Used during streaming."""
|
||||||
|
|
||||||
url: NotRequired[str]
|
url: NotRequired[str]
|
||||||
"""URL of the video."""
|
"""URL of the video."""
|
||||||
|
|
||||||
base64: NotRequired[str]
|
base64: NotRequired[str]
|
||||||
"""Data as a base64 string."""
|
"""Data as a base64 string."""
|
||||||
|
|
||||||
index: NotRequired[int]
|
|
||||||
"""Index of block in aggregate response. Used during streaming."""
|
|
||||||
|
|
||||||
# title: NotRequired[str]
|
# title: NotRequired[str]
|
||||||
# """Title of the video."""
|
# """Title of the video."""
|
||||||
|
|
||||||
@ -546,15 +546,15 @@ class AudioContentBlock(TypedDict):
|
|||||||
`Examples from IANA <https://www.iana.org/assignments/media-types/media-types.xhtml#audio>`__
|
`Examples from IANA <https://www.iana.org/assignments/media-types/media-types.xhtml#audio>`__
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
index: NotRequired[int]
|
||||||
|
"""Index of block in aggregate response. Used during streaming."""
|
||||||
|
|
||||||
url: NotRequired[str]
|
url: NotRequired[str]
|
||||||
"""URL of the audio."""
|
"""URL of the audio."""
|
||||||
|
|
||||||
base64: NotRequired[str]
|
base64: NotRequired[str]
|
||||||
"""Data as a base64 string."""
|
"""Data as a base64 string."""
|
||||||
|
|
||||||
index: NotRequired[int]
|
|
||||||
"""Index of block in aggregate response. Used during streaming."""
|
|
||||||
|
|
||||||
# title: NotRequired[str]
|
# title: NotRequired[str]
|
||||||
# """Title of the audio."""
|
# """Title of the audio."""
|
||||||
|
|
||||||
@ -586,6 +586,9 @@ class PlainTextContentBlock(TypedDict):
|
|||||||
mime_type: Literal["text/plain"]
|
mime_type: Literal["text/plain"]
|
||||||
"""MIME type of the file. Required for base64."""
|
"""MIME type of the file. Required for base64."""
|
||||||
|
|
||||||
|
index: NotRequired[int]
|
||||||
|
"""Index of block in aggregate response. Used during streaming."""
|
||||||
|
|
||||||
url: NotRequired[str]
|
url: NotRequired[str]
|
||||||
"""URL of the plaintext."""
|
"""URL of the plaintext."""
|
||||||
|
|
||||||
@ -595,9 +598,6 @@ class PlainTextContentBlock(TypedDict):
|
|||||||
text: NotRequired[str]
|
text: NotRequired[str]
|
||||||
"""Plaintext content. This is optional if the data is provided as base64."""
|
"""Plaintext content. This is optional if the data is provided as base64."""
|
||||||
|
|
||||||
index: NotRequired[int]
|
|
||||||
"""Index of block in aggregate response. Used during streaming."""
|
|
||||||
|
|
||||||
title: NotRequired[str]
|
title: NotRequired[str]
|
||||||
"""Title of the text data, e.g., the title of a document."""
|
"""Title of the text data, e.g., the title of a document."""
|
||||||
|
|
||||||
@ -635,15 +635,15 @@ class FileContentBlock(TypedDict):
|
|||||||
`Examples from IANA <https://www.iana.org/assignments/media-types/media-types.xhtml>`__
|
`Examples from IANA <https://www.iana.org/assignments/media-types/media-types.xhtml>`__
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
index: NotRequired[int]
|
||||||
|
"""Index of block in aggregate response. Used during streaming."""
|
||||||
|
|
||||||
url: NotRequired[str]
|
url: NotRequired[str]
|
||||||
"""URL of the file."""
|
"""URL of the file."""
|
||||||
|
|
||||||
base64: NotRequired[str]
|
base64: NotRequired[str]
|
||||||
"""Data as a base64 string."""
|
"""Data as a base64 string."""
|
||||||
|
|
||||||
index: NotRequired[int]
|
|
||||||
"""Index of block in aggregate response. Used during streaming."""
|
|
||||||
|
|
||||||
# title: NotRequired[str]
|
# title: NotRequired[str]
|
||||||
# """Title of the file, e.g., the name of a document or file."""
|
# """Title of the file, e.g., the name of a document or file."""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user