Documentation
¶
Index ¶
- func GetClient(cmd *cobra.Command) (*client.Client, error)
- func ResolveAPIKey(cmd *cobra.Command) string
- func ResolveAPIURL(cmd *cobra.Command) string
- func ResolveClientOptions(cmd *cobra.Command) (client.Options, error)
- func ResolveFormat(cmd *cobra.Command) string
- func ResolveJQ(cmd *cobra.Command) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClient ¶
GetClient creates a LangSmith client from cobra flags, returning an error if no API key or OAuth access token is available.
func ResolveAPIKey ¶
ResolveAPIKey reads the API key from cobra's flag tree → env.
func ResolveAPIURL ¶
ResolveAPIURL reads the API URL from cobra's flag tree → env → default.
func ResolveClientOptions ¶ added in v0.2.26
ResolveClientOptions resolves auth/routing from cobra flags, env, and saved profiles. This mirrors the top-level CLI auth behavior for standalone helpers such as `langsmith api`.
func ResolveFormat ¶
ResolveFormat reads the output format from cobra's flag tree.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.