Feature/qa2#33
Merged
Merged
Conversation
…ling and command naming
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
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.
This pull request introduces two new CLI commands,
testandeval, to theagentflow_clitool, providing a unified interface for running project tests and agent evaluations. It also adds configuration-driven behavior for both commands viaagentflow.json, and updates the project templates to reflect these new capabilities. The most important changes are summarized below:New CLI Commands:
testcommand that wrapspytest, supporting options for test path, coverage, HTML report, keyword filtering, verbosity, and forwarding extra arguments. The command can read defaults from a newtestsection inagentflow.json. [1]], [2]], [3]])evalcommand for discovering and running agent evaluation scripts (*_eval.py/eval_*.py), always generating HTML and JSON reports unless disabled. The command supports configuration via a newevaluationsection inagentflow.json. [1]], [2]], [3]])Configuration Enhancements:
ConfigManagerwithget_test_config()andget_evaluation_config()methods to access the new config sections, enabling CLI commands to pick up project-specific defaults for test and evaluation runs. ([agentflow_cli/cli/core/config.pyR217-R238])agentflow.jsontemplate to includetestandevaluationsections with sample values for test path, coverage, coverage threshold, eval directory, output directory, and pass threshold. ([agentflow_cli/cli/templates/prod/agentflow.jsonR18-R28])Template and Example Updates:
weather_agents.pyevaluation script and replaced it with a minimalweather_agents_eval.pythat only provides aget_eval_set()function, matching the new CLI-driven evaluation workflow. [1]], [2]])These changes modernize and standardize the workflow for running tests and evaluations in agentflow projects, making it easier to configure, automate, and report on both via the CLI and project configuration.