Add experiments, functions, tools, and scorers commands#31
Open
parkerhendo wants to merge 27 commits intomainfrom
Open
Add experiments, functions, tools, and scorers commands#31parkerhendo wants to merge 27 commits intomainfrom
parkerhendo wants to merge 27 commits intomainfrom
Conversation
- Add --org/-o global flag to BaseArgs (env: BRAINTRUST_DEFAULT_ORG) - Add with_org_name() to ApiClient for org override - Wire org override into prompts module - Extract prompt rendering helpers to src/ui/prompt_render.rs - Update prompts/view.rs to use shared helpers
- Create src/functions/ with shared API client, list, view, delete - Parameterize by FunctionKind (type_name, plural, function_type, url_segment) - Client-side filtering by function_type (API lacks server-side filter) - src/tools.rs and src/scorers.rs as thin wrappers - View renders prompt_data (messages, tools, model) and function_data - Register bt tools and bt scorers in main.rs
- Create src/experiments/ with API client, list, view, delete - Experiments use name (not slug) as identifier - List shows Name, Description, Created, Commit columns - View shows metadata fields (description, created, commit, dataset, public, tags) - Support --web to open in browser, --name/-n flag - Register bt experiments (alias: bt exp) in main.rs
- Use .clone() instead of swap_remove in interactive selection (matches prompts/delete.rs pattern) - Improve function subcommand help text to be more descriptive
|
Latest downloadable build artifacts for this PR commit
Available artifact names
|
…dering - Add config project fallback in experiments (matching functions/prompts) - Use is_interactive() instead of stdin().is_terminal() in experiments - Move select_experiment_interactive from delete.rs to mod.rs - Extract render_prompt_block helper to eliminate 3x duplication - Pass parent --type filter through to functions view subcommand
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add commands!
bt toolsbt scorersbt functionsbt experimentsAdd comprehensive function management commands and improve CLI structure
Add tools and scorers commands via shared functions module
bt tools,bt scorers, andbt functionscommandsAdd experiments command with list, view, and delete
bt experimentscommand with full CRUD operationsReplace REST API with BTQL for function queries
Extract shared prompt rendering utilities
Hide environment variable values in help output
hide_env_values = trueto sensitive CLI argumentsImprove CLI structure and context handling
ResolvedContextpattern for consistent auth/project resolutionUpdate dependencies and fix compatibility issues
clap,futures,anyhow,chronoclap_lexfrom 0.7.7 to 1.0.0 for improved parsingpin-utilsdependency from futures