-
Notifications
You must be signed in to change notification settings - Fork 13
Expose __version__ in agentunit package #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
aviralgarg05
merged 13 commits into
aviralgarg05:main
from
Jagriti-student:add-version-attribute
Jan 4, 2026
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
b052329
Add basic evaluation example script
Jagriti-student dd2f4fe
Fix typos and improve clarity in docstrings across core modules
Jagriti-student 80b0706
Add Google-style docstrings to BaseAdapter methods
Jagriti-student 8e7b8c1
Format base adapter using ruff
Jagriti-student 0669ffd
docs: add instructions for running CI checks locally
Jagriti-student fe9d27b
Remove example file unrelated to CI documentation
Jagriti-student 7e21593
Add py.typed marker for type checker support
Jagriti-student e53ab49
Add test for markdown emoji encoding
Jagriti-student 75729b2
Expose __version__ in agentunit package
Jagriti-student d007ee5
Fix Ruff import and pathlib issues
Jagriti-student 3952c24
Change readme and test_reporting file
Jagriti-student af8264b
Merge branch 'main' into add-version-attribute
Jagriti-student 205c8ba
Fix Formatting, Lint and version
Jagriti-student File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # AgentUnit Report | ||
|
|
||
| ## emoji-suite | ||
| Success rate: 50.00% | ||
|
|
||
| - **test_pass**: ✅ | ||
| - **test_fail**: ❌ | ||
| - Error: AssertionError |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| from datetime import datetime | ||
| from pathlib import Path | ||
|
|
||
| from agentunit.reporting.results import ( | ||
| ScenarioResult, | ||
| ScenarioRun, | ||
| SuiteResult, | ||
| ) | ||
|
|
||
|
|
||
| def test_markdown_contains_emojis(): | ||
| passing_run = ScenarioRun( | ||
| scenario_name="emoji-suite", | ||
| case_id="test_pass", | ||
| success=True, | ||
| metrics={}, | ||
| duration_ms=5, | ||
| trace=[], | ||
| error=None, | ||
| ) | ||
|
|
||
| failing_run = ScenarioRun( | ||
| scenario_name="emoji-suite", | ||
| case_id="test_fail", | ||
| success=False, | ||
| metrics={}, | ||
| duration_ms=6, | ||
| trace=[], | ||
| error="AssertionError", | ||
| ) | ||
|
|
||
| scenario = ScenarioResult( | ||
| name="emoji-suite", | ||
| runs=[passing_run, failing_run], | ||
| ) | ||
|
|
||
| suite = SuiteResult( | ||
| scenarios=[scenario], | ||
| started_at=datetime.now(), | ||
| finished_at=datetime.now(), | ||
| ) | ||
|
|
||
| output_path = Path("report.md") | ||
| suite.to_markdown(output_path) | ||
| # UTF-8 safety check (important for Windows) | ||
| markdown = output_path.read_text(encoding="utf-8") | ||
|
|
||
| assert "✅" in markdown | ||
| assert "❌" in markdown | ||
|
|
||
| markdown.encode("utf-8") |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move the module docstring to the correct position.
Module docstrings must be the first statement in a file (immediately after
from __future__imports). When placed after regular imports, the string becomes a discarded literal and won't be accessible viahelp(agentunit)oragentunit.__doc__.🔎 Proposed fix
🤖 Prompt for AI Agents