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

AxAIAnthropicWebSearchTool

type AxAIAnthropicWebSearchTool = object;

Defined in: https://github.com/ax-llm/ax/blob/a8847bd2906efff202fde10d776fddd20fd2ff57/src/ax/ai/anthropic/types.ts#L64

Properties

allowed_domains?

optional allowed_domains: string[];

Defined in: https://github.com/ax-llm/ax/blob/a8847bd2906efff202fde10d776fddd20fd2ff57/src/ax/ai/anthropic/types.ts#L68


blocked_domains?

optional blocked_domains: string[];

Defined in: https://github.com/ax-llm/ax/blob/a8847bd2906efff202fde10d776fddd20fd2ff57/src/ax/ai/anthropic/types.ts#L69


max_uses?

optional max_uses: number;

Defined in: https://github.com/ax-llm/ax/blob/a8847bd2906efff202fde10d776fddd20fd2ff57/src/ax/ai/anthropic/types.ts#L67


name

name: string;

Defined in: https://github.com/ax-llm/ax/blob/a8847bd2906efff202fde10d776fddd20fd2ff57/src/ax/ai/anthropic/types.ts#L66


type

type: "web_search_20250305";

Defined in: https://github.com/ax-llm/ax/blob/a8847bd2906efff202fde10d776fddd20fd2ff57/src/ax/ai/anthropic/types.ts#L65


user_location?

optional user_location: object;

Defined in: https://github.com/ax-llm/ax/blob/a8847bd2906efff202fde10d776fddd20fd2ff57/src/ax/ai/anthropic/types.ts#L70

city?

optional city: string;

country?

optional country: string;

region?

optional region: string;

timezone?

optional timezone: string;

type

type: "approximate";