Python / .NET Samples - Restructure and Improve Samples (Feature Branc… (#4092)

* Python: .NET Samples - Restructure and Improve Samples (Feature Branch) (#4091)

* Moved by agent (#4094)

* Fix readme links

* .NET Samples - Create `04-hosting` learning path step (#4098)

* Agent move

* Agent reorderd

* Remove A2A section from README 

Removed A2A section from the Getting Started README.

* Agent fixed links

* Fix broken sample links in durable-agents README (#4101)

* Initial plan

* Fix broken internal links in documentation

Co-authored-by: crickman <66376200+crickman@users.noreply.github.com>

* Revert template link changes; keep only durable-agents README fix

Co-authored-by: crickman <66376200+crickman@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: crickman <66376200+crickman@users.noreply.github.com>

* .NET Samples - Create `03-workflows` learning path step (#4102)

* Fix solution project path

* Python: Fix broken markdown links to repo resources (outside /docs) (#4105)

* Initial plan

* Fix broken markdown links to repo resources

Co-authored-by: crickman <66376200+crickman@users.noreply.github.com>

* Update README to rename .NET Workflows Samples section

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: crickman <66376200+crickman@users.noreply.github.com>

* .NET Samples - Create `02-agents` learning path step (#4107)

* .NET: Fix broken relative link in GroupChatToolApproval README (#4108)

* Initial plan

* Fix broken link in GroupChatToolApproval README

Co-authored-by: crickman <66376200+crickman@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: crickman <66376200+crickman@users.noreply.github.com>

* Update labeler configuration for workflow samples

* .NET - Reorder Agents samples to start from Step01 instead of Step04 (#4110)

* Fix solution

* Resolve new sample paths

* Move new AgentSkills and AgentWithMemory_Step04 samples

* Fix link

* Fix readme path

* fix: update stale dotnet/samples/Durable path reference in AGENTS.md

Co-authored-by: crickman <66376200+crickman@users.noreply.github.com>

* Moved new sample

* Update solution

* Resolve merge (new sample)

* Sync to new sample - FoundryAgents_Step21_BingCustomSearch

* Updated README

* .NET Samples - Configuration Naming Update (#4149)

* .NET: Restore AzureFunctions index parity with ConsoleApps under DurableAgents samples (#4221)

* Clean-up `05_host_your_agent`

* Config setting consistency

* Refine samples

* AGENTS.md

* Move new samples

* Re-order samples

* Move new project and fixup solution

* Fixup model config

* Fix up new UT project

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
Chris
2026-02-26 00:56:10 +00:00
committed by GitHub
co-authored by copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Copilot
parent 425f27f989
commit 904a5b843e
764 changed files with 1746 additions and 1373 deletions
@@ -8,11 +8,9 @@ We've provided a set of [Sample Workflows](../../../workflow-samples/) within th
Please refer to the [README](../../../workflow-samples/README.md) for setup instructions to run the sample workflows in your environment.
As part of our [Getting Started with Declarative Workflows](../../samples/GettingStarted/Workflows/Declarative/README.md),
As part of our [Getting Started with Declarative Workflows](../../samples/03-workflows/Declarative/README.md),
we've provided a console application that is able to execute any declarative workflow.
Please refer to the [README](../../samples/GettingStarted/Workflows/Declarative/README.md) for configuration instructions.
## Actions
### ⚙️ Foundry Actions
@@ -1,17 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
namespace Shared.IntegrationTests;
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable.
#pragma warning disable CA1812 // Internal class that is apparently never instantiated.
internal sealed class AnthropicConfiguration
{
public string? ServiceId { get; set; }
public string ChatModelId { get; set; }
public string ChatReasoningModelId { get; set; }
public string ApiKey { get; set; }
}
@@ -1,15 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
namespace Shared.IntegrationTests;
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable.
#pragma warning disable CA1812 // Internal class that is apparently never instantiated.
internal sealed class AzureAIConfiguration
{
public string Endpoint { get; set; }
public string DeploymentName { get; set; }
public string BingConnectionId { get; set; }
}
@@ -1,13 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
namespace Shared.IntegrationTests;
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable.
#pragma warning disable CA1812 // Internal class that is apparently never instantiated.
internal sealed class FoundryMemoryConfiguration
{
public string Endpoint { get; set; }
public string MemoryStoreName { get; set; }
public string? DeploymentName { get; set; }
}
@@ -1,12 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
namespace Shared.IntegrationTests;
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable.
#pragma warning disable CA1812 // Internal class that is apparently never instantiated.
internal sealed class Mem0Configuration
{
public string ServiceUri { get; set; }
public string ApiKey { get; set; }
}
@@ -1,17 +0,0 @@
// Copyright (c) Microsoft. All rights reserved.
namespace Shared.IntegrationTests;
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring as nullable.
#pragma warning disable CA1812 // Internal class that is apparently never instantiated.
internal sealed class OpenAIConfiguration
{
public string? ServiceId { get; set; }
public string ChatModelId { get; set; }
public string ChatReasoningModelId { get; set; }
public string ApiKey { get; set; }
}
@@ -9,3 +9,30 @@ To use this in your project, add the following to your `.csproj` file:
<InjectSharedIntegrationTestCode>true</InjectSharedIntegrationTestCode>
</PropertyGroup>
```
## Configuration
Integration tests use flat environment variable names for configuration.
Use `TestConfiguration.GetValue(key)` or `TestConfiguration.GetRequiredValue(key)` to access values.
Available keys are defined as constants in `TestSettings.cs`:
| Key | Description |
|---|---|
| `ANTHROPIC_API_KEY` | API key for Anthropic |
| `ANTHROPIC_CHAT_MODEL_NAME` | Anthropic chat model name |
| `ANTHROPIC_REASONING_MODEL_NAME` | Anthropic reasoning model name |
| `ANTHROPIC_SERVICE_ID` | Anthropic service ID |
| `AZURE_AI_BING_CONNECTION_ID` | Azure AI Bing connection ID |
| `AZURE_AI_MEMORY_STORE_ID` | Azure AI Memory store name |
| `AZURE_AI_MODEL_DEPLOYMENT_NAME` | Azure AI model deployment name |
| `AZURE_AI_PROJECT_ENDPOINT` | Azure AI project endpoint |
| `COPILOTSTUDIO_AGENT_APP_ID` | Copilot Studio agent app ID |
| `COPILOTSTUDIO_DIRECT_CONNECT_URL` | Copilot Studio direct connect URL |
| `COPILOTSTUDIO_TENANT_ID` | Copilot Studio tenant ID |
| `MEM0_API_KEY` | API key for Mem0 |
| `MEM0_ENDPOINT` | Mem0 service endpoint |
| `OPENAI_API_KEY` | API key for OpenAI |
| `OPENAI_CHAT_MODEL_NAME` | OpenAI chat model name |
| `OPENAI_REASONING_MODEL_NAME` | OpenAI reasoning model name |
| `OPENAI_SERVICE_ID` | OpenAI service ID |
@@ -0,0 +1,37 @@
// Copyright (c) Microsoft. All rights reserved.
namespace Shared.IntegrationTests;
/// <summary>
/// Constants for integration test configuration keys.
/// Values are resolved from environment variables and user secrets.
/// </summary>
internal static class TestSettings
{
// Anthropic
public const string AnthropicApiKey = "ANTHROPIC_API_KEY";
public const string AnthropicChatModelName = "ANTHROPIC_CHAT_MODEL_NAME";
public const string AnthropicReasoningModelName = "ANTHROPIC_REASONING_MODEL_NAME";
public const string AnthropicServiceId = "ANTHROPIC_SERVICE_ID";
// Azure AI (Foundry)
public const string AzureAIBingConnectionId = "AZURE_AI_BING_CONNECTION_ID";
public const string AzureAIMemoryStoreId = "AZURE_AI_MEMORY_STORE_ID";
public const string AzureAIModelDeploymentName = "AZURE_AI_MODEL_DEPLOYMENT_NAME";
public const string AzureAIProjectEndpoint = "AZURE_AI_PROJECT_ENDPOINT";
// Copilot Studio
public const string CopilotStudioAgentAppId = "COPILOTSTUDIO_AGENT_APP_ID";
public const string CopilotStudioDirectConnectUrl = "COPILOTSTUDIO_DIRECT_CONNECT_URL";
public const string CopilotStudioTenantId = "COPILOTSTUDIO_TENANT_ID";
// Mem0
public const string Mem0ApiKey = "MEM0_API_KEY";
public const string Mem0Endpoint = "MEM0_ENDPOINT";
// OpenAI
public const string OpenAIApiKey = "OPENAI_API_KEY";
public const string OpenAIChatModelName = "OPENAI_CHAT_MODEL_NAME";
public const string OpenAIReasoningModelName = "OPENAI_REASONING_MODEL_NAME";
public const string OpenAIServiceId = "OPENAI_SERVICE_ID";
}
@@ -12,10 +12,9 @@ internal static class Application
/// </summary>
public static class Settings
{
public const string FoundryEndpoint = "FOUNDRY_PROJECT_ENDPOINT";
public const string FoundryModelMini = "FOUNDRY_MODEL_DEPLOYMENT_NAME";
public const string FoundryModelFull = "FOUNDRY_MEDIA_DEPLOYMENT_NAME";
public const string FoundryGroundingTool = "FOUNDRY_CONNECTION_GROUNDING_TOOL";
public const string FoundryEndpoint = "AZURE_AI_PROJECT_ENDPOINT";
public const string FoundryModel = "AZURE_AI_MODEL_DEPLOYMENT_NAME";
public const string FoundryGroundingTool = "AZURE_AI_BING_CONNECTION_ID";
}
public static string GetInput(string[] args)