Documentation
¶
Index ¶
- Constants
- Variables
- func CheckFeatureFlag(cmd *cobra.Command, feature string, cmdFlagName string) bool
- func Execute()
- func GetEnabledFeatures() []string
- func IsAnyFeatureEnabled() bool
- func IsFeatureEnabled(feature string) bool
- func IsPromptsEvalsEnabled() bool
- func SetupFeatureFlags(rootCmd *cobra.Command)
- func ShowNewProjectImport(ctx context.Context, logger logger.Logger, cmd *cobra.Command, apiUrl string, ...)
- type APIKeyList
- type Agent
- type InitProjectArgs
- type Log
- type LogsResponse
- type Resources
Constants ¶
View Source
const (
FeaturePromptsEvals = "enable_prompts_evals"
)
Feature flag constants
Variables ¶
View Source
var ( Version string = "dev" Commit string = "dev" Date string )
Functions ¶
func CheckFeatureFlag ¶ added in v0.0.169
CheckFeatureFlag checks if a feature flag is enabled via command line or config and only writes to config if explicitly enabled
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetEnabledFeatures ¶ added in v0.0.169
func GetEnabledFeatures() []string
GetEnabledFeatures returns a list of all currently enabled feature flags
func IsAnyFeatureEnabled ¶ added in v0.0.169
func IsAnyFeatureEnabled() bool
IsAnyFeatureEnabled checks if any feature flags are enabled
func IsFeatureEnabled ¶ added in v0.0.169
IsFeatureEnabled checks if a feature flag is enabled
func IsPromptsEvalsEnabled ¶ added in v0.0.169
func IsPromptsEvalsEnabled() bool
IsExperimentalEnabled checks if experimental features are enabled
func SetupFeatureFlags ¶ added in v0.0.169
SetupFeatureFlags initializes feature flag configuration and command line flags
Types ¶
type APIKeyList ¶ added in v0.0.90
func (APIKeyList) SortedIterator ¶ added in v0.0.90
func (list APIKeyList) SortedIterator() func(yield func(key string, value apikey.APIKey) bool)
type InitProjectArgs ¶
type LogsResponse ¶ added in v0.0.140
Click to show internal directories.
Click to hide internal directories.