cli

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Overview

filepath: /Users/wmaxwell/code/obot-platform/obot/pkg/cli/obots.go

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"`
	Output string `usage:"Output format (table, json, yaml)" short:"o" default:"table"`
	// 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 Catalog added in v0.8.0

type Catalog struct {
	Quiet  bool   `usage:"Only print IDs of catalog obots" short:"q"`
	Wide   bool   `usage:"Print more information" short:"w"`
	Output string `usage:"Output format (table, json, yaml)" short:"o" default:"table"`
	// contains filtered or unexported fields
}

Catalog implements the 'obot catalog' command

func (*Catalog) Customize added in v0.8.0

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

func (*Catalog) Run added in v0.8.0

func (l *Catalog) Run(cmd *cobra.Command, _ []string) error

type Create

type Create struct {
	Quiet bool `usage:"Only print ID after successful creation." short:"q"`
	// 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 CreateObot added in v0.8.0

type CreateObot struct {
	CatalogID string `usage:"ID of the base agent (catalog) to use for creating the obot" short:"c"`
	Name      string `usage:"Name for the new obot" short:"n"`
	ObotID    string `usage:"ID of an existing obot to copy directly" short:"i"`
	// contains filtered or unexported fields
}

CreateObot implements the 'obot obot create' subcommand

func (*CreateObot) Customize added in v0.8.0

func (c *CreateObot) Customize(cmd *cobra.Command)

func (*CreateObot) Run added in v0.8.0

func (c *CreateObot) Run(cmd *cobra.Command, _ []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, _ []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 DeleteObot added in v0.8.0

type DeleteObot struct {
	Force bool `usage:"Skip confirmation prompt" short:"f"`
	// contains filtered or unexported fields
}

DeleteObot implements the 'obot obot rm' subcommand

func (*DeleteObot) Customize added in v0.8.0

func (c *DeleteObot) Customize(cmd *cobra.Command)

func (*DeleteObot) Run added in v0.8.0

func (c *DeleteObot) 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 EmailReceivers

type EmailReceivers struct {
	Quiet  bool   `usage:"Only print IDs of agents" short:"q"`
	Wide   bool   `usage:"Print more information" short:"w"`
	Output string `usage:"Output format (table, json, yaml)" short:"o" default:"table"`
	// contains filtered or unexported fields
}

func (*EmailReceivers) Customize

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

func (*EmailReceivers) Run

func (l *EmailReceivers) 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(*cobra.Command, []string) error

func (*Invoke) Run

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

type Obot

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

func (*Obot) PersistentPre

func (a *Obot) PersistentPre(*cobra.Command, []string) error

func (*Obot) Run

func (a *Obot) Run(cmd *cobra.Command, _ []string) error

type Obots added in v0.8.0

type Obots struct {
	Quiet  bool   `usage:"Only print IDs of obots" short:"q"`
	Wide   bool   `usage:"Print more information" short:"w"`
	Output string `usage:"Output format (table, json, yaml)" short:"o" default:"table"`
	All    bool   `usage:"List all obots (admin only)" short:"a"`
	// contains filtered or unexported fields
}

func (*Obots) Customize added in v0.8.0

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

func (*Obots) Run added in v0.8.0

func (l *Obots) 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"`
	Output string `usage:"Output format (table, json, yaml)" short:"o" default:"table"`
	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, _ []string) error

type Tasks added in v0.8.0

type Tasks struct {
	Quiet       bool   `usage:"Only print IDs of tasks" short:"q"`
	Wide        bool   `usage:"Print more information" short:"w"`
	Output      string `usage:"Output format (table, json, yaml)" short:"o" default:"table"`
	ThreadID    string `usage:"Filter tasks by Thread ID" short:"t"`
	AssistantID string `usage:"Filter tasks by Assistant ID" short:"a"`
	ProjectID   string `usage:"Filter tasks by Project (Obot) ID" short:"p"`
	NoRuns      bool   `usage:"Don't fetch run counts (faster)" short:"n"`
	MaxTasks    int    `usage:"Maximum number of tasks to process per thread" default:"10"`
	All         bool   `usage:"List all tasks (admin only)" short:"A"`
	// contains filtered or unexported fields
}

func (*Tasks) Customize added in v0.8.0

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

func (*Tasks) Run added in v0.8.0

func (l *Tasks) 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"`
	Output string `usage:"Output format (table, json, yaml)" short:"o" default:"table"`
	// 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 Token added in v0.8.0

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

func (*Token) Customize added in v0.8.0

func (t *Token) Customize(cmd *cobra.Command)

func (*Token) Run added in v0.8.0

func (t *Token) Run(cmd *cobra.Command, _ []string) error

type ToolRegister

type ToolRegister struct {
	Quiet bool `usage:"Only print IDs of created tool references:" short:"q"`
	// contains filtered or unexported fields
}

func (*ToolRegister) Customize

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

func (*ToolRegister) Run

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

type ToolUnregister

type ToolUnregister struct {
	Quiet bool `usage:"Only print IDs of unregistered tool references" short:"q"`
	// contains filtered or unexported fields
}

func (*ToolUnregister) Customize

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

func (*ToolUnregister) Run

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

type ToolUpdate

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

func (*ToolUpdate) Customize

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

func (*ToolUpdate) Run

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

type Tools

type Tools struct {
	Quiet  bool   `usage:"Only print IDs of tools" short:"q"`
	Output string `usage:"Output format (table, json, yaml)" short:"o" default:"table"`
	// contains filtered or unexported fields
}

func (*Tools) Customize

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

func (*Tools) Run

func (l *Tools) 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{}

func (*Version) Run

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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