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

AxSelfTuningConfig

type AxSelfTuningConfig = object;

Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/dsp/types.ts#L86

Configuration for LLM self-tuning capabilities. When enabled, an adjustGeneration function is auto-injected that lets the LLM adjust its own generation parameters.

Properties

functions?

optional functions: AxInputFunctionType;

Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/dsp/types.ts#L94

Pool of functions the LLM can activate/deactivate per step.


model?

optional model: boolean;

Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/dsp/types.ts#L88

Let the LLM pick from available models.


temperature?

optional temperature: boolean;

Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/dsp/types.ts#L92

Let the LLM adjust sampling temperature.


thinkingBudget?

optional thinkingBudget: boolean;

Defined in: https://github.com/ax-llm/ax/blob/71ea5064d766efdc031d375243a8e525911833e7/src/ax/dsp/types.ts#L90

Let the LLM adjust reasoning depth.