mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
* Renaming Microsoft.Agent.Workflows to Microsoft.Agents.AI.Workflows * Removing local settings. * Removing remining old files from merge.
26 lines
584 B
C#
26 lines
584 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using Microsoft.Bot.ObjectModel;
|
|
|
|
namespace Microsoft.Agents.AI.Workflows.Declarative.Interpreter;
|
|
|
|
internal sealed class WorkflowElementWalker : BotElementWalker
|
|
{
|
|
private readonly DialogActionVisitor _visitor;
|
|
|
|
public WorkflowElementWalker(DialogActionVisitor visitor)
|
|
{
|
|
this._visitor = visitor;
|
|
}
|
|
|
|
public override bool DefaultVisit(BotElement definition)
|
|
{
|
|
if (definition is DialogAction action)
|
|
{
|
|
action.Accept(this._visitor);
|
|
}
|
|
|
|
return true;
|
|
}
|
|
}
|