Function: withContextAwareness()
withContextAwareness<
T
>(BaseClass
): (...args
) =>(Anonymous class)
<T
> &T
ContextAwareAgentRunner enhances the base AgentRunner with the ability to retrieve and inject relevant context for each query. This allows the agent to access and utilize appropriate information from a given index or retriever, providing more informed and context-specific responses to user queries.
Type Parameters
• T extends Constructor
<AgentRunner
<LLM
<object
, object
>, object
, object
>>
Parameters
• BaseClass: T
Returns
(...args
) => (Anonymous class)
<T
> & T