AxAssertion Generated TypeScript API reference. typescript api api/reference build/apidocs/Interface.AxAssertion.md interface AxAssertion

AxAssertion

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/asserts.ts#L3

Type Parameters

Type ParameterDefault type
TRecord<string, unknown>

Properties

PropertyType
message?string

Methods

fn()

TypeScript
fn(values: T): 
  | undefined
  | string
  | boolean
| Promise<undefined | string | boolean>;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/asserts.ts#L4

Parameters

ParameterType
valuesT

Returns

| undefined | string | boolean | Promise<undefined | string | boolean>

Docs