Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentPart ¶
type ContentPart struct {
Type ContentType
Text string
ImageData []byte
MIMEType string
}
type ContentType ¶
type ContentType string
const ( ContentText ContentType = "text" ContentImage ContentType = "image" )
type Message ¶
type Message struct {
Role string
Parts []ContentPart
}
func SystemMessage ¶
func UserTextMessage ¶
type Request ¶
type Request struct {
Model string
Messages []Message
SamplerParams map[string]any
ResponseContract ResponseContract
Timeout time.Duration
Task llmprovider.Task
RootDir string
Env map[string]string
ProviderOverrides map[llmprovider.Provider]llmprovider.ProviderOverrides
Resolve llmprovider.ResolveOptions
HTTPClient *http.Client
Metrics metrics.RunContext
}
type Response ¶
type Response struct {
Text string
RawJSON string
Model string
Provider llmprovider.Provider
APIModel string
Transport llmprovider.Transport
Tool string
ToolVersion string
ParamAccounting llmprovider.ParamAccounting
}
type ResponseContract ¶
type ResponseContract string
const ( ResponseContractText ResponseContract = "text" ResponseContractJSON ResponseContract = "json_prompt_only" )
Click to show internal directories.
Click to hide internal directories.