scorer
autogen.beta.eval.scorer.scorer #
Decorate a function as a scorer.
Example::
@scorer
def called_get_weather(trace):
return len(trace.events_of(ToolCallEvent, name="get_weather")) == 1
The decorated object is a :class:Scorer instance. Pass it directly to :func:autogen.beta.eval.run_agent via the scorers= argument.