Optional
criterionOptional
evaluationOptional
llmOptional
memoryOptional
skipOptional
skipOptional
config: (RunnableConfig | CallbackManager | (BaseCallbackHandler | BaseCallbackHandlerMethodsClass)[])[]Use .batch() instead. Will be removed in 0.2.0.
This feature is deprecated and will be removed in the future.
It is not recommended for use.
Call the chain on all inputs in the list
Run the core logic of this chain and add to output if desired.
Wraps _call and handles memory.
Optional
config: BaseCallbackConfig | CallbackManager | (BaseCallbackHandler | BaseCallbackHandlerMethodsClass)[]Check if the evaluation arguments are valid.
Optional
reference: stringThe reference label.
Optional
input: stringThe input string.
If the evaluator requires an input string but none is provided, or if the evaluator requires a reference label but none is provided.
Evaluate a trajectory.
Optional
callOptions: BaseLanguageModelCallOptionsOptional
config: BaseCallbackConfig | CallbackManager | (BaseCallbackHandler | BaseCallbackHandlerMethodsClass)[]The evaluation result.
Format prompt with values and pass to LLM
keys to pass to prompt template
Optional
callbackManager: CallbackManagerCallbackManager to use
Completion from LLM.
llm.predict({ adjective: "funny" })
Static
deserializeStatic
fromLLMCreate a new TrajectoryEvalChain.
Optional
agentTools: StructuredToolInterface<ZodObject<any, any, any, any, {}>>[]The tools used by the agent.
Optional
chainOptions: Partial<Omit<LLMEvalChainInput<EvalOutputType, BaseLanguageModelInterface<any, BaseLanguageModelCallOptions>>, "llm">>The options for the chain.
Static
resolveOptional
prompt: BasePromptTemplate<any, BasePromptValueInterface, any>Optional
agentTools: StructuredToolInterface<ZodObject<any, any, any, any, {}>>[]Static
toolsGenerated using TypeDoc
A chain for evaluating ReAct style agents.
This chain is used to evaluate ReAct style agents by reasoning about the sequence of actions taken and their outcomes.