Scorer
autogen.beta.eval.scorer.Scorer #
Wraps a user function as a callable scoring unit.
Most users will not construct this directly — they write a function and decorate it with :func:scorer. Prebuilt scorer factories (e.g. tool_called(name)) construct :class:Scorer instances programmatically to supply a meaningful key independent of any closure's function name.
| PARAMETER | DESCRIPTION |
|---|---|
fn | The scoring function. May be sync or async. May declare any subset of the injectable parameters ( TYPE: |
key | Stable identifier for the feedback this scorer produces. Defaults to TYPE: |