Module types

Module types 

Source
Expand description

Core types for AI operations.

Structs§

ChatCompletionChunk
Chat completion streaming chunk
ChatCompletionRequest
Chat completion request
ChatCompletionResponse
Chat completion response
Choice
Single choice in chat completion response
ChoiceDelta
Delta choice in streaming response
Message
Message in a conversation
MessageDelta
Message delta for streaming
ObjectParams
Object generation parameters
ObjectRequest
Object request
ObjectResponse
Object response
ObjectResult
Object generation result
ProviderInfo
Provider information
RequestContext
Request context for plugins
TextChunk
Streaming text chunk
TextParams
Text generation parameters
TextRequest
Text request with provider info
TextResponse
Response metadata from streaming
TextResult
Text generation result
Tool
Tool definition
Usage
Usage statistics

Enums§

ContentPart
Message content part
FinishReason
Finish reason
ResponseFormat
Response format for chat completions
Role
Message role