Discover Packages
github.com/ditto-assistant/backend
pkg
llm
claude
package
Version:
v0.0.7
Opens a new window with list of versions in this module.
Published: Dec 19, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Content struct {
Type string `json:"type"`
Text string `json:"text,omitempty"`
Source map[string ]string `json:"source,omitempty"`
}
type EvContentBlockDelta struct {
Type string `json:"type"`
Index int `json:"index"`
Delta struct {
Type string `json:"type"`
Text string `json:"text"`
} `json:"delta"`
}
type EvMsgDelta struct {
Type string `json:"type"`
Usage struct {
OutputTokens int `json:"output_tokens"`
} `json:"usage"`
}
type EvMsgStart struct {
Type string `json:"type"`
Message struct {
Usage struct {
InputTokens int `json:"input_tokens"`
OutputTokens int `json:"output_tokens"`
} `json:"usage"`
} `json:"message"`
}
type Message struct {
Role string `json:"role"`
Content []Content `json:"content"`
}
type Request struct {
Messages []Message `json:"messages"`
MaxTokens int `json:"max_tokens"`
Stream bool `json:"stream"`
AnthropicVersion string `json:"anthropic_version"`
System string `json:"system,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.