View module source on GitHub

intercept_session_start

def intercept_session_start(self: AgentSession, room, room_name, agent: Agent)

This function is called when a session starts. This is the point where we create a new session for Maxim. The session info along with room_id, agent_id, etc is stored in the thread-local store.

intercept_update_agent_state

def intercept_update_agent_state(self, new_state)

This function is called when the agent state is updated.

intercept_generate_reply

def intercept_generate_reply(self, instructions)

This function is called when the agent generates a reply.

intercept_user_state_changed

def intercept_user_state_changed(self, new_state)

This function is called when the user state is changed.

handle_tool_call_executed

def handle_tool_call_executed(self, event: FunctionToolsExecutedEvent)

This function is called when the agent executes a tool call.