Documentation ¶
Index ¶
- Constants
- Variables
- type Antropic
- func (o *Antropic) Generate(ctx context.Context, t *thread.Thread) error
- func (o *Antropic) WithCache(cache *cache.Cache) *Antropic
- func (o *Antropic) WithMaxTokens(maxTokens int) *Antropic
- func (o *Antropic) WithModel(model string) *Antropic
- func (o *Antropic) WithStream(callbackFn StreamCallbackFn) *Antropic
- func (o *Antropic) WithTemperature(temperature float64) *Antropic
- type StreamCallbackFn
Constants ¶
View Source
const (
EOS = "\x00"
)
Variables ¶
View Source
var (
ErrAnthropicChat = fmt.Errorf("anthropic chat error")
)
Functions ¶
This section is empty.
Types ¶
type Antropic ¶
type Antropic struct {
// contains filtered or unexported fields
}
func (*Antropic) WithMaxTokens ¶
func (*Antropic) WithStream ¶
func (o *Antropic) WithStream(callbackFn StreamCallbackFn) *Antropic
func (*Antropic) WithTemperature ¶
type StreamCallbackFn ¶
type StreamCallbackFn func(string)
Click to show internal directories.
Click to hide internal directories.