Skip to content

feat: add evaluate command to cli#82

Merged
DzmitryPihulski merged 1 commit intoLLMSQL:mainfrom
Sujit224:cli-evaluate
Mar 5, 2026
Merged

feat: add evaluate command to cli#82
DzmitryPihulski merged 1 commit intoLLMSQL:mainfrom
Sujit224:cli-evaluate

Conversation

@Sujit224
Copy link
Contributor

@Sujit224 Sujit224 commented Mar 4, 2026

Fixes #80

Summary

Added a class-based CLI subcommand for the evaluate() function, mirroring the existing Inference command structure to complete the core CLI functionality.

Changes

  1. Added llmsql/_cli/evaluate.py with an Evaluate class inheriting from SubCommand.
  2. Registered the new evaluate command in ParserCLI (llmsql/_cli/llmsql_cli.py).
  3. Implemented the --show-mismatches flag to align with the core evaluation function’s default behavior.
  4. Added a mocked async test (test_evaluate_command_called) in tests/cli/test_cli.py to verify argument parsing and correct function routing.

@codecov
Copy link

codecov bot commented Mar 4, 2026

Codecov Report

❌ Patch coverage is 92.59259% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
llmsql/_cli/evaluate.py 92.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@DzmitryPihulski
Copy link
Collaborator

Dear @Sujit224 , we appreciate Your contribution, it will be merged soon.

Copy link
Collaborator

@DzmitryPihulski DzmitryPihulski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DzmitryPihulski DzmitryPihulski merged commit b71ecde into LLMSQL:main Mar 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add evaluate() function to cli

2 participants