feat: Use AI Agent in SQL Kernel function#520
Merged
Merged
Conversation
Pavan-Microsoft
requested review from
Avijit-Microsoft,
Prajwal-Microsoft,
Roopan-Microsoft,
Vinay-Microsoft,
aniaroramsft and
brittneek
as code owners
July 9, 2025 11:08
Avijit-Microsoft
approved these changes
Jul 9, 2025
Contributor
|
🎉 This PR is included in version 3.11.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request introduces several enhancements and refactors to the Azure AI agent architecture, including the addition of a new SQL agent factory, improvements to configuration management, and updates to deployment templates. These changes aim to improve modularity, scalability, and support for additional AI agent types.
Infrastructure Updates:
azureAiAgentApiVersionparameter (2025-05-01) toinfra/main.bicepand corresponding updates ininfra/main.jsonto propagate this version throughout the deployment pipeline. This includes environment variable definitions and output parameters. [1] [2] [3] [4] [5] [6] [7]Agent Factory Refactoring:
BaseAgentFactoryabstract class to standardize the creation and management of agent instances using a singleton pattern.ConversationAgentFactoryandSearchAgentFactoryto extendBaseAgentFactoryfor better code reuse and consistency. [1] [2] [3]New SQL Agent Factory:
SQLAgentFactoryto create and manage SQL agents for generating T-SQL queries based on user instructions and predefined schemas. This factory integrates with the Azure AI Project API.app.pyto initialize and manage the lifecycle of the new SQL agent within the FastAPI application. [1] [2]Configuration Enhancements:
ai_project_api_versionconfiguration parameter to theConfigclass, enabling flexibility in specifying the Azure AI Project API version.Plugin Updates:
ChatWithDataPluginto integrate with the newSQLAgentFactory, enabling SQL-based interactions within the chat plugin.Does this introduce a breaking change?
Golden Path Validation
Deployment Validation