anthropicprovider

package
v0.38.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package anthropicprovider implements the llmprovider.Provider interface using the official Anthropic Go SDK (github.com/anthropics/anthropic-sdk-go).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client implements llmprovider.Provider for Anthropic.

func New

func New(apiKey, modelName string) (*Client, error)

New creates an Anthropic provider client.

func (*Client) GenerateContent

func (c *Client) GenerateContent(
	ctx context.Context,
	messages []llmprovider.Message,
	options ...llmprovider.CallOption,
) (*llmprovider.Response, error)

GenerateContent sends messages to Anthropic and returns the response.

Jump to

Keyboard shortcuts

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