claudeai

package
v1.36.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

* ChatCLI - Command Line Interface for LLM interaction * Copyright (c) 2024 Edilson Freitas * License: MIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClaudeClient

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

ClaudeClient é uma estrutura que contém o cliente de ClaudeAI com suas configurações

func NewClaudeClient

func NewClaudeClient(apiKey string, model string, logger *zap.Logger, maxAttempts int, backoff time.Duration) *ClaudeClient

NewClaudeClient cria um novo cliente ClaudeAI com configurações personalizáveis.

func (*ClaudeClient) GetModelName

func (c *ClaudeClient) GetModelName() string

GetModelName retorna o nome amigável do modelo ClaudeAI

func (*ClaudeClient) SendPrompt

func (c *ClaudeClient) SendPrompt(ctx context.Context, prompt string, history []models.Message, maxTokens int) (string, error)

SendPrompt com exponential backoff usando utils.Retry

Jump to

Keyboard shortcuts

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