opi-ai 0.1.0

Unified multi-provider LLM API with streaming support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Streaming response events.

#[derive(Debug, Clone)]
pub enum StreamEvent {
    Text(String),
    ToolCall {
        id: String,
        name: String,
        arguments: String,
    },
    Thinking(String),
    Usage {
        input_tokens: u32,
        output_tokens: u32,
    },
    Stop,
}