Documentation
¶
Index ¶
- func BuildRunQueryParams(f *FilterFlags, isRoot bool, defaultLimit int) langsmith.RunQueryParams
- func ExitError(msg string)
- func ExitErrorf(format string, args ...any)
- func GetAPIKey() string
- func GetAPIURL() string
- func GetFormat() string
- func MustGetClient() *client.Client
- func NewRootCmd(rawVersion, displayVersion string) *cobra.Command
- func ResolveProject(flagValue string) string
- type FilterFlags
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
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 MustGetClient ¶ added in v0.2.15
MustGetClient creates a LangSmith client or exits with an error.
func NewRootCmd ¶
NewRootCmd creates the top-level `langsmith` command.
func ResolveProject ¶
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.