diff --git a/dotnet/.github/skills/verify-samples-tool/SKILL.md b/dotnet/.github/skills/verify-samples-tool/SKILL.md index 39f05bce289..3c154e56d59 100644 --- a/dotnet/.github/skills/verify-samples-tool/SKILL.md +++ b/dotnet/.github/skills/verify-samples-tool/SKILL.md @@ -1,4 +1,4 @@ ---- +--- name: verify-samples-tool description: How to use the verify-samples tool to run, verify, and manage sample definitions in the Agent Framework repository. Use this when adding, updating, or running sample verification. --- @@ -157,7 +157,7 @@ new SampleDefinition new SampleDefinition { Name = "Agent_With_AzureOpenAIChatCompletion", - ProjectPath = "samples/02-agents/AgentProviders/Agent_With_AzureOpenAIChatCompletion", + ProjectPath = "samples/02-agents/AgentProviders/azure/Agent_With_AzureOpenAIChatCompletion", RequiredEnvironmentVariables = ["AZURE_OPENAI_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_OPENAI_DEPLOYMENT_NAME"], ExpectedOutputDescription = @@ -223,3 +223,5 @@ new SampleDefinition SkipReason = "Runs as an MCP stdio server that does not exit on its own.", }, ``` + + diff --git a/dotnet/agent-framework-dotnet.slnx b/dotnet/agent-framework-dotnet.slnx index 3160eb6de7e..c36bc227d93 100644 --- a/dotnet/agent-framework-dotnet.slnx +++ b/dotnet/agent-framework-dotnet.slnx @@ -1,4 +1,4 @@ - + @@ -22,19 +22,19 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -138,43 +138,43 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -197,14 +197,14 @@ - - - - - - - - + + + + + + + + @@ -684,3 +684,5 @@ + + diff --git a/dotnet/eng/verify-samples/AgentsSamples.cs b/dotnet/eng/verify-samples/AgentsSamples.cs index 66d68248f6f..03ef93e2776 100644 --- a/dotnet/eng/verify-samples/AgentsSamples.cs +++ b/dotnet/eng/verify-samples/AgentsSamples.cs @@ -14,7 +14,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_With_CustomImplementation", - ProjectPath = "samples/02-agents/AgentProviders/Agent_With_CustomImplementation", + ProjectPath = "samples/02-agents/AgentProviders/custom/Agent_With_CustomImplementation", RequiredEnvironmentVariables = [], ExpectedOutputDescription = [ @@ -27,7 +27,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_With_AzureOpenAIChatCompletion", - ProjectPath = "samples/02-agents/AgentProviders/Agent_With_AzureOpenAIChatCompletion", + ProjectPath = "samples/02-agents/AgentProviders/azure/Agent_With_AzureOpenAIChatCompletion", RequiredEnvironmentVariables = ["AZURE_OPENAI_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_OPENAI_DEPLOYMENT_NAME"], ExpectedOutputDescription = @@ -40,7 +40,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_With_AzureOpenAIResponses", - ProjectPath = "samples/02-agents/AgentProviders/Agent_With_AzureOpenAIResponses", + ProjectPath = "samples/02-agents/AgentProviders/azure/Agent_With_AzureOpenAIResponses", RequiredEnvironmentVariables = ["AZURE_OPENAI_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_OPENAI_DEPLOYMENT_NAME"], ExpectedOutputDescription = @@ -53,7 +53,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_With_AzureAIProject", - ProjectPath = "samples/02-agents/AgentProviders/Agent_With_AzureAIProject", + ProjectPath = "samples/02-agents/AgentProviders/azure/Agent_With_AzureAIProject", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], MustContain = ["Latest agent version id:"], @@ -67,7 +67,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_With_AzureFoundryModel", - ProjectPath = "samples/02-agents/AgentProviders/Agent_With_AzureFoundryModel", + ProjectPath = "samples/02-agents/AgentProviders/azure/Agent_With_AzureFoundryModel", RequiredEnvironmentVariables = ["AZURE_OPENAI_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_OPENAI_API_KEY", "AZURE_AI_MODEL_DEPLOYMENT_NAME"], ExpectedOutputDescription = @@ -477,12 +477,12 @@ internal static class AgentsSamples ], }, - // ── AgentsWithFoundry ──────────────────────────────────────────────── + // ── Foundry ─────────────────────────────────────────────────────────── new SampleDefinition { Name = "FoundryAgent_Step00_FoundryAgentLifecycle", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step00_FoundryAgentLifecycle", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step00_FoundryAgentLifecycle", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], ExpectedOutputDescription = @@ -495,7 +495,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step01_Basics", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step01_Basics", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step01_Basics", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], ExpectedOutputDescription = @@ -508,7 +508,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step02.1_MultiturnConversation", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step02.1_MultiturnConversation", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step02.1_MultiturnConversation", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], ExpectedOutputDescription = @@ -522,7 +522,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step02.2_MultiturnWithServerConversations", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step02.2_MultiturnWithServerConversations", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step02.2_MultiturnWithServerConversations", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], ExpectedOutputDescription = @@ -535,7 +535,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step03_UsingFunctionTools", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step03_UsingFunctionTools", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step03_UsingFunctionTools", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], ExpectedOutputDescription = @@ -550,7 +550,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step04_UsingFunctionToolsWithApprovals", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step04_UsingFunctionToolsWithApprovals", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step04_UsingFunctionToolsWithApprovals", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], Inputs = ["Y", "Y", "Y"], @@ -566,7 +566,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step05_StructuredOutput", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step05_StructuredOutput", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step05_StructuredOutput", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], MustContain = ["Assistant Output:", "Name:"], @@ -581,7 +581,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step06_PersistedConversations", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step06_PersistedConversations", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step06_PersistedConversations", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], ExpectedOutputDescription = @@ -594,7 +594,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step08_DependencyInjection", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step08_DependencyInjection", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step08_DependencyInjection", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], Inputs = ["Tell me a joke about a pirate", ""], @@ -609,7 +609,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step10_UsingImages", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step10_UsingImages", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step10_UsingImages", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], ExpectedOutputDescription = @@ -623,7 +623,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step11_AsFunctionTool", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step11_AsFunctionTool", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step11_AsFunctionTool", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], ExpectedOutputDescription = @@ -637,7 +637,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step12_Middleware", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step12_Middleware", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step12_Middleware", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], Inputs = ["Y", "Y", "Y"], @@ -653,7 +653,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step13_Plugins", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step13_Plugins", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step13_Plugins", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], ExpectedOutputDescription = @@ -667,7 +667,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step14_CodeInterpreter", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step14_CodeInterpreter", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step14_CodeInterpreter", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], ExpectedOutputDescription = @@ -682,7 +682,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step16_FileSearch", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step16_FileSearch", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step16_FileSearch", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], MustContain = ["--- Running File Search Agent ---"], @@ -696,7 +696,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step17_OpenAPITools", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step17_OpenAPITools", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step17_OpenAPITools", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], ExpectedOutputDescription = @@ -720,7 +720,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_With_A2A", - ProjectPath = "samples/02-agents/AgentProviders/Agent_With_A2A", + ProjectPath = "samples/02-agents/AgentProviders/a2a/Agent_With_A2A", RequiredEnvironmentVariables = ["A2A_AGENT_HOST"], SkipReason = "Requires an external A2A agent host.", }, @@ -728,7 +728,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_With_Anthropic", - ProjectPath = "samples/02-agents/AgentProviders/Agent_With_Anthropic", + ProjectPath = "samples/02-agents/AgentProviders/anthropic/Agent_With_Anthropic", RequiredEnvironmentVariables = ["ANTHROPIC_API_KEY"], OptionalEnvironmentVariables = ["ANTHROPIC_CHAT_MODEL_NAME", "ANTHROPIC_RESOURCE"], ExpectedOutputDescription = @@ -741,7 +741,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_With_GitHubCopilot", - ProjectPath = "samples/02-agents/AgentProviders/Agent_With_GitHubCopilot", + ProjectPath = "samples/02-agents/AgentProviders/github-copilot/Agent_With_GitHubCopilot", RequiredEnvironmentVariables = [], // The sample prompts for shell command approval; provide "Y" for each possible permission request Inputs = ["Y", "Y", "Y"], @@ -756,7 +756,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_With_GoogleGemini", - ProjectPath = "samples/02-agents/AgentProviders/Agent_With_GoogleGemini", + ProjectPath = "samples/02-agents/AgentProviders/google-gemini/Agent_With_GoogleGemini", RequiredEnvironmentVariables = ["GOOGLE_GENAI_API_KEY"], OptionalEnvironmentVariables = ["GOOGLE_GENAI_MODEL"], MustContain = @@ -774,7 +774,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_With_ONNX", - ProjectPath = "samples/02-agents/AgentProviders/Agent_With_ONNX", + ProjectPath = "samples/02-agents/AgentProviders/onnx/Agent_With_ONNX", RequiredEnvironmentVariables = ["ONNX_MODEL_PATH"], SkipReason = "Requires local ONNX model.", }, @@ -782,7 +782,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_With_Ollama", - ProjectPath = "samples/02-agents/AgentProviders/Agent_With_Ollama", + ProjectPath = "samples/02-agents/AgentProviders/ollama/Agent_With_Ollama", RequiredEnvironmentVariables = ["OLLAMA_ENDPOINT", "OLLAMA_MODEL_NAME"], SkipReason = "Requires local Ollama server.", }, @@ -790,7 +790,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_With_OpenAIChatCompletion", - ProjectPath = "samples/02-agents/AgentProviders/Agent_With_OpenAIChatCompletion", + ProjectPath = "samples/02-agents/AgentProviders/openai/Agent_With_OpenAIChatCompletion", RequiredEnvironmentVariables = ["OPENAI_API_KEY"], OptionalEnvironmentVariables = ["OPENAI_CHAT_MODEL_NAME"], ExpectedOutputDescription = @@ -803,7 +803,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_With_OpenAIResponses", - ProjectPath = "samples/02-agents/AgentProviders/Agent_With_OpenAIResponses", + ProjectPath = "samples/02-agents/AgentProviders/openai/Agent_With_OpenAIResponses", RequiredEnvironmentVariables = ["OPENAI_API_KEY"], OptionalEnvironmentVariables = ["OPENAI_CHAT_MODEL_NAME"], ExpectedOutputDescription = @@ -843,7 +843,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_Anthropic_Step01_Running", - ProjectPath = "samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step01_Running", + ProjectPath = "samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step01_Running", RequiredEnvironmentVariables = ["ANTHROPIC_API_KEY"], OptionalEnvironmentVariables = ["ANTHROPIC_CHAT_MODEL_NAME"], ExpectedOutputDescription = @@ -857,7 +857,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_Anthropic_Step02_Reasoning", - ProjectPath = "samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step02_Reasoning", + ProjectPath = "samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step02_Reasoning", RequiredEnvironmentVariables = ["ANTHROPIC_API_KEY"], OptionalEnvironmentVariables = ["ANTHROPIC_CHAT_MODEL_NAME"], MustContain = @@ -880,7 +880,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_Anthropic_Step03_UsingFunctionTools", - ProjectPath = "samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step03_UsingFunctionTools", + ProjectPath = "samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step03_UsingFunctionTools", RequiredEnvironmentVariables = ["ANTHROPIC_API_KEY"], OptionalEnvironmentVariables = ["ANTHROPIC_CHAT_MODEL_NAME"], ExpectedOutputDescription = @@ -894,7 +894,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_Anthropic_Step04_UsingSkills", - ProjectPath = "samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step04_UsingSkills", + ProjectPath = "samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step04_UsingSkills", RequiredEnvironmentVariables = ["ANTHROPIC_API_KEY"], OptionalEnvironmentVariables = ["ANTHROPIC_CHAT_MODEL_NAME"], MustContain = @@ -921,7 +921,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_OpenAI_Step01_Running", - ProjectPath = "samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step01_Running", + ProjectPath = "samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step01_Running", RequiredEnvironmentVariables = ["OPENAI_API_KEY"], OptionalEnvironmentVariables = ["OPENAI_CHAT_MODEL_NAME"], ExpectedOutputDescription = @@ -934,7 +934,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_OpenAI_Step02_Reasoning", - ProjectPath = "samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step02_Reasoning", + ProjectPath = "samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step02_Reasoning", RequiredEnvironmentVariables = ["OPENAI_API_KEY"], OptionalEnvironmentVariables = ["OPENAI_CHAT_MODEL_NAME"], MustContain = @@ -954,7 +954,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_OpenAI_Step03_CreateFromChatClient", - ProjectPath = "samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step03_CreateFromChatClient", + ProjectPath = "samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step03_CreateFromChatClient", RequiredEnvironmentVariables = ["OPENAI_API_KEY"], OptionalEnvironmentVariables = ["OPENAI_CHAT_MODEL_NAME"], ExpectedOutputDescription = @@ -968,7 +968,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_OpenAI_Step04_CreateFromOpenAIResponseClient", - ProjectPath = "samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient", + ProjectPath = "samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient", RequiredEnvironmentVariables = ["OPENAI_API_KEY"], OptionalEnvironmentVariables = ["OPENAI_CHAT_MODEL_NAME"], ExpectedOutputDescription = @@ -982,7 +982,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "Agent_OpenAI_Step05_Conversation", - ProjectPath = "samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step05_Conversation", + ProjectPath = "samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step05_Conversation", RequiredEnvironmentVariables = ["OPENAI_API_KEY"], OptionalEnvironmentVariables = ["OPENAI_CHAT_MODEL_NAME"], MustContain = @@ -1029,7 +1029,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step07_Observability", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step07_Observability", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step07_Observability", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME", "APPLICATIONINSIGHTS_CONNECTION_STRING"], SkipReason = "Requires Application Insights / OpenTelemetry infrastructure.", @@ -1038,7 +1038,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step09_UsingMcpClientAsTools", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step09_UsingMcpClientAsTools", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step09_UsingMcpClientAsTools", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], ExpectedOutputDescription = @@ -1051,7 +1051,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step15_ComputerUse", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step15_ComputerUse", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step15_ComputerUse", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], ExpectedOutputDescription = ["The output should show a computer automation session processing simulated browser screenshots with iteration steps and a final response describing search results."], @@ -1060,7 +1060,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step18_BingCustomSearch", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step18_BingCustomSearch", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step18_BingCustomSearch", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT", "AZURE_AI_MODEL_DEPLOYMENT_NAME", "AZURE_AI_CUSTOM_SEARCH_CONNECTION_ID", "AZURE_AI_CUSTOM_SEARCH_INSTANCE_NAME"], SkipReason = "Requires Bing Custom Search connection.", }, @@ -1068,7 +1068,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step19_SharePoint", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step19_SharePoint", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step19_SharePoint", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT", "AZURE_AI_MODEL_DEPLOYMENT_NAME", "SHAREPOINT_PROJECT_CONNECTION_ID"], SkipReason = "Requires SharePoint connection.", }, @@ -1076,7 +1076,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step20_MicrosoftFabric", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step20_MicrosoftFabric", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step20_MicrosoftFabric", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT", "AZURE_AI_MODEL_DEPLOYMENT_NAME", "FABRIC_PROJECT_CONNECTION_ID"], SkipReason = "Requires Microsoft Fabric connection.", }, @@ -1084,7 +1084,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step21_WebSearch", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step21_WebSearch", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step21_WebSearch", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], ExpectedOutputDescription = @@ -1097,7 +1097,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step22_MemorySearch", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step22_MemorySearch", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step22_MemorySearch", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT", "AZURE_AI_MODEL_DEPLOYMENT_NAME", "AZURE_AI_EMBEDDING_DEPLOYMENT_NAME"], OptionalEnvironmentVariables = ["AZURE_AI_MEMORY_STORE_ID"], MustContain = ["Agent created with Memory Search tool. Starting conversation..."], @@ -1111,7 +1111,7 @@ internal static class AgentsSamples new SampleDefinition { Name = "FoundryAgent_Step23_LocalMCP", - ProjectPath = "samples/02-agents/AgentsWithFoundry/Agent_Step23_LocalMCP", + ProjectPath = "samples/02-agents/AgentProviders/foundry/Agent_Step23_LocalMCP", RequiredEnvironmentVariables = ["AZURE_AI_PROJECT_ENDPOINT"], OptionalEnvironmentVariables = ["AZURE_AI_MODEL_DEPLOYMENT_NAME"], ExpectedOutputDescription = ["The output should show an agent using the Microsoft Learn MCP server to search for documentation and provide a response."], diff --git a/dotnet/samples/02-agents/AgentProviders/README.md b/dotnet/samples/02-agents/AgentProviders/README.md index 7c0e003713a..0a99f5bf094 100644 --- a/dotnet/samples/02-agents/AgentProviders/README.md +++ b/dotnet/samples/02-agents/AgentProviders/README.md @@ -1,7 +1,8 @@ -# Creating an AIAgent instance for various providers +# Creating an AIAgent with various providers -These samples show how to create an AIAgent instance using various providers. -This is not an exhaustive list, but shows a variety of the more popular options. +These samples show how to create an AIAgent instance using various providers, +organized by provider. This is not an exhaustive list, but shows a variety of +the more popular options. For other samples that demonstrate how to use AIAgent instances, see the [Getting Started With Agents](../Agents/README.md) samples. @@ -10,53 +11,88 @@ see the [Getting Started With Agents](../Agents/README.md) samples. See the README.md for each sample for the prerequisites for that sample. -## Samples +## Providers -|Sample|Description| -|---|---| -|[Creating an AIAgent with A2A](./Agent_With_A2A/)|This sample demonstrates how to create AIAgent for an existing A2A agent.| -|[Creating an AIAgent with Anthropic](./Agent_With_Anthropic/)|This sample demonstrates how to create an AIAgent using Anthropic Claude models as the underlying inference service| -|[Creating an AIAgent with Foundry Agents using Azure.AI.Project](./Agent_With_AzureAIProject/)|This sample demonstrates how to create an Foundry Project agent and expose it as an AIAgent using the Azure.AI.Project SDK| -|[Creating an AIAgent with Foundry Model](./Agent_With_AzureFoundryModel/)|This sample demonstrates how to use any model deployed to Microsoft Foundry to create an AIAgent| -|[Creating an AIAgent with Azure OpenAI ChatCompletion](./Agent_With_AzureOpenAIChatCompletion/)|This sample demonstrates how to create an AIAgent using Azure OpenAI ChatCompletion as the underlying inference service| -|[Creating an AIAgent with Azure OpenAI Responses](./Agent_With_AzureOpenAIResponses/)|This sample demonstrates how to create an AIAgent using Azure OpenAI Responses as the underlying inference service| -|[Creating an AIAgent with a custom implementation](./Agent_With_CustomImplementation/)|This sample demonstrates how to create an AIAgent with a custom implementation| -|[Creating an AIAgent with GitHub Copilot](./Agent_With_GitHubCopilot/)|This sample demonstrates how to create an AIAgent using GitHub Copilot SDK as the underlying inference service| -|[Creating an AIAgent with Ollama](./Agent_With_Ollama/)|This sample demonstrates how to create an AIAgent using Ollama as the underlying inference service| -|[Creating an AIAgent with ONNX](./Agent_With_ONNX/)|This sample demonstrates how to create an AIAgent using ONNX as the underlying inference service| -|[Creating an AIAgent with OpenAI ChatCompletion](./Agent_With_OpenAIChatCompletion/)|This sample demonstrates how to create an AIAgent using OpenAI ChatCompletion as the underlying inference service| -|[Creating an AIAgent with OpenAI Responses](./Agent_With_OpenAIResponses/)|This sample demonstrates how to create an AIAgent using OpenAI Responses as the underlying inference service| +### [A2A](./a2a/) -## Running the samples from the console +| Sample | Description | +| --- | --- | +| [Agent with A2A](./a2a/Agent_With_A2A/) | Create an AIAgent for an existing A2A agent | -To run the samples, navigate to the desired sample directory, e.g. +### [Anthropic](./anthropic/) -```powershell -cd AIAgent_With_AzureOpenAIChatCompletion -``` +| Sample | Description | +| --- | --- | +| [Agent with Anthropic](./anthropic/Agent_With_Anthropic/) | Create an AIAgent using Anthropic Claude models | +| [Running](./anthropic/Agent_Anthropic_Step01_Running/) | Basic Anthropic agent usage | +| [Reasoning](./anthropic/Agent_Anthropic_Step02_Reasoning/) | Using Anthropic reasoning capabilities | +| [Function Tools](./anthropic/Agent_Anthropic_Step03_UsingFunctionTools/) | Using function tools with Anthropic | +| [Skills](./anthropic/Agent_Anthropic_Step04_UsingSkills/) | Using skills with Anthropic agents | -Set the required environment variables as documented in the sample readme. -If the variables are not set, you will be prompted for the values when running the samples. -Execute the following command to build the sample: +### [Azure](./azure/) -```powershell -dotnet build -``` +| Sample | Description | +| --- | --- | +| [Azure AI Project](./azure/Agent_With_AzureAIProject/) | Create a Foundry Project agent using the Azure.AI.Project SDK | +| [Azure Foundry Model](./azure/Agent_With_AzureFoundryModel/) | Use any model deployed to Microsoft Foundry | +| [Azure OpenAI ChatCompletion](./azure/Agent_With_AzureOpenAIChatCompletion/) | Create an AIAgent using Azure OpenAI ChatCompletion | +| [Azure OpenAI Responses](./azure/Agent_With_AzureOpenAIResponses/) | Create an AIAgent using Azure OpenAI Responses | -Execute the following command to run the sample: +### [Custom](./custom/) -```powershell -dotnet run --no-build -``` +| Sample | Description | +| --- | --- | +| [Custom Implementation](./custom/Agent_With_CustomImplementation/) | Create an AIAgent with a custom implementation | + +### [Foundry](./foundry/) + +See [foundry/README.md](./foundry/README.md) for the full list of Foundry agent samples, +covering basics, function tools, structured output, middleware, MCP, code interpreter, and more. + +### [GitHub Copilot](./github-copilot/) + +| Sample | Description | +| --- | --- | +| [GitHub Copilot](./github-copilot/Agent_With_GitHubCopilot/) | Create an AIAgent using GitHub Copilot SDK | + +### [Google Gemini](./google-gemini/) -Or just build and run in one step: +| Sample | Description | +| --- | --- | +| [Google Gemini](./google-gemini/Agent_With_GoogleGemini/) | Create an AIAgent using Google Gemini | + +### [Ollama](./ollama/) + +| Sample | Description | +| --- | --- | +| [Ollama](./ollama/Agent_With_Ollama/) | Create an AIAgent using Ollama | + +### [ONNX](./onnx/) + +| Sample | Description | +| --- | --- | +| [ONNX](./onnx/Agent_With_ONNX/) | Create an AIAgent using ONNX Runtime | + +### [OpenAI](./openai/) + +| Sample | Description | +| --- | --- | +| [OpenAI ChatCompletion](./openai/Agent_With_OpenAIChatCompletion/) | Create an AIAgent using OpenAI ChatCompletion | +| [OpenAI Responses](./openai/Agent_With_OpenAIResponses/) | Create an AIAgent using OpenAI Responses | +| [Running](./openai/Agent_OpenAI_Step01_Running/) | Basic OpenAI agent usage | +| [Reasoning](./openai/Agent_OpenAI_Step02_Reasoning/) | Using OpenAI reasoning capabilities | +| [Create from ChatClient](./openai/Agent_OpenAI_Step03_CreateFromChatClient/) | Create agent from IChatClient | +| [Create from Response Client](./openai/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/) | Create agent from OpenAI Response client | +| [Conversation](./openai/Agent_OpenAI_Step05_Conversation/) | Multi-turn conversations with OpenAI | +| [Code Interpreter](./openai/Agent_OpenAI_Step06_CodeInterpreterFileDownload/) | Code interpreter with file downloads | + +## Running the samples + +Navigate to a sample directory and run: ```powershell dotnet run ``` -## Running the samples from Visual Studio - -Open the solution in Visual Studio and set the desired sample project as the startup project. Then, run the project using the built-in debugger or by pressing `F5`. - -You will be prompted for any required environment variables if they are not already set. +Set the required environment variables as documented in each sample's README. +If the variables are not set, you will be prompted for the values when running the samples. diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_A2A/Agent_With_A2A.csproj b/dotnet/samples/02-agents/AgentProviders/a2a/Agent_With_A2A/Agent_With_A2A.csproj similarity index 75% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_A2A/Agent_With_A2A.csproj rename to dotnet/samples/02-agents/AgentProviders/a2a/Agent_With_A2A/Agent_With_A2A.csproj index 7236ee50447..bb68c7e26df 100644 --- a/dotnet/samples/02-agents/AgentProviders/Agent_With_A2A/Agent_With_A2A.csproj +++ b/dotnet/samples/02-agents/AgentProviders/a2a/Agent_With_A2A/Agent_With_A2A.csproj @@ -13,7 +13,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_A2A/Program.cs b/dotnet/samples/02-agents/AgentProviders/a2a/Agent_With_A2A/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_A2A/Program.cs rename to dotnet/samples/02-agents/AgentProviders/a2a/Agent_With_A2A/Program.cs diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_A2A/README.md b/dotnet/samples/02-agents/AgentProviders/a2a/Agent_With_A2A/README.md similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_A2A/README.md rename to dotnet/samples/02-agents/AgentProviders/a2a/Agent_With_A2A/README.md diff --git a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step01_Running/Agent_Anthropic_Step01_Running.csproj b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step01_Running/Agent_Anthropic_Step01_Running.csproj similarity index 69% rename from dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step01_Running/Agent_Anthropic_Step01_Running.csproj rename to dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step01_Running/Agent_Anthropic_Step01_Running.csproj index 09359c5e781..da07225262f 100644 --- a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step01_Running/Agent_Anthropic_Step01_Running.csproj +++ b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step01_Running/Agent_Anthropic_Step01_Running.csproj @@ -9,7 +9,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step01_Running/Program.cs b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step01_Running/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step01_Running/Program.cs rename to dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step01_Running/Program.cs diff --git a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step01_Running/README.md b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step01_Running/README.md similarity index 87% rename from dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step01_Running/README.md rename to dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step01_Running/README.md index 5f58a437655..2fb1b8356b9 100644 --- a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step01_Running/README.md +++ b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step01_Running/README.md @@ -1,4 +1,4 @@ -# Running a simple agent with Anthropic +# Running a simple agent with Anthropic This sample demonstrates how to create and run a basic agent with Anthropic Claude models. @@ -26,10 +26,10 @@ $env:ANTHROPIC_CHAT_MODEL_NAME="your-anthropic-model" # Replace with your Anthr ## Run the sample -Navigate to the AgentWithAnthropic sample directory and run: +Navigate to the Anthropic sample directory and run: ```powershell -cd dotnet\samples\02-agents\AgentWithAnthropic +cd dotnet\samples\02-agents\AgentProviders\anthropic dotnet run --project .\Agent_Anthropic_Step01_Running ``` @@ -41,3 +41,4 @@ The sample will: 2. Run the agent with a simple prompt 3. Display the agent's response + diff --git a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step02_Reasoning/Agent_Anthropic_Step02_Reasoning.csproj b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step02_Reasoning/Agent_Anthropic_Step02_Reasoning.csproj similarity index 69% rename from dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step02_Reasoning/Agent_Anthropic_Step02_Reasoning.csproj rename to dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step02_Reasoning/Agent_Anthropic_Step02_Reasoning.csproj index fc0914f1fc1..95d4c87524b 100644 --- a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step02_Reasoning/Agent_Anthropic_Step02_Reasoning.csproj +++ b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step02_Reasoning/Agent_Anthropic_Step02_Reasoning.csproj @@ -9,7 +9,7 @@ - + \ No newline at end of file diff --git a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step02_Reasoning/Program.cs b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step02_Reasoning/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step02_Reasoning/Program.cs rename to dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step02_Reasoning/Program.cs diff --git a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step02_Reasoning/README.md b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step02_Reasoning/README.md similarity index 89% rename from dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step02_Reasoning/README.md rename to dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step02_Reasoning/README.md index 42421111225..1be0cad4f06 100644 --- a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step02_Reasoning/README.md +++ b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step02_Reasoning/README.md @@ -1,4 +1,4 @@ -# Using reasoning with Anthropic agents +# Using reasoning with Anthropic agents This sample demonstrates how to use extended thinking/reasoning capabilities with Anthropic Claude agents. @@ -28,10 +28,10 @@ $env:ANTHROPIC_CHAT_MODEL_NAME="your-anthropic-model" # Replace with your Anthr ## Run the sample -Navigate to the AgentWithAnthropic sample directory and run: +Navigate to the Anthropic sample directory and run: ```powershell -cd dotnet\samples\02-agents\AgentWithAnthropic +cd dotnet\samples\02-agents\AgentProviders\anthropic dotnet run --project .\Agent_Anthropic_Step02_Reasoning ``` @@ -44,3 +44,4 @@ The sample will: 3. Display the agent's thinking process 4. Display the agent's final response + diff --git a/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step03_UsingFunctionTools/Agent_Anthropic_Step03_UsingFunctionTools.csproj b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step03_UsingFunctionTools/Agent_Anthropic_Step03_UsingFunctionTools.csproj new file mode 100644 index 00000000000..da07225262f --- /dev/null +++ b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step03_UsingFunctionTools/Agent_Anthropic_Step03_UsingFunctionTools.csproj @@ -0,0 +1,15 @@ + + + + Exe + net10.0 + + enable + enable + + + + + + + diff --git a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step03_UsingFunctionTools/Program.cs b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step03_UsingFunctionTools/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step03_UsingFunctionTools/Program.cs rename to dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step03_UsingFunctionTools/Program.cs diff --git a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step03_UsingFunctionTools/README.md b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step03_UsingFunctionTools/README.md similarity index 90% rename from dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step03_UsingFunctionTools/README.md rename to dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step03_UsingFunctionTools/README.md index 9160a97d027..30edfecef1c 100644 --- a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step03_UsingFunctionTools/README.md +++ b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step03_UsingFunctionTools/README.md @@ -1,4 +1,4 @@ -# Using Function Tools with Anthropic agents +# Using Function Tools with Anthropic agents This sample demonstrates how to use function tools with Anthropic Claude agents, allowing agents to call custom functions to retrieve information. @@ -28,10 +28,10 @@ $env:ANTHROPIC_CHAT_MODEL_NAME="your-anthropic-model" # Replace with your Anthr ## Run the sample -Navigate to the AgentWithAnthropic sample directory and run: +Navigate to the Anthropic sample directory and run: ```powershell -cd dotnet\samples\02-agents\AgentWithAnthropic +cd dotnet\samples\02-agents\AgentProviders\anthropic dotnet run --project .\Agent_Anthropic_Step03_UsingFunctionTools ``` @@ -45,3 +45,4 @@ The sample will: 4. Run the agent again with streaming to display the response as it's generated 5. Clean up resources by deleting the agent + diff --git a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step04_UsingSkills/Agent_Anthropic_Step04_UsingSkills.csproj b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step04_UsingSkills/Agent_Anthropic_Step04_UsingSkills.csproj similarity index 69% rename from dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step04_UsingSkills/Agent_Anthropic_Step04_UsingSkills.csproj rename to dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step04_UsingSkills/Agent_Anthropic_Step04_UsingSkills.csproj index 09359c5e781..da07225262f 100644 --- a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step04_UsingSkills/Agent_Anthropic_Step04_UsingSkills.csproj +++ b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step04_UsingSkills/Agent_Anthropic_Step04_UsingSkills.csproj @@ -9,7 +9,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step04_UsingSkills/Program.cs b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step04_UsingSkills/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step04_UsingSkills/Program.cs rename to dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step04_UsingSkills/Program.cs diff --git a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step04_UsingSkills/README.md b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step04_UsingSkills/README.md similarity index 96% rename from dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step04_UsingSkills/README.md rename to dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step04_UsingSkills/README.md index 322d4750087..c5e1f02dab1 100644 --- a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step04_UsingSkills/README.md +++ b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_Anthropic_Step04_UsingSkills/README.md @@ -1,4 +1,4 @@ -# Using Anthropic Skills with agents +# Using Anthropic Skills with agents This sample demonstrates how to use Anthropic-managed Skills with AI agents. Skills are pre-built capabilities provided by Anthropic that can be used with the Claude API. @@ -29,10 +29,10 @@ $env:ANTHROPIC_CHAT_MODEL_NAME="your-anthropic-model" # Replace with your Anthr ## Run the sample -Navigate to the AgentWithAnthropic sample directory and run: +Navigate to the Anthropic sample directory and run: ```powershell -cd dotnet\samples\02-agents\AgentWithAnthropic +cd dotnet\samples\02-agents\AgentProviders\anthropic dotnet run --project .\Agent_Anthropic_Step04_UsingSkills ``` @@ -117,3 +117,4 @@ foreach (HostedFileContent file in hostedFiles) await contentStream.CopyToAsync(fileStream); } ``` + diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_Anthropic/Agent_With_Anthropic.csproj b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_With_Anthropic/Agent_With_Anthropic.csproj similarity index 78% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_Anthropic/Agent_With_Anthropic.csproj rename to dotnet/samples/02-agents/AgentProviders/anthropic/Agent_With_Anthropic/Agent_With_Anthropic.csproj index eb29d1d310f..a9ec32c22cc 100644 --- a/dotnet/samples/02-agents/AgentProviders/Agent_With_Anthropic/Agent_With_Anthropic.csproj +++ b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_With_Anthropic/Agent_With_Anthropic.csproj @@ -15,7 +15,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_Anthropic/Program.cs b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_With_Anthropic/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_Anthropic/Program.cs rename to dotnet/samples/02-agents/AgentProviders/anthropic/Agent_With_Anthropic/Program.cs diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_Anthropic/README.md b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_With_Anthropic/README.md similarity index 98% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_Anthropic/README.md rename to dotnet/samples/02-agents/AgentProviders/anthropic/Agent_With_Anthropic/README.md index 3be31187e0a..651a99e5ac4 100644 --- a/dotnet/samples/02-agents/AgentProviders/Agent_With_Anthropic/README.md +++ b/dotnet/samples/02-agents/AgentProviders/anthropic/Agent_With_Anthropic/README.md @@ -1,4 +1,4 @@ -# Creating an AIAgent with Anthropic +# Creating an AIAgent with Anthropic This sample demonstrates how to create an AIAgent using Anthropic Claude models as the underlying inference service. @@ -51,3 +51,4 @@ $env:ANTHROPIC_CHAT_MODEL_NAME="claude-haiku-4-5" # Optional, defaults to claud ``` **Note**: When using Microsoft Foundry with Azure CLI, make sure you're logged in with `az login` and have access to the Microsoft Foundry resource. For more information, see the [Azure CLI documentation](https://learn.microsoft.com/cli/azure/authenticate-azure-cli-interactively). + diff --git a/dotnet/samples/02-agents/AgentWithAnthropic/README.md b/dotnet/samples/02-agents/AgentProviders/anthropic/README.md similarity index 91% rename from dotnet/samples/02-agents/AgentWithAnthropic/README.md rename to dotnet/samples/02-agents/AgentProviders/anthropic/README.md index c2de7425d2c..98269367000 100644 --- a/dotnet/samples/02-agents/AgentWithAnthropic/README.md +++ b/dotnet/samples/02-agents/AgentProviders/anthropic/README.md @@ -1,4 +1,4 @@ -# Getting started with agents using Anthropic +# Getting started with agents using Anthropic The getting started with agents using Anthropic samples demonstrate the fundamental concepts and functionalities of single agents using Anthropic as the AI provider. @@ -6,7 +6,7 @@ of single agents using Anthropic as the AI provider. These samples use Anthropic Claude models as the AI provider and use ChatCompletion as the type of service. For other samples that demonstrate how to create and configure each type of agent that come with the agent framework, -see the [How to create an agent for each provider](../AgentProviders/README.md) samples. +see the [How to create an agent for each provider](../README.md) samples. ## Getting started with agents using Anthropic prerequisites @@ -20,7 +20,7 @@ Before you begin, ensure you have the following prerequisites: ## Using Anthropic with Microsoft Foundry -To use Anthropic with Microsoft Foundry, you can check the sample [AgentProviders/Agent_With_Anthropic](../AgentProviders/Agent_With_Anthropic/README.md) for more details. +To use Anthropic with Microsoft Foundry, you can check the sample [providers/Agent_With_Anthropic](./Agent_With_Anthropic/README.md) for more details. ## Samples diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_AzureAIProject/Agent_With_AzureAIProject.csproj b/dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureAIProject/Agent_With_AzureAIProject.csproj similarity index 79% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_AzureAIProject/Agent_With_AzureAIProject.csproj rename to dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureAIProject/Agent_With_AzureAIProject.csproj index 562ce0c37e7..a8e5bb87052 100644 --- a/dotnet/samples/02-agents/AgentProviders/Agent_With_AzureAIProject/Agent_With_AzureAIProject.csproj +++ b/dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureAIProject/Agent_With_AzureAIProject.csproj @@ -15,7 +15,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_AzureAIProject/Program.cs b/dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureAIProject/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_AzureAIProject/Program.cs rename to dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureAIProject/Program.cs diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_AzureAIProject/README.md b/dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureAIProject/README.md similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_AzureAIProject/README.md rename to dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureAIProject/README.md diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_AzureFoundryModel/Agent_With_AzureFoundryModel.csproj b/dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureFoundryModel/Agent_With_AzureFoundryModel.csproj similarity index 75% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_AzureFoundryModel/Agent_With_AzureFoundryModel.csproj rename to dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureFoundryModel/Agent_With_AzureFoundryModel.csproj index 0c4701fafd8..a6c7628de84 100644 --- a/dotnet/samples/02-agents/AgentProviders/Agent_With_AzureFoundryModel/Agent_With_AzureFoundryModel.csproj +++ b/dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureFoundryModel/Agent_With_AzureFoundryModel.csproj @@ -13,7 +13,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_AzureFoundryModel/Program.cs b/dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureFoundryModel/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_AzureFoundryModel/Program.cs rename to dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureFoundryModel/Program.cs diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_AzureFoundryModel/README.md b/dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureFoundryModel/README.md similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_AzureFoundryModel/README.md rename to dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureFoundryModel/README.md diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_AzureOpenAIChatCompletion/Agent_With_AzureOpenAIChatCompletion.csproj b/dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureOpenAIChatCompletion/Agent_With_AzureOpenAIChatCompletion.csproj similarity index 77% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_AzureOpenAIChatCompletion/Agent_With_AzureOpenAIChatCompletion.csproj rename to dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureOpenAIChatCompletion/Agent_With_AzureOpenAIChatCompletion.csproj index 41aafe34372..54cc460fe9d 100644 --- a/dotnet/samples/02-agents/AgentProviders/Agent_With_AzureOpenAIChatCompletion/Agent_With_AzureOpenAIChatCompletion.csproj +++ b/dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureOpenAIChatCompletion/Agent_With_AzureOpenAIChatCompletion.csproj @@ -14,7 +14,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_AzureOpenAIChatCompletion/Program.cs b/dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureOpenAIChatCompletion/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_AzureOpenAIChatCompletion/Program.cs rename to dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureOpenAIChatCompletion/Program.cs diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_AzureOpenAIChatCompletion/README.md b/dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureOpenAIChatCompletion/README.md similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_AzureOpenAIChatCompletion/README.md rename to dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureOpenAIChatCompletion/README.md diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_AzureOpenAIResponses/Agent_With_AzureOpenAIResponses.csproj b/dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureOpenAIResponses/Agent_With_AzureOpenAIResponses.csproj similarity index 77% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_AzureOpenAIResponses/Agent_With_AzureOpenAIResponses.csproj rename to dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureOpenAIResponses/Agent_With_AzureOpenAIResponses.csproj index 41aafe34372..54cc460fe9d 100644 --- a/dotnet/samples/02-agents/AgentProviders/Agent_With_AzureOpenAIResponses/Agent_With_AzureOpenAIResponses.csproj +++ b/dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureOpenAIResponses/Agent_With_AzureOpenAIResponses.csproj @@ -14,7 +14,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_AzureOpenAIResponses/Program.cs b/dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureOpenAIResponses/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_AzureOpenAIResponses/Program.cs rename to dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureOpenAIResponses/Program.cs diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_AzureOpenAIResponses/README.md b/dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureOpenAIResponses/README.md similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_AzureOpenAIResponses/README.md rename to dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureOpenAIResponses/README.md diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_CustomImplementation/Agent_With_CustomImplementation.csproj b/dotnet/samples/02-agents/AgentProviders/custom/Agent_With_CustomImplementation/Agent_With_CustomImplementation.csproj similarity index 68% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_CustomImplementation/Agent_With_CustomImplementation.csproj rename to dotnet/samples/02-agents/AgentProviders/custom/Agent_With_CustomImplementation/Agent_With_CustomImplementation.csproj index 409693f2fd6..db173ea24ca 100644 --- a/dotnet/samples/02-agents/AgentProviders/Agent_With_CustomImplementation/Agent_With_CustomImplementation.csproj +++ b/dotnet/samples/02-agents/AgentProviders/custom/Agent_With_CustomImplementation/Agent_With_CustomImplementation.csproj @@ -9,7 +9,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_CustomImplementation/Program.cs b/dotnet/samples/02-agents/AgentProviders/custom/Agent_With_CustomImplementation/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_CustomImplementation/Program.cs rename to dotnet/samples/02-agents/AgentProviders/custom/Agent_With_CustomImplementation/Program.cs diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_CustomImplementation/README.md b/dotnet/samples/02-agents/AgentProviders/custom/Agent_With_CustomImplementation/README.md similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_CustomImplementation/README.md rename to dotnet/samples/02-agents/AgentProviders/custom/Agent_With_CustomImplementation/README.md diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step00_FoundryAgentLifecycle/Agent_Step00_FoundryAgentLifecycle.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step00_FoundryAgentLifecycle/Agent_Step00_FoundryAgentLifecycle.csproj similarity index 77% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step00_FoundryAgentLifecycle/Agent_Step00_FoundryAgentLifecycle.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step00_FoundryAgentLifecycle/Agent_Step00_FoundryAgentLifecycle.csproj index 4c83380f906..6bbb5e7d354 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step00_FoundryAgentLifecycle/Agent_Step00_FoundryAgentLifecycle.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step00_FoundryAgentLifecycle/Agent_Step00_FoundryAgentLifecycle.csproj @@ -14,7 +14,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step00_FoundryAgentLifecycle/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step00_FoundryAgentLifecycle/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step00_FoundryAgentLifecycle/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step00_FoundryAgentLifecycle/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step00_FoundryAgentLifecycle/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step00_FoundryAgentLifecycle/README.md similarity index 93% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step00_FoundryAgentLifecycle/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step00_FoundryAgentLifecycle/README.md index 50b00dc4b70..014e8440ea2 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step00_FoundryAgentLifecycle/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step00_FoundryAgentLifecycle/README.md @@ -18,6 +18,7 @@ This sample demonstrates the full lifecycle of a `FoundryAgent` backed by a serv ## Running the sample ```powershell -cd dotnet/samples/02-agents/AgentsWithFoundry +cd dotnet/samples/02-agents/AgentProviders/foundry dotnet run --project .\Agent_Step00_FoundryAgentLifecycle ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step01_Basics/Agent_Step01_Basics.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step01_Basics/Agent_Step01_Basics.csproj similarity index 70% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step01_Basics/Agent_Step01_Basics.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step01_Basics/Agent_Step01_Basics.csproj index 6b4cb8f43e4..1ea7ea49c00 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step01_Basics/Agent_Step01_Basics.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step01_Basics/Agent_Step01_Basics.csproj @@ -9,7 +9,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step01_Basics/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step01_Basics/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step01_Basics/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step01_Basics/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step01_Basics/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step01_Basics/README.md similarity index 94% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step01_Basics/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step01_Basics/README.md index 09bd0f7c023..1fa4b7e0d67 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step01_Basics/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step01_Basics/README.md @@ -27,10 +27,10 @@ $env:FOUNDRY_MODEL="gpt-5.4-mini" ## Run the sample -Navigate to the AgentsWithFoundry sample directory and run: +Navigate to the Foundry sample directory and run: ```powershell -cd dotnet/samples/02-agents/AgentsWithFoundry +cd dotnet/samples/02-agents/AgentProviders/foundry dotnet run --project .\Agent_Step01_Basics ``` @@ -53,3 +53,4 @@ AIAgent agent = new ChatClientAgent( ``` This approach is useful when you need to customize the chat client pipeline or swap providers (e.g., Anthropic, OpenAI) while keeping the same agent code. + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step02.1_MultiturnConversation/Agent_Step02.1_MultiturnConversation.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step02.1_MultiturnConversation/Agent_Step02.1_MultiturnConversation.csproj similarity index 70% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step02.1_MultiturnConversation/Agent_Step02.1_MultiturnConversation.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step02.1_MultiturnConversation/Agent_Step02.1_MultiturnConversation.csproj index 6b4cb8f43e4..1ea7ea49c00 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step02.1_MultiturnConversation/Agent_Step02.1_MultiturnConversation.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step02.1_MultiturnConversation/Agent_Step02.1_MultiturnConversation.csproj @@ -9,7 +9,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step02.1_MultiturnConversation/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step02.1_MultiturnConversation/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step02.1_MultiturnConversation/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step02.1_MultiturnConversation/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step02.1_MultiturnConversation/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step02.1_MultiturnConversation/README.md similarity index 91% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step02.1_MultiturnConversation/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step02.1_MultiturnConversation/README.md index 7394ff432a0..5e7b0cfed55 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step02.1_MultiturnConversation/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step02.1_MultiturnConversation/README.md @@ -28,9 +28,10 @@ $env:FOUNDRY_MODEL="gpt-5.4-mini" ## Run the sample -Navigate to the AgentsWithFoundry sample directory and run: +Navigate to the Foundry sample directory and run: ```powershell -cd dotnet/samples/02-agents/AgentsWithFoundry +cd dotnet/samples/02-agents/AgentProviders/foundry dotnet run --project .\Agent_Step02.1_MultiturnConversation ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step02.2_MultiturnWithServerConversations/Agent_Step02.2_MultiturnWithServerConversations.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step02.2_MultiturnWithServerConversations/Agent_Step02.2_MultiturnWithServerConversations.csproj similarity index 70% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step02.2_MultiturnWithServerConversations/Agent_Step02.2_MultiturnWithServerConversations.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step02.2_MultiturnWithServerConversations/Agent_Step02.2_MultiturnWithServerConversations.csproj index 6b4cb8f43e4..1ea7ea49c00 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step02.2_MultiturnWithServerConversations/Agent_Step02.2_MultiturnWithServerConversations.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step02.2_MultiturnWithServerConversations/Agent_Step02.2_MultiturnWithServerConversations.csproj @@ -9,7 +9,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step02.2_MultiturnWithServerConversations/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step02.2_MultiturnWithServerConversations/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step02.2_MultiturnWithServerConversations/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step02.2_MultiturnWithServerConversations/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step02.2_MultiturnWithServerConversations/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step02.2_MultiturnWithServerConversations/README.md similarity index 92% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step02.2_MultiturnWithServerConversations/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step02.2_MultiturnWithServerConversations/README.md index 4cc1f635ecd..cb99db3c9ff 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step02.2_MultiturnWithServerConversations/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step02.2_MultiturnWithServerConversations/README.md @@ -28,9 +28,10 @@ $env:FOUNDRY_MODEL="gpt-5.4-mini" ## Run the sample -Navigate to the AgentsWithFoundry sample directory and run: +Navigate to the Foundry sample directory and run: ```powershell -cd dotnet/samples/02-agents/AgentsWithFoundry +cd dotnet/samples/02-agents/AgentProviders/foundry dotnet run --project .\Agent_Step02.2_MultiturnWithServerConversations ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step03_UsingFunctionTools/Agent_Step03_UsingFunctionTools.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step03_UsingFunctionTools/Agent_Step03_UsingFunctionTools.csproj similarity index 70% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step03_UsingFunctionTools/Agent_Step03_UsingFunctionTools.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step03_UsingFunctionTools/Agent_Step03_UsingFunctionTools.csproj index 6b4cb8f43e4..1ea7ea49c00 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step03_UsingFunctionTools/Agent_Step03_UsingFunctionTools.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step03_UsingFunctionTools/Agent_Step03_UsingFunctionTools.csproj @@ -9,7 +9,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step03_UsingFunctionTools/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step03_UsingFunctionTools/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step03_UsingFunctionTools/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step03_UsingFunctionTools/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step03_UsingFunctionTools/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step03_UsingFunctionTools/README.md similarity index 92% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step03_UsingFunctionTools/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step03_UsingFunctionTools/README.md index 4692b4838f6..640d7c59768 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step03_UsingFunctionTools/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step03_UsingFunctionTools/README.md @@ -29,9 +29,10 @@ $env:FOUNDRY_MODEL="gpt-5.4-mini" ## Run the sample -Navigate to the AgentsWithFoundry sample directory and run: +Navigate to the Foundry sample directory and run: ```powershell -cd dotnet/samples/02-agents/AgentsWithFoundry +cd dotnet/samples/02-agents/AgentProviders/foundry dotnet run --project .\Agent_Step03_UsingFunctionTools ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step04_UsingFunctionToolsWithApprovals/Agent_Step04_UsingFunctionToolsWithApprovals.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step04_UsingFunctionToolsWithApprovals/Agent_Step04_UsingFunctionToolsWithApprovals.csproj similarity index 70% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step04_UsingFunctionToolsWithApprovals/Agent_Step04_UsingFunctionToolsWithApprovals.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step04_UsingFunctionToolsWithApprovals/Agent_Step04_UsingFunctionToolsWithApprovals.csproj index 6b4cb8f43e4..1ea7ea49c00 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step04_UsingFunctionToolsWithApprovals/Agent_Step04_UsingFunctionToolsWithApprovals.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step04_UsingFunctionToolsWithApprovals/Agent_Step04_UsingFunctionToolsWithApprovals.csproj @@ -9,7 +9,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step04_UsingFunctionToolsWithApprovals/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step04_UsingFunctionToolsWithApprovals/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step04_UsingFunctionToolsWithApprovals/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step04_UsingFunctionToolsWithApprovals/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step04_UsingFunctionToolsWithApprovals/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step04_UsingFunctionToolsWithApprovals/README.md similarity index 94% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step04_UsingFunctionToolsWithApprovals/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step04_UsingFunctionToolsWithApprovals/README.md index 27db13b748f..4569ee58eea 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step04_UsingFunctionToolsWithApprovals/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step04_UsingFunctionToolsWithApprovals/README.md @@ -25,6 +25,7 @@ $env:FOUNDRY_MODEL="gpt-5.4-mini" ## Run the sample ```powershell -cd dotnet/samples/02-agents/AgentsWithFoundry +cd dotnet/samples/02-agents/AgentProviders/foundry dotnet run --project .\Agent_Step04_UsingFunctionToolsWithApprovals ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step05_StructuredOutput/Agent_Step05_StructuredOutput.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step05_StructuredOutput/Agent_Step05_StructuredOutput.csproj similarity index 70% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step05_StructuredOutput/Agent_Step05_StructuredOutput.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step05_StructuredOutput/Agent_Step05_StructuredOutput.csproj index 6b4cb8f43e4..1ea7ea49c00 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step05_StructuredOutput/Agent_Step05_StructuredOutput.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step05_StructuredOutput/Agent_Step05_StructuredOutput.csproj @@ -9,7 +9,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step05_StructuredOutput/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step05_StructuredOutput/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step05_StructuredOutput/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step05_StructuredOutput/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step05_StructuredOutput/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step05_StructuredOutput/README.md similarity index 94% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step05_StructuredOutput/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step05_StructuredOutput/README.md index 48e5697f600..1cbc9284a58 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step05_StructuredOutput/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step05_StructuredOutput/README.md @@ -24,6 +24,7 @@ $env:FOUNDRY_MODEL="gpt-5.4-mini" ## Run the sample ```powershell -cd dotnet/samples/02-agents/AgentsWithFoundry +cd dotnet/samples/02-agents/AgentProviders/foundry dotnet run --project .\Agent_Step05_StructuredOutput ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step06_PersistedConversations/Agent_Step06_PersistedConversations.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step06_PersistedConversations/Agent_Step06_PersistedConversations.csproj similarity index 70% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step06_PersistedConversations/Agent_Step06_PersistedConversations.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step06_PersistedConversations/Agent_Step06_PersistedConversations.csproj index 6b4cb8f43e4..1ea7ea49c00 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step06_PersistedConversations/Agent_Step06_PersistedConversations.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step06_PersistedConversations/Agent_Step06_PersistedConversations.csproj @@ -9,7 +9,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step06_PersistedConversations/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step06_PersistedConversations/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step06_PersistedConversations/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step06_PersistedConversations/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step06_PersistedConversations/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step06_PersistedConversations/README.md similarity index 94% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step06_PersistedConversations/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step06_PersistedConversations/README.md index 3b572503e84..097082fb8b6 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step06_PersistedConversations/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step06_PersistedConversations/README.md @@ -25,6 +25,7 @@ $env:FOUNDRY_MODEL="gpt-5.4-mini" ## Run the sample ```powershell -cd dotnet/samples/02-agents/AgentsWithFoundry +cd dotnet/samples/02-agents/AgentProviders/foundry dotnet run --project .\Agent_Step06_PersistedConversations ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step07_Observability/Agent_Step07_Observability.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step07_Observability/Agent_Step07_Observability.csproj similarity index 80% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step07_Observability/Agent_Step07_Observability.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step07_Observability/Agent_Step07_Observability.csproj index 60190545a1d..64eacb38714 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step07_Observability/Agent_Step07_Observability.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step07_Observability/Agent_Step07_Observability.csproj @@ -15,7 +15,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step07_Observability/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step07_Observability/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step07_Observability/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step07_Observability/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step07_Observability/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step07_Observability/README.md similarity index 94% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step07_Observability/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step07_Observability/README.md index 760f2d27dc1..568ff460c3b 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step07_Observability/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step07_Observability/README.md @@ -26,6 +26,7 @@ $env:APPLICATIONINSIGHTS_CONNECTION_STRING="..." # Optional ## Run the sample ```powershell -cd dotnet/samples/02-agents/AgentsWithFoundry +cd dotnet/samples/02-agents/AgentProviders/foundry dotnet run --project .\Agent_Step07_Observability ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step08_DependencyInjection/Agent_Step08_DependencyInjection.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step08_DependencyInjection/Agent_Step08_DependencyInjection.csproj similarity index 77% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step08_DependencyInjection/Agent_Step08_DependencyInjection.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step08_DependencyInjection/Agent_Step08_DependencyInjection.csproj index fd548820354..5e3ec0e755f 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step08_DependencyInjection/Agent_Step08_DependencyInjection.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step08_DependencyInjection/Agent_Step08_DependencyInjection.csproj @@ -15,7 +15,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step08_DependencyInjection/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step08_DependencyInjection/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step08_DependencyInjection/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step08_DependencyInjection/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step08_DependencyInjection/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step08_DependencyInjection/README.md similarity index 94% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step08_DependencyInjection/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step08_DependencyInjection/README.md index cb20f43bbfd..46418f89b22 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step08_DependencyInjection/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step08_DependencyInjection/README.md @@ -25,6 +25,7 @@ $env:FOUNDRY_MODEL="gpt-5.4-mini" ## Run the sample ```powershell -cd dotnet/samples/02-agents/AgentsWithFoundry +cd dotnet/samples/02-agents/AgentProviders/foundry dotnet run --project .\Agent_Step08_DependencyInjection ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step09_UsingMcpClientAsTools/Agent_Step09_UsingMcpClientAsTools.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step09_UsingMcpClientAsTools/Agent_Step09_UsingMcpClientAsTools.csproj similarity index 65% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step09_UsingMcpClientAsTools/Agent_Step09_UsingMcpClientAsTools.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step09_UsingMcpClientAsTools/Agent_Step09_UsingMcpClientAsTools.csproj index 1f596a94a10..d6bf3a3b7a4 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step09_UsingMcpClientAsTools/Agent_Step09_UsingMcpClientAsTools.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step09_UsingMcpClientAsTools/Agent_Step09_UsingMcpClientAsTools.csproj @@ -14,8 +14,8 @@ - - + + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step09_UsingMcpClientAsTools/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step09_UsingMcpClientAsTools/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step09_UsingMcpClientAsTools/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step09_UsingMcpClientAsTools/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step09_UsingMcpClientAsTools/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step09_UsingMcpClientAsTools/README.md similarity index 99% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step09_UsingMcpClientAsTools/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step09_UsingMcpClientAsTools/README.md index 378d72c4089..aa5394f8afd 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step09_UsingMcpClientAsTools/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step09_UsingMcpClientAsTools/README.md @@ -27,3 +27,4 @@ $env:FOUNDRY_MODEL="gpt-5.4-mini" ```powershell dotnet run ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step10_UsingImages/Agent_Step10_UsingImages.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step10_UsingImages/Agent_Step10_UsingImages.csproj similarity index 78% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step10_UsingImages/Agent_Step10_UsingImages.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step10_UsingImages/Agent_Step10_UsingImages.csproj index c2bb03bffd3..72d624f5236 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step10_UsingImages/Agent_Step10_UsingImages.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step10_UsingImages/Agent_Step10_UsingImages.csproj @@ -9,7 +9,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step10_UsingImages/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step10_UsingImages/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step10_UsingImages/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step10_UsingImages/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step10_UsingImages/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step10_UsingImages/README.md similarity index 94% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step10_UsingImages/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step10_UsingImages/README.md index 8bd095e99af..761038d5a99 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step10_UsingImages/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step10_UsingImages/README.md @@ -25,6 +25,7 @@ $env:FOUNDRY_MODEL="gpt-5.4-mini" ## Run the sample ```powershell -cd dotnet/samples/02-agents/AgentsWithFoundry +cd dotnet/samples/02-agents/AgentProviders/foundry dotnet run --project .\Agent_Step10_UsingImages ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step10_UsingImages/assets/walkway.jpg b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step10_UsingImages/assets/walkway.jpg similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step10_UsingImages/assets/walkway.jpg rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step10_UsingImages/assets/walkway.jpg diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step11_AsFunctionTool/Agent_Step11_AsFunctionTool.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step11_AsFunctionTool/Agent_Step11_AsFunctionTool.csproj similarity index 70% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step11_AsFunctionTool/Agent_Step11_AsFunctionTool.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step11_AsFunctionTool/Agent_Step11_AsFunctionTool.csproj index 6b4cb8f43e4..1ea7ea49c00 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step11_AsFunctionTool/Agent_Step11_AsFunctionTool.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step11_AsFunctionTool/Agent_Step11_AsFunctionTool.csproj @@ -9,7 +9,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step11_AsFunctionTool/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step11_AsFunctionTool/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step11_AsFunctionTool/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step11_AsFunctionTool/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step11_AsFunctionTool/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step11_AsFunctionTool/README.md similarity index 94% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step11_AsFunctionTool/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step11_AsFunctionTool/README.md index 793235b5acb..d785fd6c7af 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step11_AsFunctionTool/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step11_AsFunctionTool/README.md @@ -25,6 +25,7 @@ $env:FOUNDRY_MODEL="gpt-5.4-mini" ## Run the sample ```powershell -cd dotnet/samples/02-agents/AgentsWithFoundry +cd dotnet/samples/02-agents/AgentProviders/foundry dotnet run --project .\Agent_Step11_AsFunctionTool ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step12_Middleware/Agent_Step12_Middleware.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step12_Middleware/Agent_Step12_Middleware.csproj similarity index 76% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step12_Middleware/Agent_Step12_Middleware.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step12_Middleware/Agent_Step12_Middleware.csproj index d1cfe0da4a2..43cdc2a1668 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step12_Middleware/Agent_Step12_Middleware.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step12_Middleware/Agent_Step12_Middleware.csproj @@ -13,7 +13,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step12_Middleware/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step12_Middleware/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step12_Middleware/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step12_Middleware/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step12_Middleware/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step12_Middleware/README.md similarity index 95% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step12_Middleware/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step12_Middleware/README.md index 58d59086a7f..58450262ad6 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step12_Middleware/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step12_Middleware/README.md @@ -26,6 +26,7 @@ $env:FOUNDRY_MODEL="gpt-5.4-mini" ## Run the sample ```powershell -cd dotnet/samples/02-agents/AgentsWithFoundry +cd dotnet/samples/02-agents/AgentProviders/foundry dotnet run --project .\Agent_Step12_Middleware ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step13_Plugins/Agent_Step13_Plugins.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step13_Plugins/Agent_Step13_Plugins.csproj similarity index 79% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step13_Plugins/Agent_Step13_Plugins.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step13_Plugins/Agent_Step13_Plugins.csproj index 5dfa730c8a6..a10e9c9e546 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step13_Plugins/Agent_Step13_Plugins.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step13_Plugins/Agent_Step13_Plugins.csproj @@ -15,7 +15,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step13_Plugins/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step13_Plugins/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step13_Plugins/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step13_Plugins/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step13_Plugins/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step13_Plugins/README.md similarity index 99% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step13_Plugins/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step13_Plugins/README.md index 1c8d0782047..4e0f91715a5 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step13_Plugins/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step13_Plugins/README.md @@ -27,3 +27,4 @@ $env:FOUNDRY_MODEL="gpt-5.4-mini" ```powershell dotnet run ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step14_CodeInterpreter/Agent_Step14_CodeInterpreter.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step14_CodeInterpreter/Agent_Step14_CodeInterpreter.csproj similarity index 75% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step14_CodeInterpreter/Agent_Step14_CodeInterpreter.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step14_CodeInterpreter/Agent_Step14_CodeInterpreter.csproj index 7d91cedca52..b00975905a4 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step14_CodeInterpreter/Agent_Step14_CodeInterpreter.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step14_CodeInterpreter/Agent_Step14_CodeInterpreter.csproj @@ -13,7 +13,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step14_CodeInterpreter/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step14_CodeInterpreter/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step14_CodeInterpreter/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step14_CodeInterpreter/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step14_CodeInterpreter/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step14_CodeInterpreter/README.md similarity index 99% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step14_CodeInterpreter/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step14_CodeInterpreter/README.md index e339acb934c..356d50a02f5 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step14_CodeInterpreter/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step14_CodeInterpreter/README.md @@ -26,3 +26,4 @@ $env:FOUNDRY_MODEL="gpt-5.4-mini" ```powershell dotnet run ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step15_ComputerUse/Agent_Step15_ComputerUse.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step15_ComputerUse/Agent_Step15_ComputerUse.csproj similarity index 88% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step15_ComputerUse/Agent_Step15_ComputerUse.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step15_ComputerUse/Agent_Step15_ComputerUse.csproj index 9b717d9447d..a3f494a1b46 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step15_ComputerUse/Agent_Step15_ComputerUse.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step15_ComputerUse/Agent_Step15_ComputerUse.csproj @@ -15,7 +15,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step15_ComputerUse/Assets/cua_browser_search.jpg b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step15_ComputerUse/Assets/cua_browser_search.jpg similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step15_ComputerUse/Assets/cua_browser_search.jpg rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step15_ComputerUse/Assets/cua_browser_search.jpg diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step15_ComputerUse/Assets/cua_search_results.jpg b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step15_ComputerUse/Assets/cua_search_results.jpg similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step15_ComputerUse/Assets/cua_search_results.jpg rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step15_ComputerUse/Assets/cua_search_results.jpg diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step15_ComputerUse/Assets/cua_search_typed.jpg b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step15_ComputerUse/Assets/cua_search_typed.jpg similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step15_ComputerUse/Assets/cua_search_typed.jpg rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step15_ComputerUse/Assets/cua_search_typed.jpg diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step15_ComputerUse/ComputerUseUtil.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step15_ComputerUse/ComputerUseUtil.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step15_ComputerUse/ComputerUseUtil.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step15_ComputerUse/ComputerUseUtil.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step15_ComputerUse/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step15_ComputerUse/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step15_ComputerUse/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step15_ComputerUse/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step15_ComputerUse/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step15_ComputerUse/README.md similarity index 99% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step15_ComputerUse/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step15_ComputerUse/README.md index 85ceb4c4152..414bd55522c 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step15_ComputerUse/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step15_ComputerUse/README.md @@ -53,3 +53,4 @@ $env:AZURE_AI_COMPUTER_USE_DEPLOYMENT_NAME="computer-use-preview" ```powershell dotnet run ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step16_FileSearch/Agent_Step16_FileSearch.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step16_FileSearch/Agent_Step16_FileSearch.csproj similarity index 75% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step16_FileSearch/Agent_Step16_FileSearch.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step16_FileSearch/Agent_Step16_FileSearch.csproj index 7d91cedca52..b00975905a4 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step16_FileSearch/Agent_Step16_FileSearch.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step16_FileSearch/Agent_Step16_FileSearch.csproj @@ -13,7 +13,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step16_FileSearch/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step16_FileSearch/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step16_FileSearch/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step16_FileSearch/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step16_FileSearch/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step16_FileSearch/README.md similarity index 99% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step16_FileSearch/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step16_FileSearch/README.md index 6009492113c..cf0c8584688 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step16_FileSearch/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step16_FileSearch/README.md @@ -27,3 +27,4 @@ $env:FOUNDRY_MODEL="gpt-5.4-mini" ```powershell dotnet run ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step17_OpenAPITools/Agent_Step17_OpenAPITools.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step17_OpenAPITools/Agent_Step17_OpenAPITools.csproj similarity index 61% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step17_OpenAPITools/Agent_Step17_OpenAPITools.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step17_OpenAPITools/Agent_Step17_OpenAPITools.csproj index 8671b3027c1..feb74168cd2 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step17_OpenAPITools/Agent_Step17_OpenAPITools.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step17_OpenAPITools/Agent_Step17_OpenAPITools.csproj @@ -13,8 +13,8 @@ - - + + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step17_OpenAPITools/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step17_OpenAPITools/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step17_OpenAPITools/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step17_OpenAPITools/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step17_OpenAPITools/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step17_OpenAPITools/README.md similarity index 99% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step17_OpenAPITools/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step17_OpenAPITools/README.md index 0bc08c21f24..28e66fcc9dd 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step17_OpenAPITools/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step17_OpenAPITools/README.md @@ -27,3 +27,4 @@ $env:FOUNDRY_MODEL="gpt-5.4-mini" ```powershell dotnet run ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step18_BingCustomSearch/Agent_Step18_BingCustomSearch.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step18_BingCustomSearch/Agent_Step18_BingCustomSearch.csproj similarity index 75% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step18_BingCustomSearch/Agent_Step18_BingCustomSearch.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step18_BingCustomSearch/Agent_Step18_BingCustomSearch.csproj index 7d91cedca52..b00975905a4 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step18_BingCustomSearch/Agent_Step18_BingCustomSearch.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step18_BingCustomSearch/Agent_Step18_BingCustomSearch.csproj @@ -13,7 +13,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step18_BingCustomSearch/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step18_BingCustomSearch/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step18_BingCustomSearch/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step18_BingCustomSearch/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step18_BingCustomSearch/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step18_BingCustomSearch/README.md similarity index 99% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step18_BingCustomSearch/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step18_BingCustomSearch/README.md index 8174ca32f80..c563a521530 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step18_BingCustomSearch/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step18_BingCustomSearch/README.md @@ -34,3 +34,4 @@ $env:AZURE_AI_CUSTOM_SEARCH_INSTANCE_NAME="your-instance-name" # The Bing Custo ```powershell dotnet run ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step19_SharePoint/Agent_Step19_SharePoint.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step19_SharePoint/Agent_Step19_SharePoint.csproj similarity index 75% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step19_SharePoint/Agent_Step19_SharePoint.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step19_SharePoint/Agent_Step19_SharePoint.csproj index 7d91cedca52..b00975905a4 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step19_SharePoint/Agent_Step19_SharePoint.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step19_SharePoint/Agent_Step19_SharePoint.csproj @@ -13,7 +13,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step19_SharePoint/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step19_SharePoint/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step19_SharePoint/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step19_SharePoint/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step19_SharePoint/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step19_SharePoint/README.md similarity index 99% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step19_SharePoint/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step19_SharePoint/README.md index 12d58cf6c18..9f1ceb1ed9e 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step19_SharePoint/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step19_SharePoint/README.md @@ -28,3 +28,4 @@ $env:SHAREPOINT_PROJECT_CONNECTION_ID="your-sharepoint-connection-id" # The ful ```powershell dotnet run ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step20_MicrosoftFabric/Agent_Step20_MicrosoftFabric.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step20_MicrosoftFabric/Agent_Step20_MicrosoftFabric.csproj similarity index 75% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step20_MicrosoftFabric/Agent_Step20_MicrosoftFabric.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step20_MicrosoftFabric/Agent_Step20_MicrosoftFabric.csproj index 7d91cedca52..b00975905a4 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step20_MicrosoftFabric/Agent_Step20_MicrosoftFabric.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step20_MicrosoftFabric/Agent_Step20_MicrosoftFabric.csproj @@ -13,7 +13,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step20_MicrosoftFabric/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step20_MicrosoftFabric/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step20_MicrosoftFabric/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step20_MicrosoftFabric/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step20_MicrosoftFabric/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step20_MicrosoftFabric/README.md similarity index 99% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step20_MicrosoftFabric/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step20_MicrosoftFabric/README.md index 0d848ca1e55..eaf035ebdad 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step20_MicrosoftFabric/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step20_MicrosoftFabric/README.md @@ -28,3 +28,4 @@ $env:FABRIC_PROJECT_CONNECTION_ID="your-fabric-connection-id" # The full ARM re ```powershell dotnet run ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step21_WebSearch/Agent_Step21_WebSearch.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step21_WebSearch/Agent_Step21_WebSearch.csproj similarity index 75% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step21_WebSearch/Agent_Step21_WebSearch.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step21_WebSearch/Agent_Step21_WebSearch.csproj index 7d91cedca52..b00975905a4 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step21_WebSearch/Agent_Step21_WebSearch.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step21_WebSearch/Agent_Step21_WebSearch.csproj @@ -13,7 +13,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step21_WebSearch/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step21_WebSearch/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step21_WebSearch/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step21_WebSearch/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step21_WebSearch/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step21_WebSearch/README.md similarity index 99% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step21_WebSearch/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step21_WebSearch/README.md index 3b4ea1b4292..09f39cb498d 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step21_WebSearch/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step21_WebSearch/README.md @@ -26,3 +26,4 @@ $env:FOUNDRY_MODEL="gpt-5.4-mini" ```powershell dotnet run ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step22_MemorySearch/Agent_Step22_MemorySearch.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step22_MemorySearch/Agent_Step22_MemorySearch.csproj similarity index 61% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step22_MemorySearch/Agent_Step22_MemorySearch.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step22_MemorySearch/Agent_Step22_MemorySearch.csproj index 8671b3027c1..feb74168cd2 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step22_MemorySearch/Agent_Step22_MemorySearch.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step22_MemorySearch/Agent_Step22_MemorySearch.csproj @@ -13,8 +13,8 @@ - - + + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step22_MemorySearch/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step22_MemorySearch/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step22_MemorySearch/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step22_MemorySearch/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step22_MemorySearch/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step22_MemorySearch/README.md similarity index 99% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step22_MemorySearch/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step22_MemorySearch/README.md index b6293eb6748..46698dfbfa0 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step22_MemorySearch/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step22_MemorySearch/README.md @@ -29,3 +29,4 @@ $env:AZURE_AI_MEMORY_STORE_ID="your-memory-store-name" ```powershell dotnet run ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step23_LocalMCP/Agent_Step23_LocalMCP.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step23_LocalMCP/Agent_Step23_LocalMCP.csproj similarity index 77% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step23_LocalMCP/Agent_Step23_LocalMCP.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step23_LocalMCP/Agent_Step23_LocalMCP.csproj index 53b8a3af34e..f404e71a45f 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step23_LocalMCP/Agent_Step23_LocalMCP.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step23_LocalMCP/Agent_Step23_LocalMCP.csproj @@ -14,7 +14,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step23_LocalMCP/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step23_LocalMCP/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step23_LocalMCP/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step23_LocalMCP/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step23_LocalMCP/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step23_LocalMCP/README.md similarity index 99% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step23_LocalMCP/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step23_LocalMCP/README.md index 3c37a9e50a5..d06fa6685b3 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step23_LocalMCP/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step23_LocalMCP/README.md @@ -27,3 +27,4 @@ $env:FOUNDRY_MODEL="gpt-5.4-mini" ```powershell dotnet run ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step24_CodeInterpreterFileDownload/Agent_Step24_CodeInterpreterFileDownload.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step24_CodeInterpreterFileDownload/Agent_Step24_CodeInterpreterFileDownload.csproj similarity index 67% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step24_CodeInterpreterFileDownload/Agent_Step24_CodeInterpreterFileDownload.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step24_CodeInterpreterFileDownload/Agent_Step24_CodeInterpreterFileDownload.csproj index 129c9026a2b..b00975905a4 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step24_CodeInterpreterFileDownload/Agent_Step24_CodeInterpreterFileDownload.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step24_CodeInterpreterFileDownload/Agent_Step24_CodeInterpreterFileDownload.csproj @@ -1,4 +1,4 @@ - + Exe @@ -13,7 +13,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step24_CodeInterpreterFileDownload/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step24_CodeInterpreterFileDownload/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step24_CodeInterpreterFileDownload/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step24_CodeInterpreterFileDownload/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step24_CodeInterpreterFileDownload/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step24_CodeInterpreterFileDownload/README.md similarity index 93% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step24_CodeInterpreterFileDownload/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step24_CodeInterpreterFileDownload/README.md index a74123d7113..8526a628750 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step24_CodeInterpreterFileDownload/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step24_CodeInterpreterFileDownload/README.md @@ -52,5 +52,6 @@ dotnet run ## See also -- [Code Interpreter File Download with OpenAI](../../../02-agents/AgentWithOpenAI/Agent_OpenAI_Step06_CodeInterpreterFileDownload/) — same scenario using Public OpenAI +- [Code Interpreter File Download with OpenAI](../../openai/Agent_OpenAI_Step06_CodeInterpreterFileDownload/) — same scenario using Public OpenAI - [Code Interpreter](../Agent_Step14_CodeInterpreter/) — Code Interpreter without file download + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step25_FoundryToolboxMcp/Agent_Step25_FoundryToolboxMcp.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step25_FoundryToolboxMcp/Agent_Step25_FoundryToolboxMcp.csproj similarity index 79% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step25_FoundryToolboxMcp/Agent_Step25_FoundryToolboxMcp.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step25_FoundryToolboxMcp/Agent_Step25_FoundryToolboxMcp.csproj index cedd4d5b619..c4972536eed 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step25_FoundryToolboxMcp/Agent_Step25_FoundryToolboxMcp.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step25_FoundryToolboxMcp/Agent_Step25_FoundryToolboxMcp.csproj @@ -15,7 +15,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step25_FoundryToolboxMcp/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step25_FoundryToolboxMcp/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step25_FoundryToolboxMcp/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step25_FoundryToolboxMcp/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step25_FoundryToolboxMcp/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step25_FoundryToolboxMcp/README.md similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step25_FoundryToolboxMcp/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step25_FoundryToolboxMcp/README.md diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step26_FoundryToolboxMcpSkills/Agent_Step26_FoundryToolboxMcpSkills.csproj b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step26_FoundryToolboxMcpSkills/Agent_Step26_FoundryToolboxMcpSkills.csproj similarity index 67% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step26_FoundryToolboxMcpSkills/Agent_Step26_FoundryToolboxMcpSkills.csproj rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step26_FoundryToolboxMcpSkills/Agent_Step26_FoundryToolboxMcpSkills.csproj index 5243b24af05..78eb7c3c789 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step26_FoundryToolboxMcpSkills/Agent_Step26_FoundryToolboxMcpSkills.csproj +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step26_FoundryToolboxMcpSkills/Agent_Step26_FoundryToolboxMcpSkills.csproj @@ -15,8 +15,8 @@ - - + + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step26_FoundryToolboxMcpSkills/Program.cs b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step26_FoundryToolboxMcpSkills/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step26_FoundryToolboxMcpSkills/Program.cs rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step26_FoundryToolboxMcpSkills/Program.cs diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step26_FoundryToolboxMcpSkills/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step26_FoundryToolboxMcpSkills/README.md similarity index 99% rename from dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step26_FoundryToolboxMcpSkills/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step26_FoundryToolboxMcpSkills/README.md index fc7ff655cc5..534c8419a7a 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step26_FoundryToolboxMcpSkills/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step26_FoundryToolboxMcpSkills/README.md @@ -30,3 +30,4 @@ $env:FOUNDRY_TOOLBOX_MCP_SERVER_URL="https://your-foundry-service.services.ai.az ```powershell dotnet run ``` + diff --git a/dotnet/samples/02-agents/AgentsWithFoundry/README.md b/dotnet/samples/02-agents/AgentProviders/foundry/README.md similarity index 92% rename from dotnet/samples/02-agents/AgentsWithFoundry/README.md rename to dotnet/samples/02-agents/AgentProviders/foundry/README.md index e90f92c2a23..eaae6be594f 100644 --- a/dotnet/samples/02-agents/AgentsWithFoundry/README.md +++ b/dotnet/samples/02-agents/AgentProviders/foundry/README.md @@ -73,16 +73,18 @@ Some samples require extra tool-specific environment variables. See each sample | [Memory search](./Agent_Step22_MemorySearch/) | Memory search tool | | [Local MCP](./Agent_Step23_LocalMCP/) | Local MCP client with HTTP transport | | [Code interpreter file download](./Agent_Step24_CodeInterpreterFileDownload/) | Download container files generated by code interpreter | -| [Foundry toolbox via MCP](./Agent_Step25_FoundryToolboxMcp/) | Use a Foundry Toolbox from a non-hosted agent via its MCP endpoint | -| [Foundry toolbox MCP skills](./Agent_Step26_FoundryToolboxMcpSkills/) | Use a Foundry Toolbox with MCP-based skills discovery (SEP-2640) via AIContextProviders | +| [Foundry toolbox via MCP](./Agent_Step25_FoundryToolboxMcp/README.md) | Use a Foundry Toolbox from a non-hosted agent via its MCP endpoint | +| [Foundry toolbox MCP skills](./Agent_Step26_FoundryToolboxMcpSkills/README.md) | Use a Foundry Toolbox with MCP-based skills discovery (SEP-2640) via AIContextProviders | ## Running the samples Use the basics sample for a quick smoke test: ```powershell -cd dotnet/samples/02-agents/AgentsWithFoundry +cd dotnet/samples/02-agents/AgentProviders/foundry dotnet run --project .\Agent_Step01_Basics ``` If you want to exercise the full create-run-delete lifecycle, run `Agent_Step00_FoundryAgentLifecycle`. + + diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_GitHubCopilot/Agent_With_GitHubCopilot.csproj b/dotnet/samples/02-agents/AgentProviders/github-copilot/Agent_With_GitHubCopilot/Agent_With_GitHubCopilot.csproj similarity index 75% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_GitHubCopilot/Agent_With_GitHubCopilot.csproj rename to dotnet/samples/02-agents/AgentProviders/github-copilot/Agent_With_GitHubCopilot/Agent_With_GitHubCopilot.csproj index 7c4592f1dd5..f9e3c1f2ee2 100644 --- a/dotnet/samples/02-agents/AgentProviders/Agent_With_GitHubCopilot/Agent_With_GitHubCopilot.csproj +++ b/dotnet/samples/02-agents/AgentProviders/github-copilot/Agent_With_GitHubCopilot/Agent_With_GitHubCopilot.csproj @@ -14,7 +14,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_GitHubCopilot/Program.cs b/dotnet/samples/02-agents/AgentProviders/github-copilot/Agent_With_GitHubCopilot/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_GitHubCopilot/Program.cs rename to dotnet/samples/02-agents/AgentProviders/github-copilot/Agent_With_GitHubCopilot/Program.cs diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_GitHubCopilot/README.md b/dotnet/samples/02-agents/AgentProviders/github-copilot/Agent_With_GitHubCopilot/README.md similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_GitHubCopilot/README.md rename to dotnet/samples/02-agents/AgentProviders/github-copilot/Agent_With_GitHubCopilot/README.md diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_GoogleGemini/Agent_With_GoogleGemini.csproj b/dotnet/samples/02-agents/AgentProviders/google-gemini/Agent_With_GoogleGemini/Agent_With_GoogleGemini.csproj similarity index 86% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_GoogleGemini/Agent_With_GoogleGemini.csproj rename to dotnet/samples/02-agents/AgentProviders/google-gemini/Agent_With_GoogleGemini/Agent_With_GoogleGemini.csproj index d01f015a4b9..d88639df1a3 100644 --- a/dotnet/samples/02-agents/AgentProviders/Agent_With_GoogleGemini/Agent_With_GoogleGemini.csproj +++ b/dotnet/samples/02-agents/AgentProviders/google-gemini/Agent_With_GoogleGemini/Agent_With_GoogleGemini.csproj @@ -19,7 +19,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_GoogleGemini/Program.cs b/dotnet/samples/02-agents/AgentProviders/google-gemini/Agent_With_GoogleGemini/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_GoogleGemini/Program.cs rename to dotnet/samples/02-agents/AgentProviders/google-gemini/Agent_With_GoogleGemini/Program.cs diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_GoogleGemini/README.md b/dotnet/samples/02-agents/AgentProviders/google-gemini/Agent_With_GoogleGemini/README.md similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_GoogleGemini/README.md rename to dotnet/samples/02-agents/AgentProviders/google-gemini/Agent_With_GoogleGemini/README.md diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_Ollama/Agent_With_Ollama.csproj b/dotnet/samples/02-agents/AgentProviders/ollama/Agent_With_Ollama/Agent_With_Ollama.csproj similarity index 77% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_Ollama/Agent_With_Ollama.csproj rename to dotnet/samples/02-agents/AgentProviders/ollama/Agent_With_Ollama/Agent_With_Ollama.csproj index c538cbedd1b..be6ab089fea 100644 --- a/dotnet/samples/02-agents/AgentProviders/Agent_With_Ollama/Agent_With_Ollama.csproj +++ b/dotnet/samples/02-agents/AgentProviders/ollama/Agent_With_Ollama/Agent_With_Ollama.csproj @@ -13,7 +13,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_Ollama/Program.cs b/dotnet/samples/02-agents/AgentProviders/ollama/Agent_With_Ollama/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_Ollama/Program.cs rename to dotnet/samples/02-agents/AgentProviders/ollama/Agent_With_Ollama/Program.cs diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_Ollama/README.md b/dotnet/samples/02-agents/AgentProviders/ollama/Agent_With_Ollama/README.md similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_Ollama/README.md rename to dotnet/samples/02-agents/AgentProviders/ollama/Agent_With_Ollama/README.md diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_ONNX/Agent_With_ONNX.csproj b/dotnet/samples/02-agents/AgentProviders/onnx/Agent_With_ONNX/Agent_With_ONNX.csproj similarity index 78% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_ONNX/Agent_With_ONNX.csproj rename to dotnet/samples/02-agents/AgentProviders/onnx/Agent_With_ONNX/Agent_With_ONNX.csproj index 61acc80e9cb..fff9aff62ab 100644 --- a/dotnet/samples/02-agents/AgentProviders/Agent_With_ONNX/Agent_With_ONNX.csproj +++ b/dotnet/samples/02-agents/AgentProviders/onnx/Agent_With_ONNX/Agent_With_ONNX.csproj @@ -13,7 +13,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_ONNX/Program.cs b/dotnet/samples/02-agents/AgentProviders/onnx/Agent_With_ONNX/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_ONNX/Program.cs rename to dotnet/samples/02-agents/AgentProviders/onnx/Agent_With_ONNX/Program.cs diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_ONNX/README.md b/dotnet/samples/02-agents/AgentProviders/onnx/Agent_With_ONNX/README.md similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_ONNX/README.md rename to dotnet/samples/02-agents/AgentProviders/onnx/Agent_With_ONNX/README.md diff --git a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step01_Running/Agent_OpenAI_Step01_Running.csproj b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step01_Running/Agent_OpenAI_Step01_Running.csproj similarity index 70% rename from dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step01_Running/Agent_OpenAI_Step01_Running.csproj rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step01_Running/Agent_OpenAI_Step01_Running.csproj index eeda3eef6f4..0c1979c57a6 100644 --- a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step01_Running/Agent_OpenAI_Step01_Running.csproj +++ b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step01_Running/Agent_OpenAI_Step01_Running.csproj @@ -9,7 +9,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step01_Running/Program.cs b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step01_Running/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step01_Running/Program.cs rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step01_Running/Program.cs diff --git a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step02_Reasoning/Agent_OpenAI_Step02_Reasoning.csproj b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step02_Reasoning/Agent_OpenAI_Step02_Reasoning.csproj similarity index 70% rename from dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step02_Reasoning/Agent_OpenAI_Step02_Reasoning.csproj rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step02_Reasoning/Agent_OpenAI_Step02_Reasoning.csproj index 78f09816769..fde5e59313e 100644 --- a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step02_Reasoning/Agent_OpenAI_Step02_Reasoning.csproj +++ b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step02_Reasoning/Agent_OpenAI_Step02_Reasoning.csproj @@ -9,7 +9,7 @@ - + \ No newline at end of file diff --git a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step02_Reasoning/Program.cs b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step02_Reasoning/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step02_Reasoning/Program.cs rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step02_Reasoning/Program.cs diff --git a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step03_CreateFromChatClient/Agent_OpenAI_Step03_CreateFromChatClient.csproj b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step03_CreateFromChatClient/Agent_OpenAI_Step03_CreateFromChatClient.csproj similarity index 70% rename from dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step03_CreateFromChatClient/Agent_OpenAI_Step03_CreateFromChatClient.csproj rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step03_CreateFromChatClient/Agent_OpenAI_Step03_CreateFromChatClient.csproj index eeda3eef6f4..0c1979c57a6 100644 --- a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step03_CreateFromChatClient/Agent_OpenAI_Step03_CreateFromChatClient.csproj +++ b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step03_CreateFromChatClient/Agent_OpenAI_Step03_CreateFromChatClient.csproj @@ -9,7 +9,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step03_CreateFromChatClient/OpenAIChatClientAgent.cs b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step03_CreateFromChatClient/OpenAIChatClientAgent.cs similarity index 100% rename from dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step03_CreateFromChatClient/OpenAIChatClientAgent.cs rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step03_CreateFromChatClient/OpenAIChatClientAgent.cs diff --git a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step03_CreateFromChatClient/Program.cs b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step03_CreateFromChatClient/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step03_CreateFromChatClient/Program.cs rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step03_CreateFromChatClient/Program.cs diff --git a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step03_CreateFromChatClient/README.md b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step03_CreateFromChatClient/README.md similarity index 100% rename from dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step03_CreateFromChatClient/README.md rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step03_CreateFromChatClient/README.md diff --git a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient.csproj b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient.csproj similarity index 70% rename from dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient.csproj rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient.csproj index eeda3eef6f4..0c1979c57a6 100644 --- a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient.csproj +++ b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient.csproj @@ -9,7 +9,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/OpenAIResponseClientAgent.cs b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/OpenAIResponseClientAgent.cs similarity index 100% rename from dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/OpenAIResponseClientAgent.cs rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/OpenAIResponseClientAgent.cs diff --git a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/Program.cs b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/Program.cs rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/Program.cs diff --git a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/README.md b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/README.md similarity index 100% rename from dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/README.md rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step04_CreateFromOpenAIResponseClient/README.md diff --git a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step05_Conversation/Agent_OpenAI_Step05_Conversation.csproj b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step05_Conversation/Agent_OpenAI_Step05_Conversation.csproj similarity index 70% rename from dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step05_Conversation/Agent_OpenAI_Step05_Conversation.csproj rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step05_Conversation/Agent_OpenAI_Step05_Conversation.csproj index eeda3eef6f4..0c1979c57a6 100644 --- a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step05_Conversation/Agent_OpenAI_Step05_Conversation.csproj +++ b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step05_Conversation/Agent_OpenAI_Step05_Conversation.csproj @@ -9,7 +9,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step05_Conversation/Program.cs b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step05_Conversation/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step05_Conversation/Program.cs rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step05_Conversation/Program.cs diff --git a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step05_Conversation/README.md b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step05_Conversation/README.md similarity index 100% rename from dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step05_Conversation/README.md rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step05_Conversation/README.md diff --git a/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step06_CodeInterpreterFileDownload/Agent_OpenAI_Step06_CodeInterpreterFileDownload.csproj b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step06_CodeInterpreterFileDownload/Agent_OpenAI_Step06_CodeInterpreterFileDownload.csproj new file mode 100644 index 00000000000..0c1979c57a6 --- /dev/null +++ b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step06_CodeInterpreterFileDownload/Agent_OpenAI_Step06_CodeInterpreterFileDownload.csproj @@ -0,0 +1,15 @@ + + + + Exe + net10.0 + + enable + enable + + + + + + + diff --git a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step06_CodeInterpreterFileDownload/Program.cs b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step06_CodeInterpreterFileDownload/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step06_CodeInterpreterFileDownload/Program.cs rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step06_CodeInterpreterFileDownload/Program.cs diff --git a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step06_CodeInterpreterFileDownload/README.md b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step06_CodeInterpreterFileDownload/README.md similarity index 83% rename from dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step06_CodeInterpreterFileDownload/README.md rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step06_CodeInterpreterFileDownload/README.md index 4ba457d0f85..dc4a2a87f21 100644 --- a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step06_CodeInterpreterFileDownload/README.md +++ b/dotnet/samples/02-agents/AgentProviders/openai/Agent_OpenAI_Step06_CodeInterpreterFileDownload/README.md @@ -1,4 +1,4 @@ -# Code Interpreter File Download (OpenAI) +# Code Interpreter File Download (OpenAI) This sample demonstrates how to download files generated by Code Interpreter when using the OpenAI Responses API. @@ -47,5 +47,5 @@ dotnet run ## See also -- [Code Interpreter File Download with Foundry](../../../02-agents/AgentsWithFoundry/Agent_Step24_CodeInterpreterFileDownload/) — same scenario using Microsoft Foundry -- [Code Interpreter](../../../02-agents/AgentsWithFoundry/Agent_Step14_CodeInterpreter/) — Code Interpreter without file download +- [Code Interpreter File Download with Foundry](../../foundry/Agent_Step24_CodeInterpreterFileDownload/) — same scenario using Microsoft Foundry +- [Code Interpreter](../../foundry/Agent_Step14_CodeInterpreter/) — Code Interpreter without file download diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_OpenAIChatCompletion/Agent_With_OpenAIChatCompletion.csproj b/dotnet/samples/02-agents/AgentProviders/openai/Agent_With_OpenAIChatCompletion/Agent_With_OpenAIChatCompletion.csproj similarity index 70% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_OpenAIChatCompletion/Agent_With_OpenAIChatCompletion.csproj rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_With_OpenAIChatCompletion/Agent_With_OpenAIChatCompletion.csproj index 4ea7a45b8a6..db59a3a61b6 100644 --- a/dotnet/samples/02-agents/AgentProviders/Agent_With_OpenAIChatCompletion/Agent_With_OpenAIChatCompletion.csproj +++ b/dotnet/samples/02-agents/AgentProviders/openai/Agent_With_OpenAIChatCompletion/Agent_With_OpenAIChatCompletion.csproj @@ -9,7 +9,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_OpenAIChatCompletion/Program.cs b/dotnet/samples/02-agents/AgentProviders/openai/Agent_With_OpenAIChatCompletion/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_OpenAIChatCompletion/Program.cs rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_With_OpenAIChatCompletion/Program.cs diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_OpenAIChatCompletion/README.md b/dotnet/samples/02-agents/AgentProviders/openai/Agent_With_OpenAIChatCompletion/README.md similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_OpenAIChatCompletion/README.md rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_With_OpenAIChatCompletion/README.md diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_OpenAIResponses/Agent_With_OpenAIResponses.csproj b/dotnet/samples/02-agents/AgentProviders/openai/Agent_With_OpenAIResponses/Agent_With_OpenAIResponses.csproj similarity index 70% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_OpenAIResponses/Agent_With_OpenAIResponses.csproj rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_With_OpenAIResponses/Agent_With_OpenAIResponses.csproj index eeda3eef6f4..0c1979c57a6 100644 --- a/dotnet/samples/02-agents/AgentProviders/Agent_With_OpenAIResponses/Agent_With_OpenAIResponses.csproj +++ b/dotnet/samples/02-agents/AgentProviders/openai/Agent_With_OpenAIResponses/Agent_With_OpenAIResponses.csproj @@ -9,7 +9,7 @@ - + diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_OpenAIResponses/Program.cs b/dotnet/samples/02-agents/AgentProviders/openai/Agent_With_OpenAIResponses/Program.cs similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_OpenAIResponses/Program.cs rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_With_OpenAIResponses/Program.cs diff --git a/dotnet/samples/02-agents/AgentProviders/Agent_With_OpenAIResponses/README.md b/dotnet/samples/02-agents/AgentProviders/openai/Agent_With_OpenAIResponses/README.md similarity index 100% rename from dotnet/samples/02-agents/AgentProviders/Agent_With_OpenAIResponses/README.md rename to dotnet/samples/02-agents/AgentProviders/openai/Agent_With_OpenAIResponses/README.md diff --git a/dotnet/samples/02-agents/AgentWithOpenAI/README.md b/dotnet/samples/02-agents/AgentProviders/openai/README.md similarity index 100% rename from dotnet/samples/02-agents/AgentWithOpenAI/README.md rename to dotnet/samples/02-agents/AgentProviders/openai/README.md diff --git a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step03_UsingFunctionTools/Agent_Anthropic_Step03_UsingFunctionTools.csproj b/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step03_UsingFunctionTools/Agent_Anthropic_Step03_UsingFunctionTools.csproj deleted file mode 100644 index fdb9a2f50f9..00000000000 --- a/dotnet/samples/02-agents/AgentWithAnthropic/Agent_Anthropic_Step03_UsingFunctionTools/Agent_Anthropic_Step03_UsingFunctionTools.csproj +++ /dev/null @@ -1,15 +0,0 @@ - - - - Exe - net10.0 - - enable - enable - - - - - - - diff --git a/dotnet/samples/02-agents/AgentWithMemory/README.md b/dotnet/samples/02-agents/AgentWithMemory/README.md index c7f45105047..3b9ee76928f 100644 --- a/dotnet/samples/02-agents/AgentWithMemory/README.md +++ b/dotnet/samples/02-agents/AgentWithMemory/README.md @@ -10,4 +10,5 @@ These samples show how to create an agent with the Agent Framework that uses Mem |[Memory with Microsoft Foundry](./AgentWithMemory_Step04_MemoryUsingFoundry/)|This sample demonstrates how to create and run an agent that uses Microsoft Foundry's managed memory service to extract and retrieve individual memories.| |[Bounded Chat History with Overflow](./AgentWithMemory_Step05_BoundedChatHistory/)|This sample demonstrates how to create a bounded chat history provider that overflows older messages to a vector store and recalls them as memories.| -> **See also**: [Memory Search with Foundry Agents](../AgentsWithFoundry/Agent_Step22_MemorySearch/) - demonstrates using the built-in Memory Search tool with Microsoft Foundry agents. +> **See also**: [Memory Search with Foundry Agents](../AgentProviders/foundry/Agent_Step22_MemorySearch/) - demonstrates using the built-in Memory Search tool with Microsoft Foundry agents. + diff --git a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step06_CodeInterpreterFileDownload/Agent_OpenAI_Step06_CodeInterpreterFileDownload.csproj b/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step06_CodeInterpreterFileDownload/Agent_OpenAI_Step06_CodeInterpreterFileDownload.csproj deleted file mode 100644 index 06380e8016e..00000000000 --- a/dotnet/samples/02-agents/AgentWithOpenAI/Agent_OpenAI_Step06_CodeInterpreterFileDownload/Agent_OpenAI_Step06_CodeInterpreterFileDownload.csproj +++ /dev/null @@ -1,15 +0,0 @@ - - - - Exe - net10.0 - - enable - enable - - - - - - - diff --git a/dotnet/samples/02-agents/README.md b/dotnet/samples/02-agents/README.md index 4e072f4b0fb..863593b5a5b 100644 --- a/dotnet/samples/02-agents/README.md +++ b/dotnet/samples/02-agents/README.md @@ -7,14 +7,14 @@ The getting started samples demonstrate the fundamental concepts and functionali | Sample | Description | | --- | --- | | [Agents](./Agents/README.md) | Step-by-step instructions for getting started with agents | -| [Agents with Foundry](./AgentsWithFoundry/README.md) | Foundry agent samples using `FoundryAgent` and `AIProjectClient.AsAIAgent(...)` | +| [Foundry](./AgentProviders/foundry/README.md) | Foundry agent samples using `FoundryAgent` and `AIProjectClient.AsAIAgent(...)` | | [Agent Providers](./AgentProviders/README.md) | Getting started with creating agents using various providers | | [Agents With Retrieval Augmented Generation (RAG)](./AgentWithRAG/README.md) | Adding Retrieval Augmented Generation (RAG) capabilities to your agents | | [Agents With Memory](./AgentWithMemory/README.md) | Adding memory capabilities to your agents | | [Agents With CodeAct (Hyperlight)](./AgentWithCodeAct/README.md) | Enabling sandboxed code execution (CodeAct) for your agents via Hyperlight | | [Agent Open Telemetry](./AgentOpenTelemetry/README.md) | Getting started with OpenTelemetry for agents | -| [Agent With OpenAI exchange types](./AgentWithOpenAI/README.md) | Using OpenAI exchange types with agents | -| [Agent With Anthropic](./AgentWithAnthropic/README.md) | Getting started with agents using Anthropic Claude | +| [OpenAI](./AgentProviders/openai/README.md) | Using OpenAI exchange types with agents | +| [Anthropic](./AgentProviders/anthropic/README.md) | Getting started with agents using Anthropic Claude | | [Model Context Protocol](./ModelContextProtocol/README.md) | Getting started with Model Context Protocol | | [Agent Skills](./AgentSkills/README.md) | Getting started with Agent Skills | | [Agent Harness with built-in tools](./Harness/README.md) | Demonstrating how to build an Agent Harness with built-in planning, todo, and mode management tooling | @@ -22,3 +22,4 @@ The getting started samples demonstrate the fundamental concepts and functionali | [AG-UI](./AGUI/README.md) | Getting started with AG-UI (Agent UI Protocol) servers and clients | | [Dev UI](./DevUI/README.md) | Interactive web interface for testing and debugging AI agents during development | | [A2A Agents](./A2A/README.md) | Working with Agent-to-Agent (A2A) specific features | + diff --git a/dotnet/samples/04-hosting/FoundryHostedAgents/responses/Hosted-Toolbox-AuthPaths/README.md b/dotnet/samples/04-hosting/FoundryHostedAgents/responses/Hosted-Toolbox-AuthPaths/README.md index e1cf78fc244..f1e80b09ed6 100644 --- a/dotnet/samples/04-hosting/FoundryHostedAgents/responses/Hosted-Toolbox-AuthPaths/README.md +++ b/dotnet/samples/04-hosting/FoundryHostedAgents/responses/Hosted-Toolbox-AuthPaths/README.md @@ -1,4 +1,4 @@ -# Hosted Toolbox — Authentication Paths +# Hosted Toolbox — Authentication Paths A hosted Foundry agent backed by a single Foundry Toolbox that bundles MCP tools using **three different authentication paths**. The educational surface lives in the toolbox configuration (which you provision in the Foundry portal) and in this README — the agent code itself is identical to the existing [`Hosted-Toolbox/`](../Hosted-Toolbox/) sample. @@ -115,7 +115,7 @@ Each entry should also carry: ### Sidebar — what the toolbox-creation code looks like -This sample assumes the toolbox already exists; it does not provision one programmatically. For an end-to-end code example of toolbox creation from a publisher script (suitable for a CI/CD pipeline), see [`02-agents/AgentsWithFoundry/Agent_Step25_FoundryToolboxMcp/Program.cs`](../../../../02-agents/AgentsWithFoundry/Agent_Step25_FoundryToolboxMcp/Program.cs) — its `CreateSampleToolboxAsync` helper uses `AgentAdministrationClient.GetAgentToolboxes().CreateToolboxVersionAsync(...)` and is the canonical pattern. +This sample assumes the toolbox already exists; it does not provision one programmatically. For an end-to-end code example of toolbox creation from a publisher script (suitable for a CI/CD pipeline), see [`02-agents/AgentProviders/foundry/Agent_Step25_FoundryToolboxMcp/Program.cs`](../../../../02-agents/AgentProviders/foundry/Agent_Step25_FoundryToolboxMcp/Program.cs) — its `CreateSampleToolboxAsync` helper uses `AgentAdministrationClient.GetAgentToolboxes().CreateToolboxVersionAsync(...)` and is the canonical pattern. ## Run the agent @@ -195,3 +195,4 @@ Inline `authorization` on a toolbox tool entry stores credentials **inside the t - Local development against a test MCP server with a throwaway token. For everything else use `project_connection_id` and let the platform inject credentials. + diff --git a/dotnet/samples/AGENTS.md b/dotnet/samples/AGENTS.md index 89e1359e857..e012d3ec32e 100644 --- a/dotnet/samples/AGENTS.md +++ b/dotnet/samples/AGENTS.md @@ -1,4 +1,4 @@ -# Samples Structure & Design Choices — .NET +# Samples Structure & Design Choices — .NET > This file documents the structure and conventions of the .NET samples so that > agents (AI or human) can maintain them without rediscovering decisions. @@ -17,18 +17,24 @@ dotnet/samples/ ├── 02-agents/ # Deep-dive concept samples │ ├── Agents/ # Core agent patterns (tools, structured output, │ │ # conversations, middleware, plugins, MCP, etc.) -│ ├── AgentProviders/ # One project per provider (Azure OpenAI, OpenAI, -│ │ # Anthropic, Gemini, Ollama, ONNX, Foundry, etc.) +│ ├── AgentProviders/ # Provider-grouped samples +│ │ ├── a2a/ # A2A provider sample +│ │ ├── anthropic/ # Anthropic provider samples +│ │ ├── azure/ # Azure/OpenAI/Foundry model provider samples +│ │ ├── custom/ # Custom agent implementation sample +│ │ ├── foundry/ # Microsoft Foundry agent samples +│ │ ├── github-copilot/ # GitHub Copilot provider sample +│ │ ├── google-gemini/ # Google Gemini provider sample +│ │ ├── ollama/ # Ollama provider sample +│ │ ├── onnx/ # ONNX Runtime provider sample +│ │ └── openai/ # OpenAI provider samples │ ├── AgentOpenTelemetry/ # OpenTelemetry integration │ ├── AgentSkills/ # Agent skills patterns -│ ├── AgentWithAnthropic/ # Anthropic-specific samples │ ├── AgentWithMemory/ # Memory providers (chat history, Mem0, Foundry) -│ ├── AgentWithOpenAI/ # OpenAI-specific samples │ ├── AgentWithRAG/ # RAG patterns (text, vector store, Foundry) │ ├── AGUI/ # AG-UI protocol samples │ ├── DeclarativeAgents/ # Declarative agent definitions │ ├── DevUI/ # DevUI samples -│ ├── AgentsWithFoundry/ # Microsoft Foundry samples (FoundryAgent + AsAIAgent extensions) │ └── ModelContextProtocol/ # MCP server/client patterns ├── 03-workflows/ # Workflow patterns │ ├── _StartHere/ # Introductory workflow samples @@ -128,3 +134,5 @@ dotnet run - Prefer `client.GetChatClient(deployment).AsAIAgent(...)` extension method pattern - Azure Functions hosting uses `ConfigureDurableAgents(options => options.AddAIAgent(agent))` - Workflows use `WorkflowBuilder` with `Executor` and edge connections + +