Skip to content

Conversation

@YusakuNo1
Copy link
Member

Description

This PR adds 2 constants for AI search, they will be consumed from internal services, but the definitions are useful for people who's trying to parse AI search responses as well

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 adds two AI Search-related constants to support parsing AI search responses: AZURE_AI_SEARCH_CALL to the ItemType enum and REMOTE_TOOL to the ToolType enum. These constants will be consumed by internal services and are also useful for users parsing AI search tool call information.

  • Adds AZURE_AI_SEARCH_CALL constant to ItemType enum for representing Azure AI Search call item types
  • Adds REMOTE_TOOL constant to ToolType enum for representing AI Search remote tools

FABRIC_DATAAGENT_PREVIEW = "fabric_dataagent_preview"
SHAREPOINT_GROUNDING_PREVIEW = "sharepoint_grounding_preview"
AZURE_AI_SEARCH = "azure_ai_search"
REMOTE_TOOL = "remote_tool" # AI Search Remote Tool
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

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

The inline comment style used here is inconsistent with the documentation patterns used throughout this file. The codebase convention is to use triple-quoted docstrings on a separate line after each enum value when documentation is needed. For example, see lines 384-387 for MemoryItemKind enum values or lines 644-653 for ScheduleProvisioningStatus enum values. Consider either removing the inline comment if the name is self-explanatory, or converting it to a docstring format consistent with the rest of the file.

Copilot uses AI. Check for mistakes.
WORKFLOW_ACTION = "workflow_action"
MEMORY_SEARCH_CALL = "memory_search_call"
OAUTH_CONSENT_REQUEST = "oauth_consent_request"
AZURE_AI_SEARCH_CALL = "azure_ai_search_call"
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

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

The PR description checklist indicates that "CHANGELOG is updated for new features, bug fixes or other significant changes," but no changes to the CHANGELOG.md file are included in this PR. Adding new constants to public enums constitutes a feature addition that should be documented in the CHANGELOG with an entry under "Features Added" in the "2.0.0b3 (Unreleased)" section.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

API Change Check

APIView identified API level changes in this PR and created the following API reviews

azure-ai-projects

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.

1 participant