Defined in: utils/llms/context_strategy/NoopContextStrategy.ts:9
A context strategy that performs no filtering or trimming of the message history. This strategy is ideal when the developer wants to manually manage the conversation context.
new NoopContextStrategy():
NoopContextStrategy
NoopContextStrategy
buildContext(
systemPrompt,history,_maxContextLength,_getTokenCount):Message[]
Defined in: utils/llms/context_strategy/NoopContextStrategy.ts:18
Builds the context by prepending the system prompt to the entire unfiltered history.
string
The top-level instructions for the model.
Message[]
The complete conversation history.
number
Unused in this strategy.
(messages) => number
Unused in this strategy.
Message[]
The unedited message history with the system prompt at the beginning.