Agent, as shown in the “Usage” sections below.
An agent emits the following events:
on_agent_started_speaking
Called when the agent begins speaking.
Usage
Parameters
Object
required
input parameter:
on_user_started_speaking
Called when the user starts speaking.
Usage
Parameters
Object
required
input parameter:
on_user_stopped_speaking
Called when the user stops speaking.
Usage
Parameters
Object
required
input parameter:
on_agent_stopped_speaking
Called when the agent finishes speaking.
Usage
Parameters
Object
required
input parameter:
on_user_message_added
Called when the user’s message is added to the chat history during the session.
Usage
Parameters
Object
required
input parameter:
on_agent_message_added
Called when the agent’s message is added to the chat history during the session.
Usage
Parameters
Object
required
input parameter:
on_agent_interrupted
Called if the agent is interrupted by the user while speaking.
Usage
Parameters
Object
required
input parameter:
on_function_calls_collected
Called when Jay receives the complete set of functions to execute from the LLM.
Usage
Parameters
Object
required
input parameter:
on_function_calls_executed
Called after Jay has executed all the functions the model requested.
Usage
Parameters
Object
required
input parameter: