Skip to content

Conversation

@YusakuNo1
Copy link
Member

…ng the generated result from agent

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug in the agent evaluation sample where the evaluator was incorrectly referencing {{item.response}} instead of {{sample.output_text}} when include_sample_schema is set to True. When evaluating agents with azure_ai_target_completions, the agent's generated response is available in the sample object (specifically sample.output_text), not in the item object which only contains the input data defined in the item_schema.

Key changes:

  • Updated data mapping in violence detection evaluator to use {{sample.output_text}} instead of {{item.response}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants