cmd

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAuth

func WithAuth(ctx server.Cmd, fn func(*httpclient.Client, string) error) error

WithAuth returns auth client configured from the global HTTP flags.

Types

type RunServer

type RunServer struct {
	cmd.RunServer
	pgcmd.PostgresFlags `embed:"" prefix:"pg."`

	// Schemas for tenancy
	Schema struct {
		LLM    string `name:"llm" help:"PostgreSQL schema for LLM data." default:"llm"`
		Auth   string `name:"auth" help:"PostgreSQL schema for auth data." default:"auth"`
		Memory string `name:"memory" help:"PostgreSQL schema for memory data." default:"memory"`
	} `embed:"" prefix:"schema."`

	// Other flags
	Passphrases []string `name:"passphrase" env:"${ENV_NAME}_PASSPHRASES" help:"One or more passphrases used to encrypt credentials."`
}

func (*RunServer) Opts

func (server *RunServer) Opts(ctx server.Cmd) ([]manager.Opt, error)

func (*RunServer) Prompts

func (server *RunServer) Prompts() ([]llm.Prompt, error)

func (*RunServer) Run

func (runner *RunServer) Run(ctx server.Cmd) error

func (*RunServer) WithManager

func (server *RunServer) WithManager(ctx server.Cmd, conn pg.PoolConn, fn func(*kernel.Manager) error) error

Jump to

Keyboard shortcuts

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