Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaudeCodeProvider ¶
type ClaudeCodeProvider struct {
// contains filtered or unexported fields
}
ClaudeCodeProvider implements the provider interface using the Claude Code CLI via cc-sdk-go. It wraps the oai.Client which spawns the official claude CLI as a subprocess.
func NewCCWithClient ¶
func NewCCWithClient(client *oai.Client) *ClaudeCodeProvider
NewCCWithClient creates a Claude Code provider with a custom oai.Client. Use this when you need to customize the underlying cchat.Client configuration (e.g. CLI path, max concurrency, working directory).
func NewClaudeCodeProvider ¶
func NewClaudeCodeProvider() *ClaudeCodeProvider
NewClaudeCodeProvider creates a new Claude Code provider with default settings. The claude CLI must be authenticated (claude setup-token) and available in PATH.
func (*ClaudeCodeProvider) CreateStream ¶
func (p *ClaudeCodeProvider) CreateStream(ctx context.Context, opts llm.StreamOptions) (<-chan llm.StreamEvent, error)
func (*ClaudeCodeProvider) Models ¶
func (p *ClaudeCodeProvider) Models() []llm.Model
func (*ClaudeCodeProvider) Name ¶
func (p *ClaudeCodeProvider) Name() string
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the Anthropic (Claude) LLM backend.
func New ¶
func New(cfg *llm.ProviderConfig, baseURL string) *Provider
New creates a new Anthropic provider.
func (*Provider) CreateStream ¶
func (p *Provider) CreateStream(ctx context.Context, opts llm.StreamOptions) (<-chan llm.StreamEvent, error)