cli

package
v0.1.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *cobra.Command

Types

type Agents

type Agents struct {
	Quiet bool `usage:"Only print IDs of agents" short:"q"`
	Wide  bool `usage:"Print more information" short:"w"`
	// contains filtered or unexported fields
}

func (*Agents) Customize

func (l *Agents) Customize(cmd *cobra.Command)

func (*Agents) Run

func (l *Agents) Run(cmd *cobra.Command, args []string) error

type Create

type Create struct {
	Quiet       bool              `usage:"Only print ID after successful creation." short:"q"`
	Name        string            `usage:"Name of the agent."`
	Description string            `usage:"Description of the agent."`
	Ref         string            `usage:"The path segment of the agent in the published URL (defaults to ID of agent)."`
	Tools       []string          `usage:"List of tools the agent can use."`
	Steps       []string          `usage:"The steps for a workflow."`
	Output      string            `usage:"The output for a workflow."`
	Params      map[string]string `usage:"The parameters for the agent." hidden:"true"`
	File        string            `usage:"The file to read the agent manifest from." short:"f"`
	Replace     bool              `usage:"If loading from file, replace the agent with the same refName if it exists." short:"r"`
	// contains filtered or unexported fields
}

func (*Create) Customize

func (l *Create) Customize(cmd *cobra.Command)

func (*Create) Run

func (l *Create) Run(cmd *cobra.Command, args []string) error

type Credentials

type Credentials struct {
	Wide     bool   `usage:"Print more information" short:"w"`
	Quiet    bool   `usage:"Only print IDs of credentials" short:"q"`
	ThreadID string `usage:"Specific thread list credentials for" short:"t"`
	// contains filtered or unexported fields
}

func (*Credentials) Customize

func (l *Credentials) Customize(cmd *cobra.Command)

func (*Credentials) Run

func (l *Credentials) Run(cmd *cobra.Command, args []string) error

type CredentialsDelete

type CredentialsDelete struct {
	Quiet bool `usage:"Only print IDs of credentials" short:"q"`
	// contains filtered or unexported fields
}

func (*CredentialsDelete) Customize

func (l *CredentialsDelete) Customize(cmd *cobra.Command)

func (*CredentialsDelete) Run

func (l *CredentialsDelete) Run(cmd *cobra.Command, args []string) error

type Debug

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

func (*Debug) Customize

func (l *Debug) Customize(cmd *cobra.Command)

func (*Debug) Run

func (l *Debug) Run(cmd *cobra.Command, args []string) error

type Delete

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

func (*Delete) Customize

func (l *Delete) Customize(cmd *cobra.Command)

func (*Delete) Run

func (l *Delete) Run(cmd *cobra.Command, args []string) error

type Edit

type Edit struct {
	Prompt bool `usage:"Edit just the prompt for the agent" short:"p"`
	// contains filtered or unexported fields
}

func (*Edit) Customize

func (l *Edit) Customize(cmd *cobra.Command)

func (*Edit) Run

func (l *Edit) Run(cmd *cobra.Command, args []string) error

type Invoke

type Invoke struct {
	Thread  string `usage:"Thread name to run the agent in." short:"t"`
	Step    string `usage:"Workflow step to rerun from, thread is already required" short:"s"`
	Quiet   *bool  `usage:"Only print output characters" short:"q"`
	Verbose bool   `usage:"Print more information" short:"v"`
	Async   bool   `usage:"Run the agent asynchronously" short:"a"`
	// contains filtered or unexported fields
}

func (*Invoke) Customize

func (l *Invoke) Customize(cmd *cobra.Command)

func (*Invoke) GetQuiet

func (l *Invoke) GetQuiet() bool

func (*Invoke) Pre

func (l *Invoke) Pre(cmd *cobra.Command, args []string) error

func (*Invoke) Run

func (l *Invoke) Run(cmd *cobra.Command, args []string) error

type Otto

type Otto struct {
	Debug  bool `usage:"Enable debug logging"`
	Client *apiclient.Client
}

func (*Otto) PersistentPre

func (a *Otto) PersistentPre(cmd *cobra.Command, args []string) error

func (*Otto) Run

func (a *Otto) Run(cmd *cobra.Command, args []string) error

type RunPrint

type RunPrint struct {
	Quiet   bool `usage:"Only print the response content of the runs" short:"q"`
	Verbose bool `usage:"Print more information" short:"v"`
	// contains filtered or unexported fields
}

func (*RunPrint) Customize

func (l *RunPrint) Customize(cmd *cobra.Command)

func (*RunPrint) Run

func (l *RunPrint) Run(cmd *cobra.Command, args []string) error

type Runs

type Runs struct {
	Wide   bool `usage:"Print more information" short:"w"`
	Quiet  bool `usage:"Only print IDs of runs" short:"q"`
	Follow bool `usage:"Follow the output of runs" short:"f"`
	// contains filtered or unexported fields
}

func (*Runs) Customize

func (l *Runs) Customize(cmd *cobra.Command)

func (*Runs) Run

func (l *Runs) Run(cmd *cobra.Command, args []string) error

type Server

type Server struct {
	services.Config
}

func (*Server) Run

func (s *Server) Run(cmd *cobra.Command, args []string) error

type StepTemplateCreate

type StepTemplateCreate struct {
	Quiet bool `usage:"Only print IDs of created step template" short:"q"`
	// contains filtered or unexported fields
}

func (*StepTemplateCreate) Customize

func (l *StepTemplateCreate) Customize(cmd *cobra.Command)

func (*StepTemplateCreate) Run

func (l *StepTemplateCreate) Run(cmd *cobra.Command, args []string) error

type StepTemplateUpdate

type StepTemplateUpdate struct {
	Quiet bool `usage:"Only print IDs of updated step template" short:"q"`
	// contains filtered or unexported fields
}

func (*StepTemplateUpdate) Customize

func (l *StepTemplateUpdate) Customize(cmd *cobra.Command)

func (*StepTemplateUpdate) Run

func (l *StepTemplateUpdate) Run(cmd *cobra.Command, args []string) error

type StepTemplates

type StepTemplates struct {
	Quiet bool `usage:"Only print IDs of tools" short:"q"`
	// contains filtered or unexported fields
}

func (*StepTemplates) Customize

func (l *StepTemplates) Customize(cmd *cobra.Command)

func (*StepTemplates) Run

func (l *StepTemplates) Run(cmd *cobra.Command, args []string) error

type StepTemplatesDelete

type StepTemplatesDelete struct {
	Quiet bool `usage:"Only print IDs of deleted step templates" short:"q"`
	// contains filtered or unexported fields
}

func (*StepTemplatesDelete) Customize

func (l *StepTemplatesDelete) Customize(cmd *cobra.Command)

func (*StepTemplatesDelete) Run

func (l *StepTemplatesDelete) Run(cmd *cobra.Command, args []string) error

type ThreadPrint

type ThreadPrint struct {
	Quiet   bool `usage:"Only print response content of threads" short:"q"`
	Follow  bool `usage:"Follow the thread and print new events" short:"f"`
	Verbose bool `usage:"Print more information" short:"v"`
	// contains filtered or unexported fields
}

func (*ThreadPrint) Customize

func (l *ThreadPrint) Customize(cmd *cobra.Command)

func (*ThreadPrint) Run

func (l *ThreadPrint) Run(cmd *cobra.Command, args []string) error

type Threads

type Threads struct {
	Quiet bool `usage:"Only print IDs of threads" short:"q"`
	Wide  bool `usage:"Print more information" short:"w"`
	// contains filtered or unexported fields
}

func (*Threads) Customize

func (l *Threads) Customize(cmd *cobra.Command)

func (*Threads) Run

func (l *Threads) Run(cmd *cobra.Command, args []string) error

type Update

type Update struct {
	Quiet bool `usage:"Only print IDs of updated agent/workflow" short:"q"`
	// contains filtered or unexported fields
}

func (*Update) Customize

func (l *Update) Customize(cmd *cobra.Command)

func (*Update) Run

func (l *Update) Run(cmd *cobra.Command, args []string) error

type Version

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

func (*Version) Run

func (l *Version) Run(cmd *cobra.Command, args []string) error

type Workflows

type Workflows struct {
	Quiet bool `usage:"Only print IDs of agents" short:"q"`
	Wide  bool `usage:"Print more information" short:"w"`
	// contains filtered or unexported fields
}

func (*Workflows) Customize

func (l *Workflows) Customize(cmd *cobra.Command)

func (*Workflows) Run

func (l *Workflows) Run(cmd *cobra.Command, args []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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