Generates markdown labels for LLMThought containers. Pass a custom subclass of this to StreamlitCallbackHandler to override its default labeling logic.
LLMThoughtLabeler()Return the markdown label for a new LLMThought that doesn't have an associated tool yet.
Return the label for an LLMThought that has an associated tool.
tool The tool's ToolRecord
is_complete True if the thought is complete; False if the thought is still receiving input.
The markdown label for the thought's container.
Return a markdown label for the special 'history' container that contains overflow thoughts.
Return the markdown label for the agent's final thought - the "Now I have the answer" thought, that doesn't involve a tool.