Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRunQueryParams

func BuildRunQueryParams(f *FilterFlags, isRoot bool, defaultLimit int) langsmith.RunQueryParams

BuildRunQueryParams builds RunQueryParams from FilterFlags.

func ExitError added in v0.2.15

func ExitError(msg string)

ExitError prints a JSON error to stderr and exits.

func ExitErrorf added in v0.2.15

func ExitErrorf(format string, args ...any)

ExitErrorf prints a formatted JSON error to stderr and exits.

func GetAPIKey added in v0.2.15

func GetAPIKey() string

GetAPIKey resolves the API key from flag → env → error.

func GetAPIURL added in v0.2.15

func GetAPIURL() string

GetAPIURL resolves the API URL from flag → env → default.

func GetFormat added in v0.2.15

func GetFormat() string

GetFormat returns the output format.

func MustGetClient added in v0.2.15

func MustGetClient() *client.Client

MustGetClient creates a LangSmith client or exits with an error.

func NewRootCmd

func NewRootCmd(rawVersion, displayVersion string) *cobra.Command

NewRootCmd creates the top-level `langsmith` command.

func ResolveProject

func ResolveProject(flagValue string) string

ResolveProject resolves the project name from flag → env.

Types

type FilterFlags

type FilterFlags struct {
	TraceIDs     string
	Limit        int
	Project      string
	LastNMinutes int
	Since        string
	Before       string
	ErrorFlag    bool
	NoErrorFlag  bool
	Name         string
	RunType      string
	MinLatency   float64
	MaxLatency   float64
	MinTokens    int
	Tags         string
	Metadata     string
	RawFilter    string
}

FilterFlags holds common filter flag values.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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