ConversationManagerReduceOptions
type ConversationManagerReduceOptions = { agent: LocalAgent; error: ContextWindowOverflowError;};Defined in: src/conversation-manager/conversation-manager.ts:16
Options passed to ConversationManager.reduce.
Properties
Section titled “Properties”agent: LocalAgent;Defined in: src/conversation-manager/conversation-manager.ts:20
The agent instance. Mutate agent.messages in place to reduce history.
error: ContextWindowOverflowError;Defined in: src/conversation-manager/conversation-manager.ts:27
The ContextWindowOverflowError that triggered this call.
reduce MUST remove enough history for the next model call to succeed,
or this error will propagate out of the agent loop uncaught.