Skip to content

Conversation

@howieleung
Copy link
Member

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 pull request adds test recording infrastructure for AI search and function tool samples in the Azure AI Projects SDK. It introduces a new automated testing framework that executes samples dynamically, validates their output, and supports test recordings through the devtools_testutils framework.

Key changes:

  • New test infrastructure with test_tools_samples method to run samples from the samples/agents/tools folder with recording support
  • Added environment variable azure_ai_projects_tests_ai_search_user_input to support non-interactive testing
  • Modified samples to output standardized result format (==> Result:) and include cleanup logic

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
sdk/ai/azure-ai-projects/tests/test_base.py Added new environment variable for AI search user input to support automated testing
sdk/ai/azure-ai-projects/tests/samples/test_samples.py Introduced test infrastructure including ArgumentPasser decorator, _get_tools_sample_paths() helper, and test_tools_samples() method for automated sample testing with recordings
sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_function_tool.py Updated output format to use standardized marker and added agent cleanup logic
sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_ai_search.py Added support for optional environment variable input, updated output format, and added cleanup logic
sdk/ai/azure-ai-projects/assets.json Updated test asset tag to reference new recordings
Comments suppressed due to low confidence (1)

sdk/ai/azure-ai-projects/samples/agents/tools/sample_agent_ai_search.py:67

  • The agent name was changed from "MyAgent" to "MyAgent20". This appears to be a temporary testing change that should not be committed. Consider reverting to the original name "MyAgent" or using a more descriptive name if the change is intentional.
        agent_name="MyAgent",

@howieleung howieleung force-pushed the howie/sample-recording-1 branch 3 times, most recently from 469e929 to 237180f Compare December 6, 2025 00:30
@howieleung howieleung force-pushed the howie/sample-recording-1 branch from 237180f to 27cf725 Compare December 6, 2025 01:34
@howieleung howieleung enabled auto-merge (squash) December 6, 2025 01:42
@howieleung howieleung merged commit ef8959a into main Dec 6, 2025
20 checks passed
@howieleung howieleung deleted the howie/sample-recording-1 branch December 6, 2025 03:01
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.

3 participants