Skip to content

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

ConversationContext

hooks

HooksManager

memoryFacts?

MemoryFact[]

sessionId

string

Returns

AgentContext

Built with VitePress