mirror of
https://github.com/hwchase17/langchain.git
synced 2026-02-21 14:43:07 +00:00
cr
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user