Skip to content

Commit 0ba17af

Browse files
authored
Improve workflows "as agent" docs. Fix .net workflows import in samples. (#799)
* Improve as agent docs. Fix .net workflows import * Cleanup * More cleanup
1 parent 75a5b12 commit 0ba17af

12 files changed

Lines changed: 426 additions & 48 deletions

File tree

agent-framework/user-guide/workflows/as-agents.md

Lines changed: 407 additions & 29 deletions
Large diffs are not rendered by default.

agent-framework/user-guide/workflows/checkpoints.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Remember that workflows are executed in **supersteps**, as documented in the [co
3838
To enable check pointing, a `CheckpointManager` needs to be provided when creating a workflow run. A checkpoint then can be accessed via a `SuperStepCompletedEvent`.
3939

4040
```csharp
41-
using Microsoft.Agents.Workflows;
41+
using Microsoft.Agents.AI.Workflows;
4242

4343
// Create a checkpoint manager to manage checkpoints
4444
var checkpointManager = new CheckpointManager();
@@ -188,8 +188,8 @@ async for event in workflow.run_stream
188188
To ensure that the state of an executor is captured in a checkpoint, the executor must override the `OnCheckpointingAsync` method and save its state to the workflow context.
189189

190190
```csharp
191-
using Microsoft.Agents.Workflows;
192-
using Microsoft.Agents.Workflows.Reflection;
191+
using Microsoft.Agents.AI.Workflows;
192+
using Microsoft.Agents.AI.Workflows.Reflection;
193193

194194
internal sealed class CustomExecutor() : Executor<string>("CustomExecutor")
195195
{

agent-framework/user-guide/workflows/core-concepts/edges.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The simplest form of connection between two executors:
3333
::: zone pivot="programming-language-csharp"
3434

3535
```csharp
36-
using Microsoft.Agents.Workflows;
36+
using Microsoft.Agents.AI.Workflows;
3737

3838
WorkflowBuilder builder = new(sourceExecutor);
3939
builder.AddEdge(sourceExecutor, targetExecutor);

agent-framework/user-guide/workflows/core-concepts/events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ Users can define and emit custom events during workflow execution for enhanced o
136136
::: zone pivot="programming-language-csharp"
137137

138138
```csharp
139-
using Microsoft.Agents.Workflows;
140-
using Microsoft.Agents.Workflows.Reflection;
139+
using Microsoft.Agents.AI.Workflows;
140+
using Microsoft.Agents.AI.Workflows.Reflection;
141141

142142
internal sealed class CustomEvent(string message) : WorkflowEvent(message) { }
143143

agent-framework/user-guide/workflows/core-concepts/executors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Executors inherit from the `Executor<TInput, TOutput>` base class. Each executor
2424
### Basic Executor Structure
2525

2626
```csharp
27-
using Microsoft.Agents.Workflows;
28-
using Microsoft.Agents.Workflows.Reflection;
27+
using Microsoft.Agents.AI.Workflows;
28+
using Microsoft.Agents.AI.Workflows.Reflection;
2929

3030
internal sealed class UppercaseExecutor() : Executor<string, string>("UppercaseExecutor")
3131
{

agent-framework/user-guide/workflows/core-concepts/workflows.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Workflows are constructed using the `WorkflowBuilder` class, which provides a fl
2525

2626
```csharp
2727
// Create executors
28-
using Microsoft.Agents.Workflows;
28+
using Microsoft.Agents.AI.Workflows;
2929

3030
var processor = new DataProcessor();
3131
var validator = new Validator();
@@ -68,7 +68,7 @@ Workflows support both streaming and non-streaming execution modes:
6868
::: zone pivot="programming-language-csharp"
6969

7070
```csharp
71-
using Microsoft.Agents.Workflows;
71+
using Microsoft.Agents.AI.Workflows;
7272

7373
// Streaming execution - get events as they happen
7474
StreamingRun run = await InProcessExecution.StreamAsync(workflow, inputMessage);

agent-framework/user-guide/workflows/orchestrations/concurrent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ using System.Linq;
3535
using System.Threading.Tasks;
3636
using Azure.AI.OpenAI;
3737
using Azure.Identity;
38-
using Microsoft.Agents.Workflows;
38+
using Microsoft.Agents.AI.Workflows;
3939
using Microsoft.Extensions.AI;
4040
using Microsoft.Agents.AI;
4141

agent-framework/user-guide/workflows/orchestrations/group-chat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ using System.Collections.Generic;
3939
using System.Threading.Tasks;
4040
using Azure.AI.OpenAI;
4141
using Azure.Identity;
42-
using Microsoft.Agents.Workflows;
42+
using Microsoft.Agents.AI.Workflows;
4343
using Microsoft.Extensions.AI;
4444
using Microsoft.Agents.AI;
4545

agent-framework/user-guide/workflows/orchestrations/handoff.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ using System.Collections.Generic;
4444
using System.Threading.Tasks;
4545
using Azure.AI.OpenAI;
4646
using Azure.Identity;
47-
using Microsoft.Agents.Workflows;
47+
using Microsoft.Agents.AI.Workflows;
4848
using Microsoft.Extensions.AI;
4949
using Microsoft.Agents.AI;
5050

agent-framework/user-guide/workflows/orchestrations/sequential.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ using System.Linq;
3737
using System.Threading.Tasks;
3838
using Azure.AI.OpenAI;
3939
using Azure.Identity;
40-
using Microsoft.Agents.Workflows;
40+
using Microsoft.Agents.AI.Workflows;
4141
using Microsoft.Extensions.AI;
4242
using Microsoft.Agents.AI;
4343

0 commit comments

Comments
 (0)