Skip to content

feat: Use AI Agent in SQL Kernel function#520

Merged
Avijit-Microsoft merged 8 commits into
mainfrom
dev
Jul 9, 2025
Merged

feat: Use AI Agent in SQL Kernel function#520
Avijit-Microsoft merged 8 commits into
mainfrom
dev

Conversation

@Pavan-Microsoft

Copy link
Copy Markdown
Contributor

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:

  • Added a new azureAiAgentApiVersion parameter (2025-05-01) to infra/main.bicep and corresponding updates in infra/main.json to 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:

  • Introduced a new BaseAgentFactory abstract class to standardize the creation and management of agent instances using a singleton pattern.
  • Refactored ConversationAgentFactory and SearchAgentFactory to extend BaseAgentFactory for better code reuse and consistency. [1] [2] [3]

New SQL Agent Factory:

  • Added SQLAgentFactory to 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.
  • Updated app.py to initialize and manage the lifecycle of the new SQL agent within the FastAPI application. [1] [2]

Configuration Enhancements:

  • Added a new ai_project_api_version configuration parameter to the Config class, enabling flexibility in specifying the Azure AI Project API version.

Plugin Updates:

  • Updated ChatWithDataPlugin to integrate with the new SQLAgentFactory, enabling SQL-based interactions within the chat plugin.

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

@Avijit-Microsoft
Avijit-Microsoft merged commit e08033a into main Jul 9, 2025
9 checks passed
@github-actions

github-actions Bot commented Jul 9, 2025

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.11.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants