bodhi-realtime-agent / createAgentContext
Function: createAgentContext()
createAgentContext(
options):AgentContext
Defined in: agent/agent-context.ts:66
Factory that builds an AgentContext object for agent lifecycle hooks. Wires injectSystemMessage and getRecentTurns to the live ConversationContext.
Parameters
options
agentName
string
conversationContext
hooks
memoryFacts?
requestTransfer?
(toAgent) => void
sendAudioToClient?
(data) => void
sendJsonToClient?
(message) => void
sessionId
string
setExternalAudioHandler?
(handler) => void
stopBufferingAndDrain?
(handler) => void