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/686f8ba96cf652e044cf922b67c16c8f09754a70/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/686f8ba96cf652e044cf922b67c16c8f09754a70/src/ax/dsp/asserts.ts#L4

Parameters

ParameterType
valuesT

Returns

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

Docs