AxAIChromeAIChatRequest Generated TypeScript API reference. typescript api api/reference build/apidocs/TypeAlias.AxAIChromeAIChatRequest.md type AxAIChromeAIChatRequest

AxAIChromeAIChatRequest

TypeScript
type AxAIChromeAIChatRequest = object;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/ai/chrome-ai/types.ts#L95

Chrome AI: Synthetic chat request Maps ax’s multi-message format to Chrome AI’s session + prompt model

Properties

initialPrompts

TypeScript
initialPrompts: object[];

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/ai/chrome-ai/types.ts#L98

Messages to be passed as initialPrompts (all except the last user message)

content

TypeScript
content: string;

role

TypeScript
role: "system" | "user" | "assistant";

model

TypeScript
model: AxAIChromeAIModelId;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/ai/chrome-ai/types.ts#L96


prompt

TypeScript
prompt: string;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/ai/chrome-ai/types.ts#L103

The final user message to be passed to session.prompt()


responseConstraint?

TypeScript
optional responseConstraint: object;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/ai/chrome-ai/types.ts#L105

JSON schema for constrained decoding via responseConstraint


stream?

TypeScript
optional stream: boolean;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/ai/chrome-ai/types.ts#L108


temperature?

TypeScript
optional temperature: number;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/ai/chrome-ai/types.ts#L106


topK?

TypeScript
optional topK: number;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/ai/chrome-ai/types.ts#L107

Docs