This commit is contained in:
Mason Daugherty
2026-02-21 02:07:34 -05:00
parent 70e0b908a4
commit fc897679f8
4 changed files with 6 additions and 6 deletions

View File

@@ -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.

View File

@@ -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.

View File

@@ -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))

View File

@@ -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)