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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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