Expand description
Core types for llm-connector
Structs§
- Chat
Request - Chat completion request
- Chat
Response - Chat completion response
- Choice
- A completion choice
- Completion
Tokens Details - Detailed completion token usage
- Function
- Function definition for tools
- Function
Call - Function call details
- Function
Choice - Specific function choice
- Image
Url - 图片 URL(OpenAI 格式)
- Message
- A message in the conversation
- Prompt
Tokens Details - Detailed prompt token usage
- Response
Format - Response format specification
- Tool
- Tool definition
- Tool
Call - Tool call made by the model
- Usage
- Token usage statistics
Enums§
- Image
Source - 图片来源(Anthropic 格式)
- Message
Block - 消息内容块
- Role
- Role of a message sender
- Tool
Choice - Tool choice strategy