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
921 B
C#
26 lines
921 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System.Collections.Frozen;
|
|
using System.Collections.Generic;
|
|
using Microsoft.Agents.AI.Workflows.Declarative.PowerFx;
|
|
using Microsoft.Agents.ObjectModel;
|
|
|
|
namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen;
|
|
|
|
internal partial class ClearAllVariablesTemplate
|
|
{
|
|
public ClearAllVariablesTemplate(ClearAllVariables model)
|
|
{
|
|
this.Model = this.Initialize(model);
|
|
}
|
|
|
|
public ClearAllVariables Model { get; }
|
|
|
|
public static readonly FrozenDictionary<VariablesToClearWrapper, string?> ScopeMap =
|
|
new Dictionary<VariablesToClearWrapper, string?>()
|
|
{
|
|
[VariablesToClearWrapper.Get(VariablesToClear.AllGlobalVariables)] = VariableScopeNames.Global,
|
|
[VariablesToClearWrapper.Get(VariablesToClear.ConversationScopedVariables)] = WorkflowFormulaState.DefaultScopeName,
|
|
}.ToFrozenDictionary();
|
|
}
|