OptionalcriterionOptionalevaluationThe name of the evaluation.
LLM Wrapper to use
OptionalllmKwargs to pass to LLM
OptionalmemoryKey to use for output, defaults to text
Prompt object to use
OptionalskipOptionalskipReturn the string type key uniquely identifying this class of chain.
Protected_Run the core logic of this chain and add to output if desired.
Wraps _call and handles memory.
Optionalconfig: anyOptionalreference: stringGet the agent trajectory as a formatted string.
The agent trajectory.
The formatted agent trajectory.
Invoke the chain with the provided input and returns the output.
Input values for the chain run.
Optionaloptions: anyPromise that resolves with the output of the chain run.
StaticdeserializeLoad a chain from a json-like object describing it.
StaticfromCreate a new TrajectoryEvalChain.
OptionalagentTools: StructuredToolInterface[]The tools used by the agent.
OptionalchainOptions: Partial<The options for the chain.
Staticlc_StaticresolveOptionalprompt: anyOptionalagentTools: StructuredToolInterface[]StatictoolsGet the description of the agent tools.
The description of the agent tools.
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.