Expand description
Core types for AI operations.
Structs§
- Chat
Completion Chunk - Chat completion streaming chunk
- Chat
Completion Request - Chat completion request
- Chat
Completion Response - Chat completion response
- Choice
- Single choice in chat completion response
- Choice
Delta - Delta choice in streaming response
- Message
- Message in a conversation
- Message
Delta - Message delta for streaming
- Object
Params - Object generation parameters
- Object
Request - Object request
- Object
Response - Object response
- Object
Result - Object generation result
- Provider
Info - Provider information
- Request
Context - Request context for plugins
- Text
Chunk - Streaming text chunk
- Text
Params - Text generation parameters
- Text
Request - Text request with provider info
- Text
Response - Response metadata from streaming
- Text
Result - Text generation result
- Tool
- Tool definition
- Usage
- Usage statistics
Enums§
- Content
Part - Message content part
- Finish
Reason - Finish reason
- Response
Format - Response format for chat completions
- Role
- Message role