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

AxDBCloudflare

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

Cloudflare: DB Service

Extends

Constructors

Constructor

new AxDBCloudflare(__namedParameters: Readonly<Omit<AxDBCloudflareArgs, "name">>): AxDBCloudflare;

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

Parameters

ParameterType
__namedParametersReadonly<Omit<AxDBCloudflareArgs, "name">>

Returns

AxDBCloudflare

Overrides

AxDBBase.constructor

Properties

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

Methods

_upsert()

_upsert(
   req: Readonly<AxDBUpsertRequest>, 
   _update?: boolean, 
options?: Readonly<AxDBBaseOpOptions>): Promise<AxDBUpsertResponse>;

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

Parameters

ParameterType
reqReadonly<AxDBUpsertRequest>
_update?boolean
options?Readonly<AxDBBaseOpOptions>

Returns

Promise<AxDBUpsertResponse>

Overrides

AxDBBase._upsert

batchUpsert()

batchUpsert(
   batchReq: readonly AxDBUpsertRequest[], 
   update?: boolean, 
options?: Readonly<AxDBBaseOpOptions>): Promise<AxDBUpsertResponse>;

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

Parameters

ParameterType
batchReqreadonly AxDBUpsertRequest[]
update?boolean
options?Readonly<AxDBBaseOpOptions>

Returns

Promise<AxDBUpsertResponse>

Overrides

AxDBBase.batchUpsert


query()

query(req: Readonly<AxDBQueryRequest>, options?: Readonly<AxDBBaseOpOptions>): Promise<AxDBQueryResponse>;

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

Parameters

ParameterType
reqReadonly<AxDBQueryRequest>
options?Readonly<AxDBBaseOpOptions>

Returns

Promise<AxDBQueryResponse>

Overrides

AxDBBase.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>

Inherited from

AxDBBase.upsert