Skip to content

Commit 304b809

Browse files
authored
.NET: [Feature Branch] Durable Task extension integration tests (#2017)
1 parent 0aa8d30 commit 304b809

File tree

20 files changed

+1447
-9
lines changed

20 files changed

+1447
-9
lines changed

dotnet/agent-framework-dotnet.slnx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,8 @@
302302
<Project Path="tests/AgentConformance.IntegrationTests/AgentConformance.IntegrationTests.csproj" />
303303
<Project Path="tests/AzureAIAgentsPersistent.IntegrationTests/AzureAIAgentsPersistent.IntegrationTests.csproj" />
304304
<Project Path="tests/CopilotStudio.IntegrationTests/CopilotStudio.IntegrationTests.csproj" />
305+
<Project Path="tests/Microsoft.Agents.AI.DurableTask.IntegrationTests/Microsoft.Agents.AI.DurableTask.IntegrationTests.csproj" />
306+
<Project Path="tests/Microsoft.Agents.AI.Hosting.AzureFunctions.IntegrationTests/Microsoft.Agents.AI.Hosting.AzureFunctions.IntegrationTests.csproj" />
305307
<Project Path="tests/Microsoft.Agents.AI.Mem0.IntegrationTests/Microsoft.Agents.AI.Mem0.IntegrationTests.csproj" />
306308
<Project Path="tests/Microsoft.Agents.AI.Workflows.Declarative.IntegrationTests/Microsoft.Agents.AI.Workflows.Declarative.IntegrationTests.csproj" />
307309
<Project Path="tests/OpenAIAssistant.IntegrationTests/OpenAIAssistant.IntegrationTests.csproj" />

dotnet/samples/AzureFunctions/01_SingleAgent/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
?? throw new InvalidOperationException("AZURE_OPENAI_DEPLOYMENT is not set.");
1717

1818
// Use Azure Key Credential if provided, otherwise use Azure CLI Credential.
19-
string? azureOpenAiKey = Environment.GetEnvironmentVariable("AZURE_OPENAI_KEY");
19+
string? azureOpenAiKey = System.Environment.GetEnvironmentVariable("AZURE_OPENAI_KEY");
2020
AzureOpenAIClient client = !string.IsNullOrEmpty(azureOpenAiKey)
2121
? new AzureOpenAIClient(new Uri(endpoint), new AzureKeyCredential(azureOpenAiKey))
2222
: new AzureOpenAIClient(new Uri(endpoint), new AzureCliCredential());

dotnet/samples/AzureFunctions/02_AgentOrchestration_Chaining/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
?? throw new InvalidOperationException("AZURE_OPENAI_DEPLOYMENT is not set.");
1717

1818
// Use Azure Key Credential if provided, otherwise use Azure CLI Credential.
19-
string? azureOpenAiKey = Environment.GetEnvironmentVariable("AZURE_OPENAI_KEY");
19+
string? azureOpenAiKey = System.Environment.GetEnvironmentVariable("AZURE_OPENAI_KEY");
2020
AzureOpenAIClient client = !string.IsNullOrEmpty(azureOpenAiKey)
2121
? new AzureOpenAIClient(new Uri(endpoint), new AzureKeyCredential(azureOpenAiKey))
2222
: new AzureOpenAIClient(new Uri(endpoint), new AzureCliCredential());

dotnet/samples/AzureFunctions/03_AgentOrchestration_Concurrency/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
?? throw new InvalidOperationException("AZURE_OPENAI_DEPLOYMENT is not set.");
1717

1818
// Use Azure Key Credential if provided, otherwise use Azure CLI Credential.
19-
string? azureOpenAiKey = Environment.GetEnvironmentVariable("AZURE_OPENAI_KEY");
19+
string? azureOpenAiKey = System.Environment.GetEnvironmentVariable("AZURE_OPENAI_KEY");
2020
AzureOpenAIClient client = !string.IsNullOrEmpty(azureOpenAiKey)
2121
? new AzureOpenAIClient(new Uri(endpoint), new AzureKeyCredential(azureOpenAiKey))
2222
: new AzureOpenAIClient(new Uri(endpoint), new AzureCliCredential());

dotnet/samples/AzureFunctions/04_AgentOrchestration_Conditionals/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
?? throw new InvalidOperationException("AZURE_OPENAI_DEPLOYMENT is not set.");
1717

1818
// Use Azure Key Credential if provided, otherwise use Azure CLI Credential.
19-
string? azureOpenAiKey = Environment.GetEnvironmentVariable("AZURE_OPENAI_KEY");
19+
string? azureOpenAiKey = System.Environment.GetEnvironmentVariable("AZURE_OPENAI_KEY");
2020
AzureOpenAIClient client = !string.IsNullOrEmpty(azureOpenAiKey)
2121
? new AzureOpenAIClient(new Uri(endpoint), new AzureKeyCredential(azureOpenAiKey))
2222
: new AzureOpenAIClient(new Uri(endpoint), new AzureCliCredential());

dotnet/samples/AzureFunctions/05_AgentOrchestration_HITL/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
?? throw new InvalidOperationException("AZURE_OPENAI_DEPLOYMENT is not set.");
1717

1818
// Use Azure Key Credential if provided, otherwise use Azure CLI Credential.
19-
string? azureOpenAiKey = Environment.GetEnvironmentVariable("AZURE_OPENAI_KEY");
19+
string? azureOpenAiKey = System.Environment.GetEnvironmentVariable("AZURE_OPENAI_KEY");
2020
AzureOpenAIClient client = !string.IsNullOrEmpty(azureOpenAiKey)
2121
? new AzureOpenAIClient(new Uri(endpoint), new AzureKeyCredential(azureOpenAiKey))
2222
: new AzureOpenAIClient(new Uri(endpoint), new AzureCliCredential());

dotnet/samples/AzureFunctions/06_LongRunningTools/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
?? throw new InvalidOperationException("AZURE_OPENAI_DEPLOYMENT is not set.");
2121

2222
// Use Azure Key Credential if provided, otherwise use Azure CLI Credential.
23-
string? azureOpenAiKey = Environment.GetEnvironmentVariable("AZURE_OPENAI_KEY");
23+
string? azureOpenAiKey = System.Environment.GetEnvironmentVariable("AZURE_OPENAI_KEY");
2424
AzureOpenAIClient client = !string.IsNullOrEmpty(azureOpenAiKey)
2525
? new AzureOpenAIClient(new Uri(endpoint), new AzureKeyCredential(azureOpenAiKey))
2626
: new AzureOpenAIClient(new Uri(endpoint), new AzureCliCredential());

dotnet/samples/AzureFunctions/07_AgentAsMcpTool/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
?? throw new InvalidOperationException("AZURE_OPENAI_DEPLOYMENT is not set.");
2323

2424
// Use Azure Key Credential if provided, otherwise use Azure CLI Credential.
25-
string? azureOpenAiKey = Environment.GetEnvironmentVariable("AZURE_OPENAI_KEY");
25+
string? azureOpenAiKey = System.Environment.GetEnvironmentVariable("AZURE_OPENAI_KEY");
2626
AzureOpenAIClient client = !string.IsNullOrEmpty(azureOpenAiKey)
2727
? new AzureOpenAIClient(new Uri(endpoint), new AzureKeyCredential(azureOpenAiKey))
2828
: new AzureOpenAIClient(new Uri(endpoint), new AzureCliCredential());

dotnet/src/Microsoft.Agents.AI.DurableTask/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Microsoft.Agents.AI.DurableTask
22

3-
The Microsoft Agent Framework provides a programming model for building agents and agent workflows in .NET. This package, the *Durable extensions for the Agent Framework*, extends the Agent Framework programming model with the following capabilities:
3+
The Microsoft Agent Framework provides a programming model for building agents and agent workflows in .NET. This package, the *Durable Task extension for the Agent Framework*, extends the Agent Framework programming model with the following capabilities:
44

55
- Stateful, durable execution of agents in distributed environments
66
- Automatic conversation history management

dotnet/src/Microsoft.Agents.AI.Hosting.AzureFunctions/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Or directly in your project file:
2525

2626
## Usage Examples
2727

28-
For a comprehensive tour of all the functionality, concepts, and APIs, check out the [Azure Functions samples](https://github.com/microsoft/agent-framework/tree/main/dotnet/samples/AzureFunctions) in the [Durable extensions for Agent Framework repository](https://github.com/microsoft/agent-framework).
28+
For a comprehensive tour of all the functionality, concepts, and APIs, check out the [Azure Functions samples](https://github.com/microsoft/agent-framework/tree/main/dotnet/samples/AzureFunctions) in the [Durable Task extension for Agent Framework repository](https://github.com/microsoft/agent-framework).
2929

3030
### Hosting single agents
3131

0 commit comments

Comments
 (0)