Documentation

Build LLM-powered agents
with production-ready TypeScript

DSPy for TypeScript. Working with LLMs is complex—they don't always do what you want. DSPy makes it easier to build amazing things with LLMs. Just define your inputs and outputs (signature) and an efficient prompt is auto-generated and used. Connect together various signatures to build complex systems and workflows using LLMs.

15+ LLM Providers
End-to-end Streaming
Auto Prompt Tuning

AxTestPrompt

Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/dsp/evaluate.ts#L12

Type Parameters

Type ParameterDefault type
IN extends AxGenInAxGenIn
OUT extends AxGenOutAxGenOut

Constructors

Constructor

new AxTestPrompt<IN, OUT>(__namedParameters: Readonly<AxEvaluateArgs<IN, OUT>>): AxTestPrompt<IN, OUT>;

Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/dsp/evaluate.ts#L20

Parameters

ParameterType
__namedParametersReadonly<AxEvaluateArgs<IN, OUT>>

Returns

AxTestPrompt<IN, OUT>

Methods

run()

run(metricFn: AxMetricFn): Promise<void>;

Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/dsp/evaluate.ts#L33

Parameters

ParameterType
metricFnAxMetricFn

Returns

Promise<void>