Expand description
OpenAI-compatible request/response shapes. Canonical wire format across all providers — adapters translate to/from provider-native formats.
Structs§
- Cache
Control Config - Typed cache-control extracted from
tt_extras. - Chat
Completion Chunk - One SSE event from a streaming chat completion.
- Chat
Completion Request - Chat
Completion Response - Choice
- Chunk
Choice - Chunk
Delta - Embedding
Data - Embeddings
Request - Embeddings
Response - Image
Url - Input
Audio - Response
Format - Tool
- Tool
Call - Tool
Call Function - Tool
Choice Function - Tool
Function
Enums§
- Cache
Mode - Cache behaviour requested by the caller via
tt_extras.cache. - Content
Part - Embedding
Input - Message
- Message
Content - Tool
Choice
Functions§
- parse_
cache_ control - Parse
CacheControlConfigfrom a request’stt_extrasmap. - parse_
data_ url - Parse a base64
data:URL into(media_type, base64_payload).