Documentation ¶
Index ¶
- func New() *cobra.Command
- type CacheOptions
- type Credential
- type Delete
- type DisplayOptions
- type Eval
- type GPTScript
- func (r *GPTScript) Customize(cmd *cobra.Command)
- func (r *GPTScript) NewGPTScriptOpts() (gptscript.Options, error)
- func (r *GPTScript) NewRunContext(cmd *cobra.Command) context.Context
- func (r *GPTScript) PersistentPre(*cobra.Command, []string) error
- func (r *GPTScript) PrintOutput(toolInput, toolOutput string) (err error)
- func (r *GPTScript) Run(cmd *cobra.Command, args []string) (retErr error)
- type OpenAIOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheOptions ¶ added in v0.1.4
type Credential ¶ added in v0.5.0
type Credential struct { AllContexts bool `usage:"List credentials for all contexts" local:"true"` ShowEnvVars bool `usage:"Show names of environment variables in each credential" local:"true"` // contains filtered or unexported fields }
func (*Credential) Customize ¶ added in v0.5.0
func (c *Credential) Customize(cmd *cobra.Command)
type DisplayOptions ¶
type Eval ¶ added in v0.4.0
type Eval struct { Tools []string `usage:"Tools available to call"` Chat bool `usage:"Enable chat"` MaxTokens int `usage:"Maximum number of tokens to output"` Model string `usage:"The model to use"` JSON bool `usage:"Output JSON"` Temperature string `usage:"Set the temperature, \"creativity\""` InternalPrompt *bool `Usage:"Set to false to disable the internal prompt"` // contains filtered or unexported fields }
type GPTScript ¶
type GPTScript struct { CacheOptions OpenAIOptions DisplayOptions Color *bool `usage:"Use color in output (default true)" default:"true"` Confirm bool `usage:"Prompt before running potentially dangerous commands"` Debug bool `usage:"Enable debug logging"` Quiet *bool `usage:"No output logging (set --quiet=false to force on even when there is no TTY)" short:"q"` Output string `usage:"Save output to a file, or - for stdout" short:"o"` EventsStreamTo string `` /* 164-byte string literal not displayed */ Input string `usage:"Read input from a file (\"-\" for stdin)" short:"f"` SubTool string `usage:"Use tool of this name, not the first tool in file" local:"true"` Assemble bool `usage:"Assemble tool to a single artifact, saved to --output" hidden:"true" local:"true"` ListModels bool `usage:"List the models available and exit" local:"true"` ListTools bool `usage:"List built-in tools and exit" local:"true"` Server bool `usage:"Start server" local:"true"` ListenAddress string `usage:"Server listen address" default:"127.0.0.1:9090" local:"true"` Chdir string `usage:"Change current working directory" short:"C"` Daemon bool `usage:"Run tool as a daemon" local:"true" hidden:"true"` Ports string `usage:"The port range to use for ephemeral daemon ports (ex: 11000-12000)" hidden:"true"` CredentialContext string `usage:"Context name in which to store credentials" default:"default"` CredentialOverride string `usage:"Credentials to override (ex: --credential-override github.com/example/cred-tool:API_TOKEN=1234)"` ChatState string `usage:"The chat state to continue, or null to start a new chat and return the state"` ForceChat bool `usage:"Force an interactive chat session if even the top level tool is not a chat tool"` // contains filtered or unexported fields }
func (*GPTScript) NewGPTScriptOpts ¶ added in v0.4.0
func (*GPTScript) NewRunContext ¶ added in v0.4.0
func (*GPTScript) PersistentPre ¶ added in v0.4.0
func (*GPTScript) PrintOutput ¶ added in v0.4.0
type OpenAIOptions ¶ added in v0.1.4
Click to show internal directories.
Click to hide internal directories.