Agent
, as shown in the “Usage” sections below.
An agent emits the following events:
Event | Description |
---|---|
on_agent_started_speaking | Agent started speaking |
on_user_started_speaking | User started speaking |
on_agent_stopped_speaking | Agent stopped speaking |
on_user_stopped_speaking | User stopped speaking |
on_agent_message_added | Agent message added to the chat history during the session |
on_user_message_added | User message added to the chat history during the session |
on_agent_interrupted | Agent was interrupted by the user while speaking |
on_function_calls_collected | Jay received the complete set of functions to execute from the LLM |
on_function_calls_executed | Jay executed all of the functions that were collected |
on_agent_started_speaking
input
parameter:
on_user_started_speaking
input
parameter:
on_user_stopped_speaking
input
parameter:
on_agent_stopped_speaking
input
parameter:
on_user_message_added
input
parameter:
on_agent_message_added
input
parameter:
on_agent_interrupted
input
parameter:
on_function_calls_collected
input
parameter:
on_function_calls_executed
input
parameter: