.NET: Rename workflows projects (#975)

* Renaming Microsoft.Agent.Workflows to Microsoft.Agents.AI.Workflows

* Removing local settings.

* Removing remining old files from merge.
This commit is contained in:
Ben Thomas
2025-09-29 18:30:45 +00:00
committed by GitHub
parent aaf340096e
commit 647db9635a
340 changed files with 519 additions and 519 deletions
@@ -11,7 +11,7 @@ using Azure.Core.Pipeline;
using Microsoft.Agents.AI;
using Microsoft.Extensions.AI;
namespace Microsoft.Agents.Workflows.Declarative;
namespace Microsoft.Agents.AI.Workflows.Declarative;
/// <summary>
/// Provides functionality to interact with Foundry agents within a specified project context.
@@ -2,14 +2,14 @@
using System;
using System.IO;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.Bot.ObjectModel.Yaml;
using Microsoft.Extensions.AI;
namespace Microsoft.Agents.Workflows.Declarative;
namespace Microsoft.Agents.AI.Workflows.Declarative;
/// <summary>
/// Builder for converting a Foundry workflow object-model YAML definition into a process.
@@ -5,7 +5,7 @@ using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows.Declarative;
namespace Microsoft.Agents.AI.Workflows.Declarative;
/// <summary>
/// Configuration options for workflow execution.
@@ -2,7 +2,7 @@
using Microsoft.PowerFx.Types;
namespace Microsoft.Agents.Workflows.Declarative.Entities;
namespace Microsoft.Agents.AI.Workflows.Declarative.Entities;
internal sealed record class EntityExtractionResult
{
@@ -6,7 +6,7 @@ using System.Text.RegularExpressions;
using Microsoft.Bot.ObjectModel;
using Microsoft.PowerFx.Types;
namespace Microsoft.Agents.Workflows.Declarative.Entities;
namespace Microsoft.Agents.AI.Workflows.Declarative.Entities;
internal static partial class EntityExtractor
{
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
namespace Microsoft.Agents.Workflows.Declarative;
namespace Microsoft.Agents.AI.Workflows.Declarative;
/// <summary>
/// Event that broadcasts the conversation identifier.
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft. All rights reserved.
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Bot.ObjectModel;
namespace Microsoft.Agents.Workflows.Declarative;
namespace Microsoft.Agents.AI.Workflows.Declarative;
/// <summary>
/// Event that indicates a declarative action has been invoked.
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft. All rights reserved.
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Bot.ObjectModel;
namespace Microsoft.Agents.Workflows.Declarative;
namespace Microsoft.Agents.AI.Workflows.Declarative;
/// <summary>
/// Event that indicates a declarative action has completed.
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
namespace Microsoft.Agents.Workflows.Declarative.Events;
namespace Microsoft.Agents.AI.Workflows.Declarative.Events;
/// <summary>
/// Represents a request for user input.
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
namespace Microsoft.Agents.Workflows.Declarative.Events;
namespace Microsoft.Agents.AI.Workflows.Declarative.Events;
/// <summary>
/// Represents a user input response.
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
namespace Microsoft.Agents.Workflows.Declarative;
namespace Microsoft.Agents.AI.Workflows.Declarative;
/// <summary>
/// Event that broadcasts the conversation identifier.
@@ -2,7 +2,7 @@
using System;
namespace Microsoft.Agents.Workflows.Declarative;
namespace Microsoft.Agents.AI.Workflows.Declarative;
/// <summary>
/// Represents an exception that occurs during action execution.
@@ -2,7 +2,7 @@
using System;
namespace Microsoft.Agents.Workflows.Declarative;
namespace Microsoft.Agents.AI.Workflows.Declarative;
/// <summary>
/// Represents an exception that occurs when the declarative model is not supported.
@@ -2,7 +2,7 @@
using System;
namespace Microsoft.Agents.Workflows.Declarative;
namespace Microsoft.Agents.AI.Workflows.Declarative;
/// <summary>
/// Represents any exception that occurs during the execution of a process workflow.
@@ -7,7 +7,7 @@ using System.Threading.Tasks;
using Microsoft.Agents.AI;
using Microsoft.Extensions.AI;
namespace Microsoft.Agents.Workflows.Declarative.Extensions;
namespace Microsoft.Agents.AI.Workflows.Declarative.Extensions;
internal static class AgentProviderExtensions
{
@@ -2,7 +2,7 @@
using Microsoft.Bot.ObjectModel;
namespace Microsoft.Agents.Workflows.Declarative.Extensions;
namespace Microsoft.Agents.AI.Workflows.Declarative.Extensions;
internal static class BotElementExtensions
{
@@ -3,12 +3,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Agents.Workflows.Declarative.PowerFx.Functions;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx.Functions;
using Microsoft.Bot.ObjectModel;
using Microsoft.Extensions.AI;
using Microsoft.PowerFx.Types;
namespace Microsoft.Agents.Workflows.Declarative.Extensions;
namespace Microsoft.Agents.AI.Workflows.Declarative.Extensions;
internal static class ChatMessageExtensions
{
@@ -5,7 +5,7 @@ using System.Linq;
using Microsoft.Bot.ObjectModel;
using Microsoft.PowerFx.Types;
namespace Microsoft.Agents.Workflows.Declarative.Extensions;
namespace Microsoft.Agents.AI.Workflows.Declarative.Extensions;
internal static class DataValueExtensions
{
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft. All rights reserved.
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.PowerFx;
namespace Microsoft.Agents.Workflows.Declarative.Extensions;
namespace Microsoft.Agents.AI.Workflows.Declarative.Extensions;
internal static class DeclarativeWorkflowOptionsExtensions
{
@@ -3,7 +3,7 @@
using System.Linq;
using Microsoft.Bot.ObjectModel;
namespace Microsoft.Agents.Workflows.Declarative.Extensions;
namespace Microsoft.Agents.AI.Workflows.Declarative.Extensions;
internal static class DialogBaseExtensions
{
@@ -8,14 +8,14 @@ using System.Dynamic;
using System.Linq;
using System.Text.Json;
using System.Text.Json.Nodes;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.Workflows.Declarative.PowerFx.Functions;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx.Functions;
using Microsoft.Bot.ObjectModel;
using Microsoft.Extensions.AI;
using Microsoft.PowerFx.Types;
using BlankType = Microsoft.PowerFx.Types.BlankType;
namespace Microsoft.Agents.Workflows.Declarative.Extensions;
namespace Microsoft.Agents.AI.Workflows.Declarative.Extensions;
internal static class FormulaValueExtensions
{
@@ -2,13 +2,13 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.PowerFx.Types;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows.Declarative.Extensions;
namespace Microsoft.Agents.AI.Workflows.Declarative.Extensions;
internal static class IWorkflowContextExtensions
{
@@ -7,7 +7,7 @@ using System.Text.Json;
using Microsoft.Bot.ObjectModel;
using Microsoft.PowerFx.Types;
namespace Microsoft.Agents.Workflows.Declarative.Extensions;
namespace Microsoft.Agents.AI.Workflows.Declarative.Extensions;
internal static class RecordDataTypeExtensions
{
@@ -3,7 +3,7 @@
using System.Text.RegularExpressions;
using Microsoft.PowerFx.Types;
namespace Microsoft.Agents.Workflows.Declarative.Extensions;
namespace Microsoft.Agents.AI.Workflows.Declarative.Extensions;
internal static partial class StringExtensions
{
@@ -5,7 +5,7 @@ using System.Linq;
using Microsoft.Bot.ObjectModel;
using Microsoft.PowerFx;
namespace Microsoft.Agents.Workflows.Declarative.Extensions;
namespace Microsoft.Agents.AI.Workflows.Declarative.Extensions;
internal static class TemplateExtensions
{
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
namespace Microsoft.Agents.Workflows.Declarative.Interpreter;
namespace Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
/// <summary>
/// Message sent to initiate a transition to another <see cref="Executor"/>.
@@ -4,15 +4,15 @@ using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Microsoft.PowerFx;
using Microsoft.PowerFx.Types;
namespace Microsoft.Agents.Workflows.Declarative.Interpreter;
namespace Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
internal abstract class DeclarativeActionExecutor<TAction>(TAction model, WorkflowFormulaState state) :
DeclarativeActionExecutor(model, state)
@@ -4,12 +4,12 @@ using System.Collections.Frozen;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.PowerFx.Types;
namespace Microsoft.Agents.Workflows.Declarative.Interpreter;
namespace Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
internal sealed class DeclarativeWorkflowContext : IWorkflowContext
{
@@ -2,11 +2,11 @@
using System;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Extensions.AI;
namespace Microsoft.Agents.Workflows.Declarative.Interpreter;
namespace Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
/// <summary>
/// The root executor for a declarative workflow.
@@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace Microsoft.Agents.Workflows.Declarative.Interpreter;
namespace Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
/// <summary>
/// Provides dynamic model for constructing a declarative workflow.
@@ -3,10 +3,10 @@
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
namespace Microsoft.Agents.Workflows.Declarative.Interpreter;
namespace Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
internal delegate ValueTask DelegateAction<TMessage>(IWorkflowContext context, TMessage message, CancellationToken cancellationToken) where TMessage : notnull;
@@ -2,7 +2,7 @@
using System.Threading.Tasks;
namespace Microsoft.Agents.Workflows.Declarative.Interpreter;
namespace Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
internal sealed class DurableProperty<TValue>(string name) where TValue : struct
{
@@ -3,13 +3,13 @@
using System;
using System.Diagnostics;
using System.Linq;
using Microsoft.Agents.Workflows.Declarative.Events;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.ObjectModel;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Events;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
namespace Microsoft.Agents.Workflows.Declarative.Interpreter;
namespace Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
internal sealed class WorkflowActionVisitor : DialogActionVisitor
{
@@ -2,7 +2,7 @@
using Microsoft.Bot.ObjectModel;
namespace Microsoft.Agents.Workflows.Declarative.Interpreter;
namespace Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
internal sealed class WorkflowElementWalker : BotElementWalker
{
@@ -31,13 +31,13 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.Agents.Workflows\Microsoft.Agents.Workflows.csproj" />
<ProjectReference Include="..\Microsoft.Agents.AI.Workflows\Microsoft.Agents.AI.Workflows.csproj" />
<ProjectReference Include="..\Microsoft.Agents.AI.AzureAI\Microsoft.Agents.AI.AzureAI.csproj" />
</ItemGroup>
<ItemGroup>
<InternalsVisibleTo Include="Microsoft.Agents.Workflows.Declarative.UnitTests" />
<InternalsVisibleTo Include="Microsoft.Agents.Workflows.Declarative.IntegrationTests" />
<InternalsVisibleTo Include="Microsoft.Agents.AI.Workflows.Declarative.UnitTests" />
<InternalsVisibleTo Include="Microsoft.Agents.AI.Workflows.Declarative.IntegrationTests" />
</ItemGroup>
</Project>
@@ -3,14 +3,14 @@
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.Extensions.AI;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows.Declarative.ObjectModel;
namespace Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
internal sealed class AddConversationMessageExecutor(AddConversationMessage model, WorkflowAgentProvider agentProvider, WorkflowFormulaState state) :
DeclarativeActionExecutor<AddConversationMessage>(model, state)
@@ -3,12 +3,12 @@
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.Bot.ObjectModel.Abstractions;
namespace Microsoft.Agents.Workflows.Declarative.ObjectModel;
namespace Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
internal sealed class ClearAllVariablesExecutor(ClearAllVariables model, WorkflowFormulaState state)
: DeclarativeActionExecutor<ClearAllVariables>(model, state)
@@ -3,13 +3,13 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.Bot.ObjectModel.Abstractions;
namespace Microsoft.Agents.Workflows.Declarative.ObjectModel;
namespace Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
internal sealed class ConditionGroupExecutor : DeclarativeActionExecutor<ConditionGroup>
{
@@ -3,15 +3,15 @@
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.Bot.ObjectModel.Abstractions;
using Microsoft.Extensions.AI;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows.Declarative.ObjectModel;
namespace Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
internal sealed class CopyConversationMessagesExecutor(CopyConversationMessages model, WorkflowAgentProvider agentProvider, WorkflowFormulaState state) :
DeclarativeActionExecutor<CopyConversationMessages>(model, state)
@@ -2,12 +2,12 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.PowerFx.Types;
namespace Microsoft.Agents.Workflows.Declarative.ObjectModel;
namespace Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
internal sealed class CreateConversationExecutor(CreateConversation model, WorkflowAgentProvider agentProvider, WorkflowFormulaState state) :
DeclarativeActionExecutor<CreateConversation>(model, state)
@@ -2,11 +2,11 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
namespace Microsoft.Agents.Workflows.Declarative.ObjectModel;
namespace Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
internal sealed class DefaultActionExecutor(DialogAction model, WorkflowFormulaState state) :
DeclarativeActionExecutor(model, state)
@@ -4,15 +4,15 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.Bot.ObjectModel.Abstractions;
using Microsoft.PowerFx.Types;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows.Declarative.ObjectModel;
namespace Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
internal sealed class EditTableExecutor(EditTable model, WorkflowFormulaState state) : DeclarativeActionExecutor<EditTable>(model, state)
{
@@ -4,15 +4,15 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.Bot.ObjectModel.Abstractions;
using Microsoft.PowerFx.Types;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows.Declarative.ObjectModel;
namespace Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
internal sealed class EditTableV2Executor(EditTableV2 model, WorkflowFormulaState state) : DeclarativeActionExecutor<EditTableV2>(model, state)
{
@@ -3,15 +3,15 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.Bot.ObjectModel.Abstractions;
using Microsoft.PowerFx.Types;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows.Declarative.ObjectModel;
namespace Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
internal sealed class ForeachExecutor : DeclarativeActionExecutor<Foreach>
{
@@ -5,15 +5,15 @@ using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.AI;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.Bot.ObjectModel.Abstractions;
using Microsoft.Extensions.AI;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows.Declarative.ObjectModel;
namespace Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
internal sealed class InvokeAzureAgentExecutor(InvokeAzureAgent model, WorkflowAgentProvider agentProvider, WorkflowFormulaState state) :
DeclarativeActionExecutor<InvokeAzureAgent>(model, state)
@@ -5,15 +5,15 @@ using System;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.Bot.ObjectModel.Abstractions;
using Microsoft.PowerFx.Types;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows.Declarative.ObjectModel;
namespace Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
internal sealed class ParseValueExecutor(ParseValue model, WorkflowFormulaState state) :
DeclarativeActionExecutor<ParseValue>(model, state)
@@ -2,16 +2,16 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Entities;
using Microsoft.Agents.Workflows.Declarative.Events;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Entities;
using Microsoft.Agents.AI.Workflows.Declarative.Events;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.PowerFx.Types;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows.Declarative.ObjectModel;
namespace Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
internal sealed class QuestionExecutor(Question model, WorkflowFormulaState state) :
DeclarativeActionExecutor<Question>(model, state)
@@ -3,13 +3,13 @@
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows.Declarative.ObjectModel;
namespace Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
internal sealed class ResetVariableExecutor(ResetVariable model, WorkflowFormulaState state) :
DeclarativeActionExecutor<ResetVariable>(model, state)
@@ -2,14 +2,14 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.Extensions.AI;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows.Declarative.ObjectModel;
namespace Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
internal sealed class RetrieveConversationMessageExecutor(RetrieveConversationMessage model, WorkflowAgentProvider agentProvider, WorkflowFormulaState state) :
DeclarativeActionExecutor<RetrieveConversationMessage>(model, state)
@@ -4,14 +4,14 @@ using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.Extensions.AI;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows.Declarative.ObjectModel;
namespace Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
internal sealed class RetrieveConversationMessagesExecutor(RetrieveConversationMessages model, WorkflowAgentProvider agentProvider, WorkflowFormulaState state) :
DeclarativeActionExecutor<RetrieveConversationMessages>(model, state)
@@ -2,12 +2,12 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
namespace Microsoft.Agents.Workflows.Declarative.ObjectModel;
namespace Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
internal sealed class SendActivityExecutor(SendActivity model, WorkflowFormulaState state) :
DeclarativeActionExecutor<SendActivity>(model, state)
@@ -2,14 +2,14 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.Bot.ObjectModel.Abstractions;
using Microsoft.PowerFx.Types;
namespace Microsoft.Agents.Workflows.Declarative.ObjectModel;
namespace Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
internal sealed class SetMultipleVariablesExecutor(SetMultipleVariables model, WorkflowFormulaState state)
: DeclarativeActionExecutor<SetMultipleVariables>(model, state)
@@ -2,13 +2,13 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.PowerFx.Types;
namespace Microsoft.Agents.Workflows.Declarative.ObjectModel;
namespace Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
internal sealed class SetTextVariableExecutor(SetTextVariable model, WorkflowFormulaState state)
: DeclarativeActionExecutor<SetTextVariable>(model, state)
@@ -2,15 +2,15 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.Workflows.Declarative.Interpreter;
using Microsoft.Agents.Workflows.Declarative.PowerFx;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
using Microsoft.Bot.ObjectModel;
using Microsoft.Bot.ObjectModel.Abstractions;
using Microsoft.PowerFx.Types;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows.Declarative.ObjectModel;
namespace Microsoft.Agents.AI.Workflows.Declarative.ObjectModel;
internal sealed class SetVariableExecutor(SetVariable model, WorkflowFormulaState state)
: DeclarativeActionExecutor<SetVariable>(model, state)
@@ -1,11 +1,11 @@
// Copyright (c) Microsoft. All rights reserved.
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Extensions.AI;
using Microsoft.PowerFx;
using Microsoft.PowerFx.Types;
namespace Microsoft.Agents.Workflows.Declarative.PowerFx.Functions;
namespace Microsoft.Agents.AI.Workflows.Declarative.PowerFx.Functions;
internal sealed class UserMessage : ReflectionFunction
{
@@ -1,11 +1,11 @@
// Copyright (c) Microsoft. All rights reserved.
using Microsoft.Agents.Workflows.Declarative.PowerFx.Functions;
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx.Functions;
using Microsoft.Bot.ObjectModel;
using Microsoft.PowerFx;
using Microsoft.PowerFx.Types;
namespace Microsoft.Agents.Workflows.Declarative.PowerFx;
namespace Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
internal static class RecalcEngineFactory
{
@@ -4,13 +4,13 @@ using System;
using System.Collections.Frozen;
using System.Globalization;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Bot.ObjectModel;
using Microsoft.Bot.ObjectModel.SystemVariables;
using Microsoft.Extensions.AI;
using Microsoft.PowerFx.Types;
namespace Microsoft.Agents.Workflows.Declarative.PowerFx;
namespace Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
internal static class SystemScope
{
@@ -3,7 +3,7 @@
using Microsoft.Bot.ObjectModel;
using Microsoft.PowerFx.Types;
namespace Microsoft.Agents.Workflows.Declarative.PowerFx.Functions;
namespace Microsoft.Agents.AI.Workflows.Declarative.PowerFx.Functions;
internal static class TypeSchema
{
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
namespace Microsoft.Agents.Workflows.Declarative.PowerFx;
namespace Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
/// <summary>
/// Represents the absence of an assigned value for a variable used in an expression.
@@ -3,7 +3,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Bot.ObjectModel;
using Microsoft.Bot.ObjectModel.Abstractions;
using Microsoft.Bot.ObjectModel.Analysis;
@@ -11,7 +11,7 @@ using Microsoft.Bot.ObjectModel.PowerFx;
using Microsoft.Extensions.Configuration;
using Microsoft.PowerFx.Types;
namespace Microsoft.Agents.Workflows.Declarative.PowerFx;
namespace Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
internal sealed record class WorkflowTypeInfo(ISet<string> EnvironmentVariables, IList<VariableInformationDiagnostic> UserVariables);
@@ -3,7 +3,7 @@
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Bot.ObjectModel;
using Microsoft.Bot.ObjectModel.Abstractions;
using Microsoft.Bot.ObjectModel.Exceptions;
@@ -11,7 +11,7 @@ using Microsoft.PowerFx;
using Microsoft.PowerFx.Types;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows.Declarative.PowerFx;
namespace Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
internal sealed class WorkflowExpressionEngine
{
@@ -5,12 +5,12 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Declarative.Extensions;
using Microsoft.Agents.AI.Workflows.Declarative.Extensions;
using Microsoft.Bot.ObjectModel;
using Microsoft.PowerFx;
using Microsoft.PowerFx.Types;
namespace Microsoft.Agents.Workflows.Declarative.PowerFx;
namespace Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
/// <summary>
/// Contains all variables scopes for a workflow.
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
using Microsoft.Agents.AI;
using Microsoft.Extensions.AI;
namespace Microsoft.Agents.Workflows.Declarative;
namespace Microsoft.Agents.AI.Workflows.Declarative;
/// <summary>
/// Base class for workflow agent providers.
@@ -3,7 +3,7 @@
using Microsoft.Agents.AI;
using Microsoft.Extensions.AI;
namespace Microsoft.Agents.Workflows;
namespace Microsoft.Agents.AI.Workflows;
internal static class AIAgentsAbstractionsExtensions
{
@@ -3,7 +3,7 @@
using Microsoft.Agents.AI;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows;
namespace Microsoft.Agents.AI.Workflows;
/// <summary>
/// Represents an event triggered when an agent run produces an update.
@@ -4,7 +4,7 @@ using System.Collections.Generic;
using Microsoft.Agents.AI;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows;
namespace Microsoft.Agents.AI.Workflows;
/// <summary>
/// Represents an event triggered when an agent run produces an update.
@@ -14,7 +14,7 @@ using Microsoft.Agents.AI;
using Microsoft.Extensions.AI;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows;
namespace Microsoft.Agents.AI.Workflows;
/// <summary>
/// Provides utility methods for constructing common patterns of workflows composed of agents.
@@ -4,7 +4,7 @@ using System;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.Agents.Workflows;
namespace Microsoft.Agents.AI.Workflows;
/// <summary>
/// Executes a workflow step that incrementally aggregates input messages using a user-provided aggregation function.
@@ -6,7 +6,7 @@ using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.AI;
namespace Microsoft.Agents.Workflows;
namespace Microsoft.Agents.AI.Workflows;
internal class ChatProtocolExecutorOptions
{
@@ -4,7 +4,7 @@ using System;
using System.Text.Json.Serialization;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows;
namespace Microsoft.Agents.AI.Workflows;
/// <summary>
/// Represents a checkpoint with a unique identifier and a timestamp indicating when it was created.
@@ -2,9 +2,9 @@
using System.Text.Json;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Checkpointing;
using Microsoft.Agents.AI.Workflows.Checkpointing;
namespace Microsoft.Agents.Workflows;
namespace Microsoft.Agents.AI.Workflows;
/// <summary>
/// A manager for storing and retrieving workflow execution checkpoints.
@@ -3,10 +3,10 @@
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Agents.Workflows.Checkpointing;
using Microsoft.Agents.AI.Workflows.Checkpointing;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows;
namespace Microsoft.Agents.AI.Workflows;
/// <summary>
/// Represents a workflow run that supports checkpointing.
@@ -2,10 +2,10 @@
using System.Collections.Generic;
using System.Text.Json.Serialization;
using Microsoft.Agents.Workflows.Execution;
using Microsoft.Agents.AI.Workflows.Execution;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
internal sealed class Checkpoint
{
@@ -2,7 +2,7 @@
using System.Threading.Tasks;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
internal sealed class CheckpointManagerImpl<TStoreObject> : ICheckpointManager
{
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft. All rights reserved.
using System.Text.Json.Serialization;
using Microsoft.Agents.Workflows.Execution;
using Microsoft.Agents.AI.Workflows.Execution;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// Represents a direct <see cref="Edge"/> in the <see cref="Workflow"/>.
@@ -4,7 +4,7 @@ using System.Diagnostics.CodeAnalysis;
using System.Text.Json;
using System.Text.Json.Serialization.Metadata;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// Provides support for using <see cref="EdgeId"/> values as dictionary keys when serializing and deserializing JSON.
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft. All rights reserved.
using System.Text.Json.Serialization;
using Microsoft.Agents.Workflows.Execution;
using Microsoft.Agents.AI.Workflows.Execution;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// Base class representing information about an edge in a workflow.
@@ -2,9 +2,9 @@
using System.Text.Json;
using System.Text.Json.Serialization.Metadata;
using Microsoft.Agents.Workflows.Execution;
using Microsoft.Agents.AI.Workflows.Execution;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// Provides support for using <see cref="ExecutorIdentity"/> values as dictionary keys when serializing and deserializing JSON.
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
internal sealed record class ExecutorInfo(TypeId ExecutorType, string ExecutorId)
{
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft. All rights reserved.
using System.Text.Json.Serialization;
using Microsoft.Agents.Workflows.Execution;
using Microsoft.Agents.AI.Workflows.Execution;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// Represents a fan-in <see cref="Edge"/> in the <see cref="Workflow"/>.
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft. All rights reserved.
using System.Text.Json.Serialization;
using Microsoft.Agents.Workflows.Execution;
using Microsoft.Agents.AI.Workflows.Execution;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// Represents a fan-out <see cref="Edge"/> in the <see cref="Workflow"/>.
@@ -8,7 +8,7 @@ using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// Provides a file system-based implementation of a JSON checkpoint store that persists checkpoint data and index
@@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// A manager for storing and retrieving workflow execution checkpoints.
@@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// Defines a contract for storing and retrieving checkpoints associated with a specific run and key.
@@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
internal interface ICheckpointingRunner
{
@@ -2,7 +2,7 @@
using System;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// Implements an abstraction across serialization mechanisms to represent a lazily-deserialized value.
@@ -2,7 +2,7 @@
using System;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// Defines methods for marshalling and unmarshalling objects to and from a wire format.
@@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// An in-memory implementation of <see cref="ICheckpointManager"/> that stores checkpoints in a dictionary.
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// Information about an input port, including its input and output types.
@@ -5,7 +5,7 @@ using System.Text.Json;
using System.Text.Json.Serialization.Metadata;
using System.Threading.Tasks;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// An abstract base class for checkpoint stores that use JSON for serialization.
@@ -5,7 +5,7 @@ using System.Text.Json;
using System.Text.Json.Serialization;
using System.Text.Json.Serialization.Metadata;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// Provides support for JSON serialization and deserialization using a specified JsonTypeInfo.
@@ -5,7 +5,7 @@ using System.Diagnostics.CodeAnalysis;
using System.Text.Json;
using System.Text.Json.Serialization.Metadata;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// Provides support for using <typeparamref name="T"/> values as dictionary keys when serializing and deserializing JSON.
@@ -4,7 +4,7 @@ using System;
using System.Text.Json;
using System.Text.Json.Serialization.Metadata;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
internal sealed class JsonMarshaller : IWireMarshaller<JsonElement>
{
@@ -3,7 +3,7 @@
using System;
using System.Text.Json;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// Represents a value serialized to the JSON format (<see cref="JsonMarshaller"/>).
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft. All rights reserved.
using System.Text.Json.Serialization;
using Microsoft.Agents.Workflows.Execution;
using Microsoft.Agents.AI.Workflows.Execution;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
internal sealed class PortableMessageEnvelope
{
@@ -5,7 +5,7 @@ using System.Text.Json;
using System.Text.Json.Serialization;
using System.Text.Json.Serialization.Metadata;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// Provides special handling for <see cref="PortableValue"/> serialization and deserialization, enabling delayed deserialization
@@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.Linq;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
internal static class RepresentationExtensions
{
@@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
internal sealed class RunCheckpointCache<TStoreObject>
{
@@ -6,7 +6,7 @@ using System.Text.Json;
using System.Text.Json.Serialization.Metadata;
using System.Text.RegularExpressions;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// Provides support for using <see cref="ScopeKey"/> values as dictionary keys when serializing and deserializing JSON.
@@ -4,7 +4,7 @@ using System;
using System.Text.Json.Serialization;
using Microsoft.Shared.Diagnostics;
namespace Microsoft.Agents.Workflows.Checkpointing;
namespace Microsoft.Agents.AI.Workflows.Checkpointing;
/// <summary>
/// A representation of a type's identity, including its assembly and type names.

Some files were not shown because too many files have changed in this diff Show More