mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
* Builds locally and tests pass * Fix typo * Reverted nuget config change to remove internal feed and map to new public object model package with renames. * Renaming Bot object model in additional sample. --------- Co-authored-by: Peter Ibekwe <peibekwe@microsoft.com>
26 lines
587 B
C#
26 lines
587 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using Microsoft.Agents.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;
|
|
}
|
|
}
|