-
Notifications
You must be signed in to change notification settings - Fork 165
[Groudnedness] Handle strings and single entries #4621
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
base: main
Are you sure you want to change the base?
Conversation
Test Results for assets-test0 tests 0 ✅ 0s ⏱️ Results for commit 1d0648f. ♻️ This comment has been updated with latest results. |
|
|
||
| if (not query) or (not response): # or not tool_definitions: | ||
| msg = ( | ||
| f"{type(self).__name__}: Either 'conversation' or individual inputs must be provided. " |
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.
Consider improving the error message. Every time I see this, I don't know which fields is missing.
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.
This "For Agent groundedness 'query' and 'response' are required." is specific to missing query/response. Do you mean to have specific one for query and another for response? Or remove the first generic part in the message Either 'conversation' or individual inputs must be provided.
| self, | ||
| *, | ||
| query: str, | ||
| response: List[dict], |
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.
response doesn't take str like other agent evaluators.
Please look at details in Bug
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.
It is handled in the code, but I just updated the type hints too
ashaabansoliman
left a comment
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.
approved
This is to handle a regression reported in this issue
No description provided.