Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnthropicContentBlock ¶ added in v0.2.0
type AnthropicMessage ¶ added in v0.2.0
type AnthropicMessage struct {
Role string `json:"role"`
Content interface{} `json:"content"` // string or []AnthropicContentBlock
}
type AnthropicMessageRequest ¶ added in v0.2.0
type AnthropicMessageRequest struct {
Model string `json:"model"`
Messages []AnthropicMessage `json:"messages"`
System interface{} `json:"system,omitempty"` // string or []contentBlock
MaxTokens int `json:"max_tokens,omitempty"`
Stream bool `json:"stream,omitempty"`
Temperature *float64 `json:"temperature,omitempty"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
AnthropicMessageRequest represents an incoming /v1/messages POST request
Click to show internal directories.
Click to hide internal directories.