AsyncFinalIteratorCallbackHandler(
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 that returns an async iterator.
Only the final output of the agent will be iterated.
Should answer prefix itself also be streamed?