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

AxGEPAAdapter

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/optimizers/gepaAdapter.ts#L8

Type Parameters

Type ParameterDefault type
Datumany
Trajany
Outany

Properties

PropertyType
propose_new_texts?(candidate: Readonly<Record<string, string>>, reflectiveDataset: Readonly<Record<string, any[]>>, componentsToUpdate: readonly string[]) => | Record<string, string> | Promise<Record<string, string>>

Methods

evaluate()

TypeScript
evaluate(
   batch: readonly Datum[], 
   candidate: Readonly<Record<string, string>>, 
   captureTraces?: boolean): 
  | AxGEPAEvaluationBatch<Traj, Out>
| Promise<AxGEPAEvaluationBatch<Traj, Out>>;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/optimizers/gepaAdapter.ts#L9

Parameters

ParameterType
batchreadonly Datum[]
candidateReadonly<Record<string, string>>
captureTraces?boolean

Returns

| AxGEPAEvaluationBatch<Traj, Out> | Promise<AxGEPAEvaluationBatch<Traj, Out>>


make_reflective_dataset()

TypeScript
make_reflective_dataset(
   candidate: Readonly<Record<string, string>>, 
   evalBatch: Readonly<AxGEPAEvaluationBatch<Traj, Out>>, 
componentsToUpdate: readonly string[]): Record<string, any[]>;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/optimizers/gepaAdapter.ts#L17

Parameters

ParameterType
candidateReadonly<Record<string, string>>
evalBatchReadonly<AxGEPAEvaluationBatch<Traj, Out>>
componentsToUpdatereadonly string[]

Returns

Record<string, any[]>

Docs