chore: format output_version docstring

This commit is contained in:
Mason Daugherty
2025-08-15 14:33:59 -04:00
parent 601fa7d672
commit c9e847fcb8

View File

@@ -335,17 +335,18 @@ class BaseChatModel(BaseLanguageModel[BaseMessage], ABC):
"""
output_version: str = "v0"
"""Version of AIMessage output format to use.
"""Version of ``AIMessage`` output format to use.
This field is used to roll-out new output formats for chat model AIMessages
This field is used to roll-out new output formats for chat model ``AIMessage``s
in a backwards-compatible way.
``'v1'`` standardizes output format using a list of typed ContentBlock dicts. We
recommend this for new applications.
All chat models currently support the default of ``"v0"``.
All chat models currently support the default of ``'v0'``.
.. versionadded:: 1.0
"""
@model_validator(mode="before")