Skip to content

Conversation

markwallace-microsoft
Copy link
Member

@markwallace-microsoft markwallace-microsoft commented Mar 8, 2025

Motivation and Context

Add support for following Azure AI Agent tool types

  • Function
  • File Search
  • Code Interpreter
  • Bing Grounding
  • Open API

Description

Contribution Checklist

@markwallace-microsoft markwallace-microsoft added the .NET Issue or Pull requests regarding .NET code label Mar 10, 2025
@github-actions github-actions bot changed the title Azure AI Agent tool support: file search, function, bing grounding, open api .Net: Azure AI Agent tool support: file search, function, bing grounding, open api Mar 10, 2025
Copy link
Contributor

@Copilot 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.

PR Overview

This pull request adds support for additional Azure AI Agent tool types – including Function, File Search, Code Interpreter, Bing Grounding, and Open API – while updating the YAML converters and sample definitions accordingly.

  • Updated the agent tool extension methods to improve handling of tool configurations and parameters.
  • Modified sample agent definitions to use the new "foundry_agent" type and added new test cases for each tool type.
  • Revised YAML converters and the agent factory to incorporate the new resources and configuration checks.

Reviewed Changes

File Description
dotnet/src/Agents/AzureAI/Extensions/AgentToolDefinitionExtensions.cs Improved parameter processing and configuration handling for tool definitions.
dotnet/samples/GettingStartedWithAgents/AzureAIAgent/Step08_AzureAIAgent_Declarative.cs Updated agent type from azureai_agent to foundry_agent and added new integration tests.
dotnet/src/Agents/AzureAI/Extensions/AgentDefinitionExtensions.cs Introduced helper methods for retrieving tool resources from agent definitions.
dotnet/samples/Concepts/FunctionCalling/FunctionCalling.cs Added logging support to the kernel creation for function calling scenarios.
dotnet/src/Agents/AzureAI/Definition/AzureAIAgentFactory.cs Forwarded tool resources to the agent creation call.
dotnet/src/InternalUtilities/samples/InternalUtilities/TestConfiguration.cs Registered new configuration keys for Bing and vector store connectivity.
dotnet/src/Agents/Yaml/*.cs Updated YAML converters to correctly deserialize AgentToolDefinition and AgentMetadata.
dotnet/src/Agents/UnitTests/Yaml/AzureAIKernelAgentYamlTests.cs Updated test cases to reflect the new agent naming and configuration structure.
dotnet/src/Agents/Abstractions/Definition/KernelAgentFactory.cs Adjusted asynchronous agent creation behavior.

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

@markwallace-microsoft markwallace-microsoft merged commit 3a593ab into microsoft:feature-declarative-agents Mar 11, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.NET Issue or Pull requests regarding .NET code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants