Class: NoopContextStrategy
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.
Implements
Constructors
Constructor
new NoopContextStrategy():
NoopContextStrategy
Returns
NoopContextStrategy
Methods
buildContext()
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.
Parameters
systemPrompt
string
The top-level instructions for the model.
history
Message[]
The complete conversation history.
_maxContextLength
number
Unused in this strategy.
_getTokenCount
(messages) => number
Unused in this strategy.
Returns
Message[]
The unedited message history with the system prompt at the beginning.