anthropic

package
v0.0.0-...-293a3f4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 13 Imported by: 0

README

Anthropic

Roadmap

  • Chat-completion
    • Streaming
    • System prompt
    • Tool use
    • Structured output
    • Multi-modal input
    • Multi-modal output
  • Embedding

Documentation

Index

Constants

View Source
const (
	ChatCompleteModelClaude3_5HaikuLatest  = ChatCompleteModel(anthropic.ModelClaude3_5HaikuLatest)  //nolint:staticcheck // SA1019: deprecated model still supported for now
	ChatCompleteModelClaude3_7SonnetLatest = ChatCompleteModel(anthropic.ModelClaude3_7SonnetLatest) //nolint:staticcheck // SA1019: deprecated model still supported for now
	ChatCompleteModelClaude4OpusLatest     = ChatCompleteModel(anthropic.ModelClaude4Opus20250514)
	ChatCompleteModelClaude4SonnetLatest   = ChatCompleteModel(anthropic.ModelClaude4Sonnet20250514)
	ChatCompleteModelClaude4_5HaikuLatest  = ChatCompleteModel(anthropic.ModelClaudeHaiku4_5)
	ChatCompleteModelClaude4_5SonnetLatest = ChatCompleteModel(anthropic.ModelClaudeSonnet4_5)
	ChatCompleteModelClaude4_5OpusLatest   = ChatCompleteModel(anthropic.ModelClaudeOpus4_5)
	ChatCompleteModelClaude4_6OpusLatest   = ChatCompleteModel(anthropic.ModelClaudeOpus4_6)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatCompleteModel

type ChatCompleteModel string

type ChatCompleter

type ChatCompleter struct {
	Client anthropic.Client
	// contains filtered or unexported fields
}

func (*ChatCompleter) ChatComplete

ChatComplete satisfies gai.ChatCompleter.

type Client

type Client struct {
	Client anthropic.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts NewClientOptions) *Client

func (*Client) NewChatCompleter

func (c *Client) NewChatCompleter(opts NewChatCompleterOptions) *ChatCompleter

type NewChatCompleterOptions

type NewChatCompleterOptions struct {
	Model ChatCompleteModel
}

type NewClientOptions

type NewClientOptions struct {
	Key string
	Log *slog.Logger
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL