Expand description
yallm-ir: Intermediate Representation for unified LLM API conversion
This crate provides the Intermediate Representation (IR) for converting between different LLM API formats (OpenAI, Anthropic, Ollama).
Structs§
- Chat
Request - Unified chat completion request
- Chat
Response - Unified chat completion response
- Choice
- A single completion choice
- Choice
Delta - A single choice delta in streaming response
- Image
Content - Image content block
- Message
- Unified message representation
- Stream
Chunk - Unified streaming response chunk
- Text
Content - Text content block
- Text
Delta - Text content delta in streaming response
- Tool
Call Content - Tool call in assistant message
- Tool
Call Delta - Tool call delta in streaming response
- Tool
Result Content - Tool result in tool message
- Usage
- Token usage information
Enums§
- Content
- Content block types
- Delta
Content - Delta content types
- Image
Source Type - Image source type
- Role
- Message role in conversation
- Source
- Source API type