axiom
Version:
Axiom AI SDK provides - an API to wrap your AI calls with observability instrumentation. - offline evals - online evals
78 lines (41 loc) • 1.46 kB
Markdown
[**axiom v0.51.1**](../../../README.md)
***
[axiom](../../../README.md) / [evals/online](../README.md) / OnlineEvalParams
# Type Alias: OnlineEvalParams\<TInput, TOutput, TScorers\>
> **OnlineEvalParams**\<`TInput`, `TOutput`, `TScorers`\> = `object`
Options for online evaluation.
## Type Parameters
### TInput
`TInput`
### TOutput
`TOutput`
### TScorers
`TScorers` *extends* readonly `ScorerEntry`\<`TInput`, `TOutput`\>[] = readonly `ScorerEntry`\<`TInput`, `TOutput`\>[]
## Properties
### capability
> **capability**: `string`
High-level capability being evaluated (e.g., 'qa', 'summarization')
***
### input?
> `optional` **input**: `TInput`
Input to pass to scorers (optional - only needed for input+output scorers)
***
### links?
> `optional` **links**: `SpanContext` \| `SpanContext`[]
Explicit SpanContext(s) to link the eval span to originating generation span(s).
When omitted, the active span's context is used automatically.
Use this for deferred evaluation when onlineEval is called after the
originating span has completed.
Supports both single context and multiple contexts for multi-span linking.
***
### output
> **output**: `TOutput`
Output to evaluate
***
### scorers
> **scorers**: `EnsureUniqueScorerNames`\<`TScorers`\>
Scorers or precomputed scores. Supports optional per-scorer sampling.
***
### step?
> `optional` **step**: `string`
Specific step within the capability (e.g., 'answer', 'extract')