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

AxAIGoogleGeminiCacheResponse

type AxAIGoogleGeminiCacheResponse = object;

Defined in: https://github.com/ax-llm/ax/blob/a8847bd2906efff202fde10d776fddd20fd2ff57/src/ax/ai/google-gemini/types.ts#L327

Response from creating/getting a context cache.

Properties

createTime

createTime: string;

Defined in: https://github.com/ax-llm/ax/blob/a8847bd2906efff202fde10d776fddd20fd2ff57/src/ax/ai/google-gemini/types.ts#L335

When the cache was created (ISO 8601)


displayName?

optional displayName: string;

Defined in: https://github.com/ax-llm/ax/blob/a8847bd2906efff202fde10d776fddd20fd2ff57/src/ax/ai/google-gemini/types.ts#L331

Display name


expireTime

expireTime: string;

Defined in: https://github.com/ax-llm/ax/blob/a8847bd2906efff202fde10d776fddd20fd2ff57/src/ax/ai/google-gemini/types.ts#L339

When the cache expires (ISO 8601)


model

model: string;

Defined in: https://github.com/ax-llm/ax/blob/a8847bd2906efff202fde10d776fddd20fd2ff57/src/ax/ai/google-gemini/types.ts#L333

Model associated with the cache


name

name: string;

Defined in: https://github.com/ax-llm/ax/blob/a8847bd2906efff202fde10d776fddd20fd2ff57/src/ax/ai/google-gemini/types.ts#L329

Resource name of the cached content (e.g., “projects/…/locations/…/cachedContents/…”)


updateTime

updateTime: string;

Defined in: https://github.com/ax-llm/ax/blob/a8847bd2906efff202fde10d776fddd20fd2ff57/src/ax/ai/google-gemini/types.ts#L337

When the cache was last updated (ISO 8601)


usageMetadata?

optional usageMetadata: object;

Defined in: https://github.com/ax-llm/ax/blob/a8847bd2906efff202fde10d776fddd20fd2ff57/src/ax/ai/google-gemini/types.ts#L341

Token count of cached content

totalTokenCount

totalTokenCount: number;