Evaluate any component of your trace or log to gain insights into your agent’s behavior.
logger
using a very simple API. Let us see how we can start evaluating our nodes.
Evaluation
tab under the respective node.
Missing variables
message (although we will still process the evaluator even if variables are received after 5 minutes).As per the image above, we can see that the evaluator needsinput
,context
andexpectedOutput
variables.
withEvaluators
method to attach evaluators to any component within a trace or the trace itself. It is as easy as just listing the names of the evaluators you want to attach, which are available on the platform.
withVariables
method. This method accepts a key-value pair of variable names to their values.
You also need to specify which evaluators you want these variables to be attached to, which can be done by passing the list of evaluator names as the second argument.
withVariables
method after attaching evaluators to any component. Allowing you to skip mentioning the evaluator names again.