AxAIChromeAIChatRequest
type AxAIChromeAIChatRequest = object;Defined in: https://github.com/ax-llm/ax/blob/686f8ba96cf652e044cf922b67c16c8f09754a70/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
initialPrompts: object[];Defined in: https://github.com/ax-llm/ax/blob/686f8ba96cf652e044cf922b67c16c8f09754a70/src/ax/ai/chrome-ai/types.ts#L98
Messages to be passed as initialPrompts (all except the last user message)
content
content: string;role
role: "system" | "user" | "assistant";model
model: AxAIChromeAIModelId;Defined in: https://github.com/ax-llm/ax/blob/686f8ba96cf652e044cf922b67c16c8f09754a70/src/ax/ai/chrome-ai/types.ts#L96
prompt
prompt: string;Defined in: https://github.com/ax-llm/ax/blob/686f8ba96cf652e044cf922b67c16c8f09754a70/src/ax/ai/chrome-ai/types.ts#L103
The final user message to be passed to session.prompt()
responseConstraint?
optional responseConstraint: object;Defined in: https://github.com/ax-llm/ax/blob/686f8ba96cf652e044cf922b67c16c8f09754a70/src/ax/ai/chrome-ai/types.ts#L105
JSON schema for constrained decoding via responseConstraint
stream?
optional stream: boolean;Defined in: https://github.com/ax-llm/ax/blob/686f8ba96cf652e044cf922b67c16c8f09754a70/src/ax/ai/chrome-ai/types.ts#L108
temperature?
optional temperature: number;Defined in: https://github.com/ax-llm/ax/blob/686f8ba96cf652e044cf922b67c16c8f09754a70/src/ax/ai/chrome-ai/types.ts#L106
topK?
optional topK: number;Defined in: https://github.com/ax-llm/ax/blob/686f8ba96cf652e044cf922b67c16c8f09754a70/src/ax/ai/chrome-ai/types.ts#L107