mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
.NET Workflows - Clean-up declarative docs and product-context. (#1134)
* Clean-up * Rollback sample --------- Co-authored-by: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com>
This commit is contained in:
+2
@@ -22,6 +22,8 @@ internal sealed class WorkflowTemplateVisitor : DialogActionVisitor
|
||||
{
|
||||
this._rootId = workflowId;
|
||||
this._workflowModel = new WorkflowModel<string>(new RootTemplate(workflowId, typeInfo));
|
||||
|
||||
WorkflowDiagnostics.SetFoundryProduct();
|
||||
}
|
||||
|
||||
public bool HasUnsupportedActions { get; private set; }
|
||||
|
||||
@@ -19,6 +19,14 @@ internal static class WorkflowDiagnostics
|
||||
{
|
||||
private static readonly WorkflowFeatureConfiguration s_semanticFeatureConfig = new();
|
||||
|
||||
public static void SetFoundryProduct()
|
||||
{
|
||||
if (!ProductContext.IsLocalScopeSupported())
|
||||
{
|
||||
ProductContext.SetContext(Product.Foundry);
|
||||
}
|
||||
}
|
||||
|
||||
public static WorkflowTypeInfo Describe<TElement>(this TElement workflowElement) where TElement : BotElement, IDialogBase
|
||||
{
|
||||
SemanticModel semanticModel = workflowElement.GetSemanticModel(new PowerFxExpressionChecker(s_semanticFeatureConfig), s_semanticFeatureConfig);
|
||||
|
||||
+1
-4
@@ -121,10 +121,7 @@ internal sealed class WorkflowFormulaState
|
||||
|
||||
public static string GetScopeName(string? scopeName)
|
||||
{
|
||||
if (!ProductContext.IsLocalScopeSupported())
|
||||
{
|
||||
ProductContext.SetContext(Product.Foundry);
|
||||
}
|
||||
WorkflowDiagnostics.SetFoundryProduct();
|
||||
|
||||
scopeName ??= DefaultScopeName;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user