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

AxAIServiceOptions

type AxAIServiceOptions = object;

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L438

Properties

abortSignal?

optional abortSignal: AbortSignal;

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L446


corsProxy?

optional corsProxy: string;

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L463


debug?

optional debug: boolean;

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L439


debugHideSystemPrompt?

optional debugHideSystemPrompt: boolean;

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L449


excludeContentFromTrace?

optional excludeContentFromTrace: boolean;

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L445


fetch?

optional fetch: typeof fetch;

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L441


functionCallMode?

optional functionCallMode: "auto" | "native" | "prompt";

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L452


logger?

optional logger: AxLoggerFunction;

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L447


meter?

optional meter: Meter;

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L443


rateLimiter?

optional rateLimiter: AxRateLimiterFunction;

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L440


sessionId?

optional sessionId: string;

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L448


showThoughts?

optional showThoughts: boolean;

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L460


stepIndex?

optional stepIndex: number;

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L462


stream?

optional stream: boolean;

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L451


thinkingTokenBudget?

optional thinkingTokenBudget: "minimal" | "low" | "medium" | "high" | "highest" | "none";

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L453


timeout?

optional timeout: number;

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L444


traceContext?

optional traceContext: Context;

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L450


tracer?

optional tracer: Tracer;

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L442


useExpensiveModel?

optional useExpensiveModel: "yes";

Defined in: https://github.com/ax-llm/ax/blob/0aa4aa2ceed1ba61106711baed6ce962cf2eb604/src/ax/ai/types.ts#L461