Skip to content

Add auth submetrics - #189

Open
maryna-shevchuk wants to merge 4 commits into
mainfrom
pr/ms/sub-metric-for-auth-success
Open

Add auth submetrics#189
maryna-shevchuk wants to merge 4 commits into
mainfrom
pr/ms/sub-metric-for-auth-success

Conversation

@maryna-shevchuk

Copy link
Copy Markdown
Collaborator
  1. Add auth submetrics. Submetrics only get computed when the agent actually calls an "auth" tool during the conversation:
  • auth_first_try_success: 1.0 if authentication overall succeeded AND every auth tool was called exactly once (no retries needed); 0.0 if it succeeded but only after retrying an auth tool.
  • auth_num_calls: average number of times each auth tool was called, but only counted when auth succeeded — tells you how many attempts it typically took to succeed.
  • auth_num_calls_on_failure: same average call count, but for cases where auth ultimately failed — tells you how many attempts the agent wasted before giving up.
  1. Add unit tests for the submetrics.

@JosephMarinier JosephMarinier left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I only have small comments to simplify the code.

Comment thread src/eva/metrics/diagnostic/authentication_success.py Outdated
Comment thread src/eva/metrics/diagnostic/authentication_success.py Outdated
Comment thread src/eva/metrics/diagnostic/authentication_success.py Outdated
Comment thread src/eva/metrics/diagnostic/authentication_success.py Outdated
Comment thread src/eva/metrics/diagnostic/authentication_success.py

@JosephMarinier JosephMarinier left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Cool! This looks good to me. 👍

I only shared a few thoughts, maybe for future work.

Comment thread src/eva/__init__.py Outdated

@JosephMarinier JosephMarinier left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Great! Thank you! 👍

Co-authored-by: Joseph Marinier <Joseph.Marinier@gmail.com>

@JosephMarinier JosephMarinier left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Perfect! Thank you!

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.

3 participants