AI API protocol (proto)

Enum type.ai.v3.ApiProtocol

[type.ai.v3.ApiProtocol proto]

Identifies the AI API contract spoken on the wire.

This names request/response schemas and streaming event semantics, not the organization operating the backend: OpenAI, Azure OpenAI, vLLM, and any other OpenAI-compatible backend all speak OPENAI_CHAT_COMPLETIONS. Provider identity, when needed, must come from configuration or routing metadata.

Response framing is separate: JSON, SSE, and streamed JSON-array variants of the same API share one ApiProtocol value.

API_PROTOCOL_UNSPECIFIED

(DEFAULT)

OPENAI_CHAT_COMPLETIONS

⁣OpenAI-compatible /v1/chat/completions API.

OPENAI_RESPONSES

⁣OpenAI-compatible /v1/responses API.

ANTHROPIC_MESSAGES

⁣Anthropic-compatible /v1/messages API.

GEMINI_GENERATE_CONTENT

⁣Gemini generateContent / streamGenerateContent APIs.