diff --git a/libs/core/langchain_core/callbacks/base.py b/libs/core/langchain_core/callbacks/base.py index 54a8fc36ca7..c9d0e656522 100644 --- a/libs/core/langchain_core/callbacks/base.py +++ b/libs/core/langchain_core/callbacks/base.py @@ -76,7 +76,7 @@ class LLMManagerMixin: For both chat models and non-chat models (legacy LLMs). Args: - token: The new token, or a list of content blocks for structured output. + token: The new token, or a list of content blocks. chunk: The new generated chunk, containing content and other information. run_id: The ID of the current run. parent_run_id: The ID of the parent run. @@ -556,7 +556,7 @@ class AsyncCallbackHandler(BaseCallbackHandler): For both chat models and non-chat models (legacy LLMs). Args: - token: The new token, or a list of content blocks for structured output. + token: The new token, or a list of content blocks. chunk: The new generated chunk, containing content and other information. run_id: The ID of the current run. parent_run_id: The ID of the parent run. diff --git a/libs/core/langchain_core/callbacks/manager.py b/libs/core/langchain_core/callbacks/manager.py index 0b6dfd2e3e9..3620e898c08 100644 --- a/libs/core/langchain_core/callbacks/manager.py +++ b/libs/core/langchain_core/callbacks/manager.py @@ -686,7 +686,7 @@ class CallbackManagerForLLMRun(RunManager, LLMManagerMixin): """Run when LLM generates a new token. Args: - token: The new token, or a list of content blocks for structured output. + token: The new token, or a list of content blocks. chunk: The chunk. **kwargs: Additional keyword arguments. @@ -784,7 +784,7 @@ class AsyncCallbackManagerForLLMRun(AsyncRunManager, LLMManagerMixin): """Run when LLM generates a new token. Args: - token: The new token, or a list of content blocks for structured output. + token: The new token, or a list of content blocks. chunk: The chunk. **kwargs: Additional keyword arguments. diff --git a/libs/core/langchain_core/callbacks/streaming_stdout.py b/libs/core/langchain_core/callbacks/streaming_stdout.py index 67187bf4dbd..6e1112c4e56 100644 --- a/libs/core/langchain_core/callbacks/streaming_stdout.py +++ b/libs/core/langchain_core/callbacks/streaming_stdout.py @@ -48,7 +48,7 @@ class StreamingStdOutCallbackHandler(BaseCallbackHandler): """Run on new LLM token. Only available when streaming is enabled. Args: - token: The new token, or a list of content blocks for structured output. + token: The new token, or a list of content blocks. **kwargs: Additional keyword arguments. """ sys.stdout.write(str(token)) diff --git a/libs/core/langchain_core/tracers/core.py b/libs/core/langchain_core/tracers/core.py index 2d8ee093f1d..03090df41ab 100644 --- a/libs/core/langchain_core/tracers/core.py +++ b/libs/core/langchain_core/tracers/core.py @@ -585,7 +585,7 @@ class _TracerCore(ABC): Args: run: The LLM run. - token: The new token, or a list of content blocks for structured output. + token: The new token, or a list of content blocks. chunk: Optional chunk. """ _ = (run, token, chunk)