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

AxDBBase

Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/db/base.ts#L22

Extended by

Implements

Constructors

Constructor

new AxDBBase(__namedParameters: Readonly<AxDBBaseArgs & object>): AxDBBase;

Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/db/base.ts#L44

Parameters

ParameterType
__namedParametersReadonly<AxDBBaseArgs & object>

Returns

AxDBBase

Properties

PropertyType
_batchUpsert?(batchReq: readonly AxDBUpsertRequest[], update?: boolean, options?: Readonly<AxDBBaseOpOptions>) => Promise<AxDBUpsertResponse>
_query?(req: Readonly<AxDBQueryRequest>, options?: Readonly<AxDBBaseOpOptions>) => Promise<AxDBQueryResponse>
_upsert?(req: Readonly<AxDBUpsertRequest>, update?: boolean, options?: Readonly<AxDBBaseOpOptions>) => Promise<AxDBUpsertResponse>

Methods

batchUpsert()

batchUpsert(req: readonly AxDBUpsertRequest[], update?: boolean): Promise<AxDBUpsertResponse>;

Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/db/base.ts#L88

Parameters

ParameterType
reqreadonly AxDBUpsertRequest[]
update?boolean

Returns

Promise<AxDBUpsertResponse>

Implementation of

AxDBService.batchUpsert


query()

query(req: Readonly<AxDBQueryRequest>): Promise<AxDBQueryResponse>;

Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/db/base.ts#L128

Parameters

ParameterType
reqReadonly<AxDBQueryRequest>

Returns

Promise<AxDBQueryResponse>

Implementation of

AxDBService.query


upsert()

upsert(req: Readonly<AxDBUpsertRequest>, update?: boolean): Promise<AxDBUpsertResponse>;

Defined in: https://github.com/ax-llm/ax/blob/9a5a7060a48f9eef46efc680b0cdf6b42bff5df2/src/ax/db/base.ts#L54

Parameters

ParameterType
reqReadonly<AxDBUpsertRequest>
update?boolean

Returns

Promise<AxDBUpsertResponse>

Implementation of

AxDBService.upsert