Documentation ¶
Index ¶
Constants ¶
View Source
const ClaudeURL = "https://api.anthropic.com/v1/messages"
Variables ¶
View Source
var CLAUDE_DEFAULT = Claude{ Model: "claude-3-opus-20240229", Url: ClaudeURL, AnthropicVersion: "2023-06-01", AnthropicBeta: "tools-2024-04-04", Temperature: 0.7, MaxTokens: 1024, TopP: -1, TopK: -1, StopSequences: make([]string, 0), }
Functions ¶
This section is empty.
Types ¶
type Claude ¶
type Claude struct { Model string `json:"model"` MaxTokens int `json:"max_tokens"` Url string `json:"url"` AnthropicVersion string `json:"anthropic-version"` AnthropicBeta string `json:"anthropic-beta"` Temperature float64 `json:"temperature"` TopP float64 `json:"top_p"` TopK int `json:"top_k"` StopSequences []string `json:"stop_sequences"` // contains filtered or unexported fields }
func (*Claude) RegisterTool ¶ added in v1.2.7
func (*Claude) StreamCompletions ¶ added in v1.2.0
type ClaudeMessage ¶ added in v1.2.7
type ClaudeResponse ¶ added in v1.2.7
type ContentBlock ¶ added in v1.3.12
type ContentBlockDelta ¶
type ContentBlockSuper ¶ added in v1.3.12
type ContentBlockSuper struct { Type string `json:"type"` Index int `json:"index"` ContentBlock ContentBlock `json:"content_block"` }
type Root ¶ added in v1.3.12
type Root struct { Type string `json:"type"` Index int `json:"index"` ContentBlock ContentBlock `json:"content_block"` }
Click to show internal directories.
Click to hide internal directories.