We use cookies on our website.
Docs
API Reference
Schema
Event

Event

A python enum representing the available events in the publish-subscribe event system. Can be one of the following values:

LLMStart = "LLM Start"  # Triggered before the `LLM` class sends the prompt to the LLM
LLMEnd = "LLM End"  # Triggered after the `LLM` class recieves the response from the LLM
ChatLLMInit = "ChatLLM Init"  # Triggered after the `system_prompt` of a `ChatLLM` class is set
ChatLLMStart = "ChatLLM Start"  # Triggered before the `ChatLLM` class sends the message to the LLM
ChatLLMEnd = "ChatLLM End"  # Triggered after the `ChatLLM` class recieves the message from the LLM
ToolStart = "Tool Start"  # Triggered before running the `_run` function in `Tool`
ToolEnd = "Tool End"  # Triggered after getting the response from the `_run` function from `Tool`
EmbeddingStart = "Embedding Start"  # Triggered before an embedding is created by the `EmbeddingModel` class
EmbeddingEnd = "Embedding End"  # Triggered after the `EmbeddingModel` creates an embedding
AgentStart = "Agent Start"  # Triggered before starting the agent loop
AgentStep = "Agent Step"  # Triggered after each cycle in the agent loop is completed
AgentEnd = "Agent End"  # Triggered if the agent found the final answer and is returning it to the user
AgentTimeout = "Agent Timeout"  # If the agent timed-out either by exceding the `max_steps` or `max_duration` it can run.