Documentation ¶
Index ¶
- type GPTScript
- func (g *GPTScript) Chat(ctx context.Context, prevState runner.ChatState, prg types.Program, ...) (runner.ChatResponse, error)
- func (g *GPTScript) Close(closeDaemons bool)
- func (g *GPTScript) GetModel() engine.Model
- func (g *GPTScript) ListModels(ctx context.Context, providers ...string) ([]string, error)
- func (g *GPTScript) ListTools(_ context.Context, prg types.Program) []types.Tool
- func (g *GPTScript) Run(ctx context.Context, prg types.Program, envs []string, input string) (string, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GPTScript ¶
type GPTScript struct { Registry *llm.Registry Runner *runner.Runner Cache *cache.Client WorkspacePath string DeleteWorkspaceOnClose bool ExtraEnv []string // contains filtered or unexported fields }
func (*GPTScript) ListModels ¶
Click to show internal directories.
Click to hide internal directories.