FinalStreamingStdOutCallbackHandler(
self,
*,
answer_prefix_tokens: list[str] | None = None,
strip_tokens: | Name | Type | Description |
|---|---|---|
answer_prefix_tokens | list[str] | None | Default: NoneToken sequence that prefixes the answer. Default is ["Final", "Answer", ":"] |
strip_tokens | bool | Default: TrueIgnore white spaces and new lines when comparing answer_prefix_tokens to last tokens? (to determine if answer has been reached) |
stream_prefix | bool | Default: False |
Callback handler for streaming in agents.
Only works with agents using LLMs that support streaming.
Only the final output of the agent will be streamed.
Should answer prefix itself also be streamed?