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/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/dsp/asserts.ts#L3

Type Parameters

Type ParameterDefault type
TRecord<string, unknown>

Properties

PropertyType
message?string

Methods

fn()

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

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

Parameters

ParameterType
valuesT

Returns

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

Docs