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/05ff5bd88d050f7ba85a3fcc6eb0ed2975ad7d51/src/ax/ai/google-gemini/types.ts#L333

Response from creating/getting a context cache.

Properties

createTime

createTime: string;

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

When the cache was created (ISO 8601)


displayName?

optional displayName: string;

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

Display name


expireTime

expireTime: string;

Defined in: https://github.com/ax-llm/ax/blob/05ff5bd88d050f7ba85a3fcc6eb0ed2975ad7d51/src/ax/ai/google-gemini/types.ts#L345

When the cache expires (ISO 8601)


model

model: string;

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

Model associated with the cache


name

name: string;

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

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


updateTime

updateTime: string;

Defined in: https://github.com/ax-llm/ax/blob/05ff5bd88d050f7ba85a3fcc6eb0ed2975ad7d51/src/ax/ai/google-gemini/types.ts#L343

When the cache was last updated (ISO 8601)


usageMetadata?

optional usageMetadata: object;

Defined in: https://github.com/ax-llm/ax/blob/05ff5bd88d050f7ba85a3fcc6eb0ed2975ad7d51/src/ax/ai/google-gemini/types.ts#L347

Token count of cached content

totalTokenCount

totalTokenCount: number;