Thanks to visit codestin.com
Credit goes to pkg.go.dev

taskname

package
v2.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoAPIKey        = xerrors.New("no api key provided")
	ErrNoNameGenerated = xerrors.New("no task name generated")
)

Functions

func Generate

func Generate(ctx context.Context, prompt string, opts ...Option) (string, error)

func GenerateFallback

func GenerateFallback() string

func GetAnthropicAPIKeyFromEnv

func GetAnthropicAPIKeyFromEnv() string

func GetAnthropicModelFromEnv

func GetAnthropicModelFromEnv() anthropic.Model

Types

type Option

type Option func(o *options)

func WithAPIKey

func WithAPIKey(apiKey string) Option

func WithModel

func WithModel(model anthropic.Model) Option

Jump to

Keyboard shortcuts

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