From 5c0bea12e3cadcbfebf7226c3a393276edb80ee9 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Wed, 1 Oct 2025 04:43:29 -0400 Subject: [PATCH] Add linePragmas="false" to t4 templates (#1041) --- .../CodeGen/AddConversationMessageTemplate.cs | 1845 +---------------- .../CodeGen/AddConversationMessageTemplate.tt | 2 +- .../CodeGen/ClearAllVariablesTemplate.cs | 1805 +--------------- .../CodeGen/ClearAllVariablesTemplate.tt | 2 +- .../CodeGen/ConditionGroupTemplate.cs | 1825 +--------------- .../CodeGen/ConditionGroupTemplate.tt | 2 +- .../CopyConversationMessagesTemplate.cs | 1810 +--------------- .../CopyConversationMessagesTemplate.tt | 2 +- .../CodeGen/CreateConversationTemplate.cs | 1810 +--------------- .../CodeGen/CreateConversationTemplate.tt | 2 +- .../CodeGen/DefaultTemplate.cs | 30 +- .../CodeGen/DefaultTemplate.tt | 2 +- .../CodeGen/EdgeTemplate.cs | 50 +- .../CodeGen/EdgeTemplate.tt | 2 +- .../CodeGen/EditTableV2Template.cs | 1800 +--------------- .../CodeGen/EditTableV2Template.tt | 2 +- .../CodeGen/EmptyTemplate.cs | 30 +- .../CodeGen/EmptyTemplate.tt | 2 +- .../CodeGen/ForeachTemplate.cs | 1820 +--------------- .../CodeGen/ForeachTemplate.tt | 2 +- .../CodeGen/InstanceTemplate.cs | 30 +- .../CodeGen/InstanceTemplate.tt | 2 +- .../CodeGen/InvokeAzureAgentTemplate.cs | 1815 +--------------- .../CodeGen/InvokeAzureAgentTemplate.tt | 2 +- .../CodeGen/ParseValueTemplate.cs | 1845 +---------------- .../CodeGen/ParseValueTemplate.tt | 2 +- .../CodeGen/ProviderTemplate.cs | 90 +- .../CodeGen/ProviderTemplate.tt | 2 +- .../CodeGen/QuestionTemplate.cs | 1800 +--------------- .../CodeGen/QuestionTemplate.tt | 2 +- .../CodeGen/ResetVariableTemplate.cs | 1810 +--------------- .../CodeGen/ResetVariableTemplate.tt | 2 +- .../RetrieveConversationMessageTemplate.cs | 1810 +--------------- .../RetrieveConversationMessageTemplate.tt | 2 +- .../RetrieveConversationMessagesTemplate.cs | 1810 +--------------- .../RetrieveConversationMessagesTemplate.tt | 2 +- .../CodeGen/RootTemplate.cs | 70 +- .../CodeGen/RootTemplate.tt | 2 +- .../CodeGen/SendActivityTemplate.cs | 1835 +--------------- .../CodeGen/SendActivityTemplate.tt | 2 +- .../CodeGen/SetMultipleVariablesTemplate.cs | 1810 +--------------- .../CodeGen/SetMultipleVariablesTemplate.tt | 2 +- .../CodeGen/SetTextVariableTemplate.cs | 1810 +--------------- .../CodeGen/SetTextVariableTemplate.tt | 2 +- .../CodeGen/SetVariableTemplate.cs | 1810 +--------------- .../CodeGen/SetVariableTemplate.tt | 2 +- 46 files changed, 69 insertions(+), 31147 deletions(-) diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/AddConversationMessageTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/AddConversationMessageTemplate.cs index 7d9c848a7d..11eb1fa62c 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/AddConversationMessageTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/AddConversationMessageTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,12 +19,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\AddConversationMessageTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class AddConversationMessageTemplate : ActionTemplate { -#line hidden /// /// Create the template output /// @@ -49,53 +46,26 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n"); this.Write("\n\n/// \n/// Adds a new message to the specified agent conversation\n/// \ninternal sealed class "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\AddConversationMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Name)); - - #line default - #line hidden this.Write("Executor(FormulaSession session, WorkflowAgentProvider agentProvider) : ActionExe" + "cutor(id: \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\AddConversationMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write("\", session)\n{\n // \n protected override async ValueTask ExecuteAsync(IWorkflowContext context, CancellationToken cancellationToken)\n " + " {"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\AddConversationMessageTemplate.tt" EvaluateStringExpression(this.Model.ConversationId, "conversationId", isNullable: true); - - #line default - #line hidden this.Write("\n ArgumentNullException.ThrowIfNull(conversationId, nameof(conversationId)" + ");\n ChatMessage newMessage = new(ChatRole."); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\AddConversationMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatEnum(this.Model.Role, RoleMap))); - - #line default - #line hidden this.Write(", [.. this.GetContentAsync(context).ToEnumerable()]) { AdditionalProperties = thi" + "s.GetMetadata() };\n await agentProvider.CreateMessageAsync(conversationId" + ", newMessage, cancellationToken).ConfigureAwait(false);"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\AddConversationMessageTemplate.tt" AssignVariable(this.Message, "newMessage"); - - #line default - #line hidden this.Write("\n return default;\n }\n\n private async IAsyncEnumerable Get" + "ContentAsync(IWorkflowContext context)\n {"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\AddConversationMessageTemplate.tt" int index = 0; foreach (AddConversationMessageContent content in this.Model.Content) @@ -105,386 +75,136 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen AgentMessageContentType contentType = content.Type.Value; if (contentType == AgentMessageContentType.ImageUrl) { - - #line default - #line hidden this.Write("\n yield return new UriContent(contentValue, \"image/*\");"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\AddConversationMessageTemplate.tt" } else if (contentType == AgentMessageContentType.ImageFile) { - - #line default - #line hidden this.Write("\n yield return new HostedFileContent(contentValue);"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\AddConversationMessageTemplate.tt" } else { - - #line default - #line hidden this.Write("\n yield return new TextContent(contentValue"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\AddConversationMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(index)); - - #line default - #line hidden this.Write(");"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\AddConversationMessageTemplate.tt" } } - - #line default - #line hidden this.Write("\n }\n\n private AdditionalPropertiesDictionary? GetMetadata()\n {"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\AddConversationMessageTemplate.tt" EvaluateRecordExpression(this.Model.Metadata, "metadata"); - - #line default - #line hidden this.Write("\n\n if (metadata is null)\n {\n return null; \n }\n" + "\n return new AdditionalPropertiesDictionary(metadata);\n }\n}"); return this.GenerationEnvironment.ToString(); } - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" void AssignVariable(PropertyPath targetVariable, string valueVariable, bool tightFormat = false) { if (targetVariable is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n await context.QueueStateUpdateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableName(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\", value: "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(valueVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableScope(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" if (!tightFormat) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" } } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" void EvaluateBoolExpression(BoolExpression expression, string targetVariable, bool defaultValue = false) { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync>("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" void EvaluateEnumExpression( EnumExpression expression, @@ -498,60 +218,20 @@ void EvaluateEnumExpression( string resultType = $"{GetTypeAlias()}{(isNullable ? "?" : "")}"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsLiteral) @@ -559,1777 +239,562 @@ this.Write(";"); resultMap.TryGetValue(expression.LiteralValue, out string resultValue); if (qualifyResult) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("."); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(resultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" void EvaluateIntExpression(IntExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "int?" : "int"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "0")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" void EvaluateListExpression(ValueExpression expression, string targetVariable) { string typeName = GetTypeAlias(); if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.ReadListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("> = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" void EvaluateRecordExpression(ObjectExpression expression, string targetVariable) { string resultTypeName = $"Dictionary()}?>?"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" =\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" void EvaluateStringExpression(StringExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "string?" : "string"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "string.Empty")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsLiteral) { if (expression.LiteralValue.Contains("\n")) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = \n \"\"\"\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n \"\"\";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" void EvaluateValueExpression(ValueExpression expression, string targetVariable) => EvaluateValueExpression(expression, targetVariable); @@ -2338,418 +803,133 @@ void EvaluateValueExpression(ValueExpression expression, string targetVa { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" void EvaluateMessageTemplate(TemplateLine templateLine, string variableName) { if (templateLine is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" =\n await context.FormatTemplateAsync(\n \"\"\""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" FormatMessageTemplate(templateLine); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n \"\"\");"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } @@ -2758,34 +938,13 @@ void FormatMessageTemplate(TemplateLine line) { foreach (string text in line.ToTemplateString().ByLine()) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(text)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } - - #line default - #line hidden } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/AddConversationMessageTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/AddConversationMessageTemplate.tt index 24c2923864..6ef39d2f00 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/AddConversationMessageTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/AddConversationMessageTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="ActionTemplate" visibility="internal" #> +<#@ template language="C#" inherits="ActionTemplate" visibility="internal" linePragmas="false" #> <#@ output extension=".cs" #> <#@ assembly name="System.Core" #> <#@ include file="Snippets/Index.tt" once="true" #> diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ClearAllVariablesTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ClearAllVariablesTemplate.cs index fc9224a3a3..749b4a3873 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ClearAllVariablesTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ClearAllVariablesTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,12 +19,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ClearAllVariablesTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class ClearAllVariablesTemplate : ActionTemplate { -#line hidden /// /// Create the template output /// @@ -49,362 +46,125 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n"); this.Write("\n/// \n/// Reset all the state for the targeted variable scope.\n/// \ninternal sealed class "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ClearAllVariablesTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Name)); - - #line default - #line hidden this.Write("Executor(FormulaSession session) : ActionExecutor(id: \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ClearAllVariablesTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write("\", session)\n{\n // \n protected override async ValueTask ExecuteAsync(IWorkflowContext context, CancellationToken cancellationToken)\n " + " {"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ClearAllVariablesTemplate.tt" EvaluateEnumExpression(this.Model.Variables, "targetScopeName", ScopeMap, isNullable: true); - - #line default - #line hidden this.Write("\n await context.QueueClearScopeAsync(targetScopeName).ConfigureAwait(false" + ");\n\n return default;\n }\n}\n"); return this.GenerationEnvironment.ToString(); } - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" void AssignVariable(PropertyPath targetVariable, string valueVariable, bool tightFormat = false) { if (targetVariable is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n await context.QueueStateUpdateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableName(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\", value: "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(valueVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableScope(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" if (!tightFormat) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" } } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" void EvaluateBoolExpression(BoolExpression expression, string targetVariable, bool defaultValue = false) { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync>("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" void EvaluateEnumExpression( EnumExpression expression, @@ -418,60 +178,20 @@ void EvaluateEnumExpression( string resultType = $"{GetTypeAlias()}{(isNullable ? "?" : "")}"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsLiteral) @@ -479,1777 +199,562 @@ this.Write(";"); resultMap.TryGetValue(expression.LiteralValue, out string resultValue); if (qualifyResult) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("."); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(resultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" void EvaluateIntExpression(IntExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "int?" : "int"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "0")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" void EvaluateListExpression(ValueExpression expression, string targetVariable) { string typeName = GetTypeAlias(); if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.ReadListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("> = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" void EvaluateRecordExpression(ObjectExpression expression, string targetVariable) { string resultTypeName = $"Dictionary()}?>?"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" =\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" void EvaluateStringExpression(StringExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "string?" : "string"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "string.Empty")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsLiteral) { if (expression.LiteralValue.Contains("\n")) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = \n \"\"\"\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n \"\"\";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" void EvaluateValueExpression(ValueExpression expression, string targetVariable) => EvaluateValueExpression(expression, targetVariable); @@ -2258,418 +763,133 @@ void EvaluateValueExpression(ValueExpression expression, string targetVa { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" void EvaluateMessageTemplate(TemplateLine templateLine, string variableName) { if (templateLine is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" =\n await context.FormatTemplateAsync(\n \"\"\""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" FormatMessageTemplate(templateLine); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n \"\"\");"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } @@ -2678,34 +898,13 @@ void FormatMessageTemplate(TemplateLine line) { foreach (string text in line.ToTemplateString().ByLine()) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(text)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } - - #line default - #line hidden } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ClearAllVariablesTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ClearAllVariablesTemplate.tt index 0b0ce3595c..fbac67edf2 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ClearAllVariablesTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ClearAllVariablesTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="ActionTemplate" visibility="internal" #> +<#@ template language="C#" inherits="ActionTemplate" visibility="internal" linePragmas="false" #> <#@ output extension=".cs" #> <#@ assembly name="System.Core" #> <#@ include file="Snippets/Index.tt" once="true" #> diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ConditionGroupTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ConditionGroupTemplate.cs index bbf8f68c3c..6e3c83ec4a 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ConditionGroupTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ConditionGroupTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,12 +19,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ConditionGroupTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class ConditionGroupTemplate : ActionTemplate { -#line hidden /// /// Create the template output /// @@ -49,24 +46,12 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n"); this.Write("\n/// \n/// Conditional branching similar to an if / elseif / elseif / els" + "e chain.\n/// \ninternal sealed class "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ConditionGroupTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Name)); - - #line default - #line hidden this.Write("Executor(FormulaSession session) : ActionExecutor(id: \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ConditionGroupTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write("\", session)\n{\n // \n protected override async ValueTask ExecuteAsync(IWorkflowContext context, CancellationToken cancellationToken)\n " + " {"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ConditionGroupTemplate.tt" for (int index = 0; index < this.Model.Conditions.Length; ++index) { @@ -77,371 +62,126 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen } EvaluateBoolExpression(conditionItem.Condition, $"condition{index}"); - - #line default - #line hidden this.Write("\n if (condition"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ConditionGroupTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(index)); - - #line default - #line hidden this.Write(")\n {\n return \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ConditionGroupTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(ConditionGroupExecutor.Steps.Item(this.Model, conditionItem))); - - #line default - #line hidden this.Write("\";\n }\n "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ConditionGroupTemplate.tt" } - - #line default - #line hidden this.Write("\n return \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ConditionGroupTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(ConditionGroupExecutor.Steps.Else(this.Model))); - - #line default - #line hidden this.Write("\";\n }\n}"); return this.GenerationEnvironment.ToString(); } - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" void AssignVariable(PropertyPath targetVariable, string valueVariable, bool tightFormat = false) { if (targetVariable is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n await context.QueueStateUpdateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableName(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\", value: "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(valueVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableScope(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" if (!tightFormat) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" } } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" void EvaluateBoolExpression(BoolExpression expression, string targetVariable, bool defaultValue = false) { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync>("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" void EvaluateEnumExpression( EnumExpression expression, @@ -455,60 +195,20 @@ void EvaluateEnumExpression( string resultType = $"{GetTypeAlias()}{(isNullable ? "?" : "")}"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsLiteral) @@ -516,1777 +216,562 @@ this.Write(";"); resultMap.TryGetValue(expression.LiteralValue, out string resultValue); if (qualifyResult) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("."); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(resultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" void EvaluateIntExpression(IntExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "int?" : "int"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "0")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" void EvaluateListExpression(ValueExpression expression, string targetVariable) { string typeName = GetTypeAlias(); if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.ReadListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("> = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" void EvaluateRecordExpression(ObjectExpression expression, string targetVariable) { string resultTypeName = $"Dictionary()}?>?"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" =\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" void EvaluateStringExpression(StringExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "string?" : "string"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "string.Empty")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsLiteral) { if (expression.LiteralValue.Contains("\n")) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = \n \"\"\"\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n \"\"\";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" void EvaluateValueExpression(ValueExpression expression, string targetVariable) => EvaluateValueExpression(expression, targetVariable); @@ -2295,418 +780,133 @@ void EvaluateValueExpression(ValueExpression expression, string targetVa { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" void EvaluateMessageTemplate(TemplateLine templateLine, string variableName) { if (templateLine is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" =\n await context.FormatTemplateAsync(\n \"\"\""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" FormatMessageTemplate(templateLine); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n \"\"\");"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } @@ -2715,34 +915,13 @@ void FormatMessageTemplate(TemplateLine line) { foreach (string text in line.ToTemplateString().ByLine()) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(text)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } - - #line default - #line hidden } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ConditionGroupTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ConditionGroupTemplate.tt index bef9936240..d91cadc4d2 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ConditionGroupTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ConditionGroupTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="ActionTemplate" visibility="internal" #> +<#@ template language="C#" inherits="ActionTemplate" visibility="internal" linePragmas="false" #> <#@ output extension=".cs" #> <#@ assembly name="System.Core" #> <#@ include file="Snippets/Index.tt" once="true" #> diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/CopyConversationMessagesTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/CopyConversationMessagesTemplate.cs index 6df1461111..809de19802 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/CopyConversationMessagesTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/CopyConversationMessagesTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,12 +19,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\CopyConversationMessagesTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class CopyConversationMessagesTemplate : ActionTemplate { -#line hidden /// /// Create the template output /// @@ -49,40 +46,20 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n"); this.Write("\n/// \n/// Copies one or more messages into the specified agent conversat" + "ion.\n/// \ninternal sealed class "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\CopyConversationMessagesTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Name)); - - #line default - #line hidden this.Write("Executor(FormulaSession session, WorkflowAgentProvider agentProvider) : ActionExe" + "cutor(id: \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\CopyConversationMessagesTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write("\", session)\n{\n // \n protected override async ValueTask ExecuteAsync(IWorkflowContext context, CancellationToken cancellationToken)\n " + " {"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\CopyConversationMessagesTemplate.tt" EvaluateStringExpression(this.Model.ConversationId, "conversationId", isNullable: true); - - #line default - #line hidden this.Write("\n ArgumentNullException.ThrowIfNull(conversationId, nameof(conversationId)" + ");"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\CopyConversationMessagesTemplate.tt" EvaluateValueExpression(this.Model.Messages, "messages"); - - #line default - #line hidden this.Write(@" if (messages is not null) { @@ -96,335 +73,113 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen }"); return this.GenerationEnvironment.ToString(); } - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" void AssignVariable(PropertyPath targetVariable, string valueVariable, bool tightFormat = false) { if (targetVariable is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n await context.QueueStateUpdateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableName(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\", value: "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(valueVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableScope(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" if (!tightFormat) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" } } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" void EvaluateBoolExpression(BoolExpression expression, string targetVariable, bool defaultValue = false) { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync>("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" void EvaluateEnumExpression( EnumExpression expression, @@ -438,60 +193,20 @@ void EvaluateEnumExpression( string resultType = $"{GetTypeAlias()}{(isNullable ? "?" : "")}"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsLiteral) @@ -499,1777 +214,562 @@ this.Write(";"); resultMap.TryGetValue(expression.LiteralValue, out string resultValue); if (qualifyResult) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("."); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(resultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" void EvaluateIntExpression(IntExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "int?" : "int"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "0")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" void EvaluateListExpression(ValueExpression expression, string targetVariable) { string typeName = GetTypeAlias(); if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.ReadListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("> = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" void EvaluateRecordExpression(ObjectExpression expression, string targetVariable) { string resultTypeName = $"Dictionary()}?>?"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" =\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" void EvaluateStringExpression(StringExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "string?" : "string"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "string.Empty")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsLiteral) { if (expression.LiteralValue.Contains("\n")) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = \n \"\"\"\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n \"\"\";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" void EvaluateValueExpression(ValueExpression expression, string targetVariable) => EvaluateValueExpression(expression, targetVariable); @@ -2278,418 +778,133 @@ void EvaluateValueExpression(ValueExpression expression, string targetVa { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" void EvaluateMessageTemplate(TemplateLine templateLine, string variableName) { if (templateLine is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" =\n await context.FormatTemplateAsync(\n \"\"\""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" FormatMessageTemplate(templateLine); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n \"\"\");"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } @@ -2698,34 +913,13 @@ void FormatMessageTemplate(TemplateLine line) { foreach (string text in line.ToTemplateString().ByLine()) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(text)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } - - #line default - #line hidden } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/CopyConversationMessagesTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/CopyConversationMessagesTemplate.tt index 15c26d75f7..aeb653db09 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/CopyConversationMessagesTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/CopyConversationMessagesTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="ActionTemplate" visibility="internal" #> +<#@ template language="C#" inherits="ActionTemplate" visibility="internal" linePragmas="false" #> <#@ output extension=".cs" #> <#@ assembly name="System.Core" #> <#@ include file="Snippets/Index.tt" once="true" #> diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/CreateConversationTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/CreateConversationTemplate.cs index 9b77f0c6a4..9910222793 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/CreateConversationTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/CreateConversationTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,12 +19,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\CreateConversationTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class CreateConversationTemplate : ActionTemplate { -#line hidden /// /// Create the template output /// @@ -49,372 +46,130 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n"); this.Write("\n/// \n/// Creates a new conversation and stores the identifier value to " + "the \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\CreateConversationTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Model.ConversationId)); - - #line default - #line hidden this.Write("\" variable.\n/// \ninternal sealed class "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\CreateConversationTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Name)); - - #line default - #line hidden this.Write("Executor(FormulaSession session, WorkflowAgentProvider agentProvider) : ActionExe" + "cutor(id: \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\CreateConversationTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write(@""", session) { protected override async ValueTask ExecuteAsync(IWorkflowContext context, CancellationToken cancellationToken) { string conversationId = await agentProvider.CreateConversationAsync(cancellationToken).ConfigureAwait(false);"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\CreateConversationTemplate.tt" AssignVariable(this.ConversationId, "conversationId"); - - #line default - #line hidden this.Write("\n return default;\n }\n}\n"); return this.GenerationEnvironment.ToString(); } - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" void AssignVariable(PropertyPath targetVariable, string valueVariable, bool tightFormat = false) { if (targetVariable is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n await context.QueueStateUpdateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableName(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\", value: "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(valueVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableScope(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" if (!tightFormat) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" } } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" void EvaluateBoolExpression(BoolExpression expression, string targetVariable, bool defaultValue = false) { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync>("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" void EvaluateEnumExpression( EnumExpression expression, @@ -428,60 +183,20 @@ void EvaluateEnumExpression( string resultType = $"{GetTypeAlias()}{(isNullable ? "?" : "")}"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsLiteral) @@ -489,1777 +204,562 @@ this.Write(";"); resultMap.TryGetValue(expression.LiteralValue, out string resultValue); if (qualifyResult) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("."); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(resultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" void EvaluateIntExpression(IntExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "int?" : "int"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "0")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" void EvaluateListExpression(ValueExpression expression, string targetVariable) { string typeName = GetTypeAlias(); if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.ReadListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("> = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" void EvaluateRecordExpression(ObjectExpression expression, string targetVariable) { string resultTypeName = $"Dictionary()}?>?"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" =\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" void EvaluateStringExpression(StringExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "string?" : "string"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "string.Empty")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsLiteral) { if (expression.LiteralValue.Contains("\n")) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = \n \"\"\"\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n \"\"\";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" void EvaluateValueExpression(ValueExpression expression, string targetVariable) => EvaluateValueExpression(expression, targetVariable); @@ -2268,418 +768,133 @@ void EvaluateValueExpression(ValueExpression expression, string targetVa { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" void EvaluateMessageTemplate(TemplateLine templateLine, string variableName) { if (templateLine is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" =\n await context.FormatTemplateAsync(\n \"\"\""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" FormatMessageTemplate(templateLine); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n \"\"\");"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } @@ -2688,34 +903,13 @@ void FormatMessageTemplate(TemplateLine line) { foreach (string text in line.ToTemplateString().ByLine()) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(text)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } - - #line default - #line hidden } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/CreateConversationTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/CreateConversationTemplate.tt index 1e9cbaa6b2..1f935c855f 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/CreateConversationTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/CreateConversationTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="ActionTemplate" visibility="internal" #> +<#@ template language="C#" inherits="ActionTemplate" visibility="internal" linePragmas="false" #> <#@ output extension=".cs" #> <#@ assembly name="System.Core" #> <#@ include file="Snippets/Index.tt" once="true" #> diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/DefaultTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/DefaultTemplate.cs index 02a28511a1..afb0cc5f1d 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/DefaultTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/DefaultTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -15,12 +15,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\DefaultTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class DefaultTemplate : ActionTemplate, IModeledAction { -#line hidden /// /// Create the template output /// @@ -29,38 +26,15 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n"); this.Write("\n"); this.Write("\nDelegateExecutor "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\DefaultTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.InstanceVariable)); - - #line default - #line hidden this.Write(" = new(id: \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\DefaultTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write("\", "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\DefaultTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.RootVariable)); - - #line default - #line hidden this.Write(".Session"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\DefaultTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Action is not null ? $", {this.Action}" : "")); - - #line default - #line hidden this.Write(");\n"); return this.GenerationEnvironment.ToString(); } } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/DefaultTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/DefaultTemplate.tt index 32c550ae07..286f2e2241 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/DefaultTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/DefaultTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="ActionTemplate, IModeledAction" visibility="internal" #> +<#@ template language="C#" inherits="ActionTemplate, IModeledAction" visibility="internal" linePragmas="false" #> <#@ import namespace="Microsoft.Agents.AI.Workflows.Declarative.Interpreter" #> <#@ assembly name="System.Core" #> DelegateExecutor <#= this.InstanceVariable #> = new(id: "<#= this.Id #>", <#= this.RootVariable #>.Session<#= this.Action is not null ? $", {this.Action}" : "" #>); diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EdgeTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EdgeTemplate.cs index 16268eb331..e4243c3899 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EdgeTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EdgeTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -14,12 +14,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\EdgeTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class EdgeTemplate : CodeTemplate { -#line hidden /// /// Create the template output /// @@ -27,71 +24,28 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen { this.Write("\n"); this.Write("\n"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\EdgeTemplate.tt" if (this.Condition is not null) { - - #line default - #line hidden this.Write("\n builder.AddEdge("); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\EdgeTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.SourceId)); - - #line default - #line hidden this.Write(", "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\EdgeTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.TargetId)); - - #line default - #line hidden this.Write(", (object? result) => "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\EdgeTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Condition)); - - #line default - #line hidden this.Write(");"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\EdgeTemplate.tt" } else { - - #line default - #line hidden this.Write("\n builder.AddEdge("); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\EdgeTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.SourceId)); - - #line default - #line hidden this.Write(", "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\EdgeTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.TargetId)); - - #line default - #line hidden this.Write(");"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\EdgeTemplate.tt" } - - #line default - #line hidden this.Write("\n"); return this.GenerationEnvironment.ToString(); } } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EdgeTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EdgeTemplate.tt index e76408e167..258cafdaf7 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EdgeTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EdgeTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="CodeTemplate" visibility="internal" #> +<#@ template language="C#" inherits="CodeTemplate" visibility="internal" linePragmas="false" #> <#@ assembly name="System.Core" #> <# if (this.Condition is not null) {#> diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EditTableV2Template.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EditTableV2Template.cs index f464e712e8..c94f65dc51 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EditTableV2Template.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EditTableV2Template.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,12 +19,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\EditTableV2Template.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class EditTableV2Template : ActionTemplate { -#line hidden /// /// Create the template output /// @@ -48,353 +45,121 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n"); this.Write("\n"); this.Write("\n/// \n/// Modify items in a list\n/// \ninternal sealed class "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\EditTableV2Template.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Name)); - - #line default - #line hidden this.Write("Executor(FormulaSession session) : ActionExecutor(id: \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\EditTableV2Template.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write("\", session)\n{\n // \n protected override async ValueTask ExecuteAsync(IWorkflowContext context, CancellationToken cancellationToken)\n " + " {\n return default;\n }\n}"); return this.GenerationEnvironment.ToString(); } - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" void AssignVariable(PropertyPath targetVariable, string valueVariable, bool tightFormat = false) { if (targetVariable is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n await context.QueueStateUpdateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableName(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\", value: "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(valueVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableScope(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" if (!tightFormat) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" } } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" void EvaluateBoolExpression(BoolExpression expression, string targetVariable, bool defaultValue = false) { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync>("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" void EvaluateEnumExpression( EnumExpression expression, @@ -408,60 +173,20 @@ void EvaluateEnumExpression( string resultType = $"{GetTypeAlias()}{(isNullable ? "?" : "")}"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsLiteral) @@ -469,1777 +194,562 @@ this.Write(";"); resultMap.TryGetValue(expression.LiteralValue, out string resultValue); if (qualifyResult) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("."); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(resultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" void EvaluateIntExpression(IntExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "int?" : "int"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "0")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" void EvaluateListExpression(ValueExpression expression, string targetVariable) { string typeName = GetTypeAlias(); if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.ReadListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("> = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" void EvaluateRecordExpression(ObjectExpression expression, string targetVariable) { string resultTypeName = $"Dictionary()}?>?"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" =\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" void EvaluateStringExpression(StringExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "string?" : "string"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "string.Empty")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsLiteral) { if (expression.LiteralValue.Contains("\n")) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = \n \"\"\"\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n \"\"\";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" void EvaluateValueExpression(ValueExpression expression, string targetVariable) => EvaluateValueExpression(expression, targetVariable); @@ -2248,418 +758,133 @@ void EvaluateValueExpression(ValueExpression expression, string targetVa { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" void EvaluateMessageTemplate(TemplateLine templateLine, string variableName) { if (templateLine is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" =\n await context.FormatTemplateAsync(\n \"\"\""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" FormatMessageTemplate(templateLine); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n \"\"\");"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } @@ -2668,34 +893,13 @@ void FormatMessageTemplate(TemplateLine line) { foreach (string text in line.ToTemplateString().ByLine()) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(text)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } - - #line default - #line hidden } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EditTableV2Template.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EditTableV2Template.tt index 58b25b9a74..a39630ac5b 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EditTableV2Template.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EditTableV2Template.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="ActionTemplate" visibility="internal" #> +<#@ template language="C#" inherits="ActionTemplate" visibility="internal" linePragmas="false" #> <#@ output extension=".cs" #> <#@ assembly name="System.Core" #> <#@ include file="Snippets/Index.tt" once="true" #> diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EmptyTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EmptyTemplate.cs index 8bbf0fdb33..d37bd2d56a 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EmptyTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EmptyTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -15,12 +15,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\EmptyTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class EmptyTemplate : CodeTemplate, IModeledAction { -#line hidden /// /// Create the template output /// @@ -29,38 +26,15 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n"); this.Write("\n"); this.Write("\nDelegateExecutor "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\EmptyTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.InstanceVariable)); - - #line default - #line hidden this.Write(" = new(id: \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\EmptyTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write("\", "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\EmptyTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.RootVariable)); - - #line default - #line hidden this.Write(".Session"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\EmptyTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Action is not null ? $", {this.Action}" : "")); - - #line default - #line hidden this.Write(");\n"); return this.GenerationEnvironment.ToString(); } } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EmptyTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EmptyTemplate.tt index 799e00f6b4..bd643034e9 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EmptyTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/EmptyTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="CodeTemplate, IModeledAction" visibility="internal" #> +<#@ template language="C#" inherits="CodeTemplate, IModeledAction" visibility="internal" linePragmas="false" #> <#@ import namespace="Microsoft.Agents.AI.Workflows.Declarative.Interpreter" #> <#@ assembly name="System.Core" #> DelegateExecutor <#= this.InstanceVariable #> = new(id: "<#= this.Id #>", <#= this.RootVariable #>.Session<#= this.Action is not null ? $", {this.Action}" : "" #>); diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ForeachTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ForeachTemplate.cs index 9ba11d7a1e..c0bce27b9e 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ForeachTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ForeachTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,12 +19,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ForeachTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class ForeachTemplate : ActionTemplate { -#line hidden /// /// Create the template output /// @@ -48,26 +45,11 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n"); this.Write("\n"); this.Write("\n/// \n/// Loops over a list assignign the loop variable to \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ForeachTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Model.Value)); - - #line default - #line hidden this.Write("\" variable.\n/// \ninternal sealed class "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ForeachTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Name)); - - #line default - #line hidden this.Write("Executor(FormulaSession session) : ActionExecutor(id: \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ForeachTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write(@""", session) { private int _index; @@ -79,14 +61,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen protected override async ValueTask ExecuteAsync(IWorkflowContext context, CancellationToken cancellationToken) { this._index = 0;"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ForeachTemplate.tt" EvaluateValueExpression(this.Model.Items, "evaluatedValue"); - - #line default - #line hidden this.Write(@" if (evaluatedValue == null) @@ -115,8 +92,6 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen { object value = this._values[this._index]; "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ForeachTemplate.tt" AssignVariable(this.Value, "value", tightFormat: true); @@ -125,14 +100,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen AssignVariable(this.Index, "this._index", tightFormat: true); } - - #line default - #line hidden this.Write("\n\n this._index++;\n }\n }\n\n public async ValueTask ResetAsy" + "nc(IWorkflowContext context, object? _, CancellationToken cancellationToken)\n " + " {"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ForeachTemplate.tt" AssignVariable(this.Value, "UnassignedValue.Instance", tightFormat: true); @@ -141,341 +111,116 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen AssignVariable(this.Index, "UnassignedValue.Instance", tightFormat: true); } - - #line default - #line hidden this.Write("\n }\n}"); return this.GenerationEnvironment.ToString(); } - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" void AssignVariable(PropertyPath targetVariable, string valueVariable, bool tightFormat = false) { if (targetVariable is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n await context.QueueStateUpdateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableName(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\", value: "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(valueVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableScope(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" if (!tightFormat) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" } } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" void EvaluateBoolExpression(BoolExpression expression, string targetVariable, bool defaultValue = false) { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync>("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" void EvaluateEnumExpression( EnumExpression expression, @@ -489,60 +234,20 @@ void EvaluateEnumExpression( string resultType = $"{GetTypeAlias()}{(isNullable ? "?" : "")}"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsLiteral) @@ -550,1777 +255,562 @@ this.Write(";"); resultMap.TryGetValue(expression.LiteralValue, out string resultValue); if (qualifyResult) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("."); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(resultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" void EvaluateIntExpression(IntExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "int?" : "int"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "0")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" void EvaluateListExpression(ValueExpression expression, string targetVariable) { string typeName = GetTypeAlias(); if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.ReadListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("> = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" void EvaluateRecordExpression(ObjectExpression expression, string targetVariable) { string resultTypeName = $"Dictionary()}?>?"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" =\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" void EvaluateStringExpression(StringExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "string?" : "string"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "string.Empty")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsLiteral) { if (expression.LiteralValue.Contains("\n")) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = \n \"\"\"\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n \"\"\";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" void EvaluateValueExpression(ValueExpression expression, string targetVariable) => EvaluateValueExpression(expression, targetVariable); @@ -2329,418 +819,133 @@ void EvaluateValueExpression(ValueExpression expression, string targetVa { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" void EvaluateMessageTemplate(TemplateLine templateLine, string variableName) { if (templateLine is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" =\n await context.FormatTemplateAsync(\n \"\"\""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" FormatMessageTemplate(templateLine); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n \"\"\");"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } @@ -2749,34 +954,13 @@ void FormatMessageTemplate(TemplateLine line) { foreach (string text in line.ToTemplateString().ByLine()) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(text)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } - - #line default - #line hidden } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ForeachTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ForeachTemplate.tt index 930641dc45..5e77d26b05 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ForeachTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ForeachTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="ActionTemplate" visibility="internal" #> +<#@ template language="C#" inherits="ActionTemplate" visibility="internal" linePragmas="false" #> <#@ output extension=".cs" #> <#@ assembly name="System.Core" #> <#@ include file="Snippets/Index.tt" once="true" #> diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/InstanceTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/InstanceTemplate.cs index 8257ab46f9..8a249c419d 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/InstanceTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/InstanceTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -14,12 +14,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\InstanceTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class InstanceTemplate : CodeTemplate { -#line hidden /// /// Create the template output /// @@ -27,38 +24,15 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen { this.Write("\n"); this.Write("\n"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\InstanceTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.ExecutorType)); - - #line default - #line hidden this.Write("Executor "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\InstanceTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.InstanceVariable)); - - #line default - #line hidden this.Write(" = new("); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\InstanceTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.RootVariable)); - - #line default - #line hidden this.Write(".Session"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\InstanceTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.HasProvider ? ", options.AgentProvider" : "")); - - #line default - #line hidden this.Write(");"); return this.GenerationEnvironment.ToString(); } } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/InstanceTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/InstanceTemplate.tt index d6602b308a..baf1932baa 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/InstanceTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/InstanceTemplate.tt @@ -1,3 +1,3 @@ -<#@ template language="C#" inherits="CodeTemplate" visibility="internal" #> +<#@ template language="C#" inherits="CodeTemplate" visibility="internal" linePragmas="false" #> <#@ assembly name="System.Core" #> <#= this.ExecutorType #>Executor <#= this.InstanceVariable #> = new(<#= this.RootVariable #>.Session<#= this.HasProvider ? ", options.AgentProvider" : "" #>); \ No newline at end of file diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/InvokeAzureAgentTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/InvokeAzureAgentTemplate.cs index a145a79e03..75815f722a 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/InvokeAzureAgentTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/InvokeAzureAgentTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,12 +19,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\InvokeAzureAgentTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class InvokeAzureAgentTemplate : ActionTemplate { -#line hidden /// /// Create the template output /// @@ -49,43 +46,23 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n"); this.Write("\n/// \n/// Invokes an agent to process messages and return a response wit" + "hin a conversation context.\n/// \ninternal sealed class "); - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\InvokeAzureAgentTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Name)); - - #line default - #line hidden this.Write("Executor(FormulaSession session, WorkflowAgentProvider agentProvider) : AgentExec" + "utor(id: \""); - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\InvokeAzureAgentTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write("\", session, agentProvider)\n{\n // \n protected override async V" + "alueTask ExecuteAsync(IWorkflowContext context, CancellationToken cance" + "llationToken)\n {"); - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\InvokeAzureAgentTemplate.tt" EvaluateStringExpression(this.Model.Agent.Name, "agentName", isNullable: true); - - #line default - #line hidden this.Write("\n\n if (string.IsNullOrWhiteSpace(agentName))\n {\n throw n" + "ew InvalidOperationException($\"Agent name must be defined: {this.Id}\");\n " + "}\n "); - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\InvokeAzureAgentTemplate.tt" EvaluateStringExpression(this.Model.ConversationId, "conversationId", isNullable: true); EvaluateBoolExpression(this.Model.Output?.AutoSend, "autoSend", defaultValue: true); EvaluateMessageTemplate(this.Model.Input?.AdditionalInstructions, "additionalInstructions"); EvaluateListExpression(this.Model.Input?.Messages, "inputMessages"); - - #line default - #line hidden this.Write(@" AgentRunResponse agentResponse = @@ -103,345 +80,118 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen await context.AddEventAsync(new AgentRunResponseEvent(this.Id, agentResponse)).ConfigureAwait(false); } "); - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\InvokeAzureAgentTemplate.tt" AssignVariable(this.Messages, "agentResponse.Messages"); - - #line default - #line hidden this.Write("\n return default;\n }\n}"); return this.GenerationEnvironment.ToString(); } - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" void AssignVariable(PropertyPath targetVariable, string valueVariable, bool tightFormat = false) { if (targetVariable is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n await context.QueueStateUpdateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableName(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\", value: "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(valueVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableScope(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" if (!tightFormat) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" } } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" void EvaluateBoolExpression(BoolExpression expression, string targetVariable, bool defaultValue = false) { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync>("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" void EvaluateEnumExpression( EnumExpression expression, @@ -455,60 +205,20 @@ void EvaluateEnumExpression( string resultType = $"{GetTypeAlias()}{(isNullable ? "?" : "")}"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsLiteral) @@ -516,1777 +226,562 @@ this.Write(";"); resultMap.TryGetValue(expression.LiteralValue, out string resultValue); if (qualifyResult) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("."); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(resultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" void EvaluateIntExpression(IntExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "int?" : "int"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "0")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" void EvaluateListExpression(ValueExpression expression, string targetVariable) { string typeName = GetTypeAlias(); if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.ReadListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("> = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" void EvaluateRecordExpression(ObjectExpression expression, string targetVariable) { string resultTypeName = $"Dictionary()}?>?"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" =\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" void EvaluateStringExpression(StringExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "string?" : "string"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "string.Empty")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsLiteral) { if (expression.LiteralValue.Contains("\n")) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = \n \"\"\"\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n \"\"\";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" void EvaluateValueExpression(ValueExpression expression, string targetVariable) => EvaluateValueExpression(expression, targetVariable); @@ -2295,418 +790,133 @@ void EvaluateValueExpression(ValueExpression expression, string targetVa { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" void EvaluateMessageTemplate(TemplateLine templateLine, string variableName) { if (templateLine is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" =\n await context.FormatTemplateAsync(\n \"\"\""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" FormatMessageTemplate(templateLine); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n \"\"\");"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } @@ -2715,34 +925,13 @@ void FormatMessageTemplate(TemplateLine line) { foreach (string text in line.ToTemplateString().ByLine()) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(text)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } - - #line default - #line hidden } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/InvokeAzureAgentTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/InvokeAzureAgentTemplate.tt index bb5628d3aa..d2fcbcd46c 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/InvokeAzureAgentTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/InvokeAzureAgentTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="ActionTemplate" visibility="internal" #> +<#@ template language="C#" inherits="ActionTemplate" visibility="internal" linePragmas="false" #> <#@ output extension=".cs" #> <#@ assembly name="System.Core" #> <#@ include file="Snippets/Index.tt" once="true" #> diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ParseValueTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ParseValueTemplate.cs index e4bf72a90b..9c3cabbfd4 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ParseValueTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ParseValueTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,12 +19,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ParseValueTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class ParseValueTemplate : ActionTemplate { -#line hidden /// /// Create the template output /// @@ -50,427 +47,150 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n/// \n/// Parses a string or untyped value to the provided data type. Wh" + "en the input is a string, it will be treated as JSON.\n/// \ninternal se" + "aled class "); - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ParseValueTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Name)); - - #line default - #line hidden this.Write("Executor(FormulaSession session) : ActionExecutor(id: \""); - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ParseValueTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write("\", session)\n{\n // \n protected override async ValueTask ExecuteAsync(IWorkflowContext context, CancellationToken cancellationToken)\n " + " { \n VariableType targetType = "); - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ParseValueTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.GetVariableType())); - - #line default - #line hidden this.Write(";"); - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ParseValueTemplate.tt" if (this.Model.Value.IsVariableReference && this.Model.Value.VariableReference.SegmentCount == 2) { - - #line default - #line hidden this.Write("\n object? parsedValue = await context.ConvertValueAsync(targetType, key: \"" + ""); - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ParseValueTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Model.Value.VariableReference.VariableName)); - - #line default - #line hidden this.Write("\", scopeName: \""); - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ParseValueTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Model.Value.VariableReference.NamespaceAlias)); - - #line default - #line hidden this.Write("\", cancellationToken).ConfigureAwait(false);"); - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ParseValueTemplate.tt" } else if (this.Model.Value.IsVariableReference) { - - #line default - #line hidden this.Write("\n object? parsedValue = await context.ConvertValueAsync(targetType, "); - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ParseValueTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(this.Model.Value.VariableReference.ToString()))); - - #line default - #line hidden this.Write(", cancellationToken).ConfigureAwait(false);"); - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ParseValueTemplate.tt" } else { - - #line default - #line hidden this.Write("\n object? parsedValue = await context.ConvertValueAsync(targetType, "); - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ParseValueTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(this.Model.Value.ExpressionText))); - - #line default - #line hidden this.Write(", cancellationToken).ConfigureAwait(false);"); - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ParseValueTemplate.tt" } AssignVariable(this.Variable, "parsedValue"); - - #line default - #line hidden this.Write("\n return default;\n }\n}"); return this.GenerationEnvironment.ToString(); } - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" void AssignVariable(PropertyPath targetVariable, string valueVariable, bool tightFormat = false) { if (targetVariable is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n await context.QueueStateUpdateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableName(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\", value: "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(valueVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableScope(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" if (!tightFormat) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" } } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" void EvaluateBoolExpression(BoolExpression expression, string targetVariable, bool defaultValue = false) { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync>("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" void EvaluateEnumExpression( EnumExpression expression, @@ -484,60 +204,20 @@ void EvaluateEnumExpression( string resultType = $"{GetTypeAlias()}{(isNullable ? "?" : "")}"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsLiteral) @@ -545,1777 +225,562 @@ this.Write(";"); resultMap.TryGetValue(expression.LiteralValue, out string resultValue); if (qualifyResult) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("."); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(resultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" void EvaluateIntExpression(IntExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "int?" : "int"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "0")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" void EvaluateListExpression(ValueExpression expression, string targetVariable) { string typeName = GetTypeAlias(); if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.ReadListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("> = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" void EvaluateRecordExpression(ObjectExpression expression, string targetVariable) { string resultTypeName = $"Dictionary()}?>?"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" =\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" void EvaluateStringExpression(StringExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "string?" : "string"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "string.Empty")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsLiteral) { if (expression.LiteralValue.Contains("\n")) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = \n \"\"\"\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n \"\"\";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" void EvaluateValueExpression(ValueExpression expression, string targetVariable) => EvaluateValueExpression(expression, targetVariable); @@ -2324,418 +789,133 @@ void EvaluateValueExpression(ValueExpression expression, string targetVa { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" void EvaluateMessageTemplate(TemplateLine templateLine, string variableName) { if (templateLine is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" =\n await context.FormatTemplateAsync(\n \"\"\""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" FormatMessageTemplate(templateLine); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n \"\"\");"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } @@ -2744,34 +924,13 @@ void FormatMessageTemplate(TemplateLine line) { foreach (string text in line.ToTemplateString().ByLine()) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(text)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af4\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } - - #line default - #line hidden } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ParseValueTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ParseValueTemplate.tt index 7db7053a43..5a7c073293 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ParseValueTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ParseValueTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="ActionTemplate" visibility="internal" #> +<#@ template language="C#" inherits="ActionTemplate" visibility="internal" linePragmas="false" #> <#@ output extension=".cs" #> <#@ assembly name="System.Core" #> <#@ include file="Snippets/Index.tt" once="true" #> diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ProviderTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ProviderTemplate.cs index 30a3fc1bb9..a80abfc2a7 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ProviderTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ProviderTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -15,12 +15,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ProviderTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class ProviderTemplate : CodeTemplate { -#line hidden /// /// Create the template output /// @@ -50,30 +47,15 @@ using Microsoft.Agents.AI.Workflows.Declarative; using Microsoft.Agents.AI.Workflows.Declarative.Kit; using Microsoft.Extensions.AI; "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ProviderTemplate.tt" if (this.Namespace is not null) { - - #line default - #line hidden this.Write("\nnamespace "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ProviderTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Namespace)); - - #line default - #line hidden this.Write(";\n"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ProviderTemplate.tt" } - - #line default - #line hidden this.Write(@" /// /// This class provides a factory method to create a instance. @@ -85,36 +67,16 @@ if (this.Namespace is not null) /// https://learn.microsoft.com/power-platform/power-fx/formula-reference-copilot-studio /// public static class "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ProviderTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Prefix ?? string.Empty)); - - #line default - #line hidden this.Write("WorkflowProvider\n{"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ProviderTemplate.tt" foreach (string executor in ByLine(this.Executors, formatGroup: true)) { - - #line default - #line hidden this.Write("\n "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ProviderTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(executor)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ProviderTemplate.tt" } - - #line default - #line hidden this.Write(@" public static Workflow CreateWorkflow( DeclarativeWorkflowOptions options, @@ -124,80 +86,32 @@ foreach (string executor in ByLine(this.Executors, formatGroup: true)) // Create root executor to initialize the workflow. inputTransform ??= (message) => DeclarativeWorkflowBuilder.DefaultTransform(message); "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ProviderTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.RootExecutorType)); - - #line default - #line hidden this.Write("Executor "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ProviderTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.RootInstance)); - - #line default - #line hidden this.Write(" = new(options, inputTransform);"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ProviderTemplate.tt" // Create executor instances foreach (string instance in ByLine(this.Instances)) { - - #line default - #line hidden this.Write("\n "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ProviderTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(instance)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ProviderTemplate.tt" } - - #line default - #line hidden this.Write("\n\n // Define the workflow builder\n WorkflowBuilder builder = new("); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ProviderTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.RootInstance)); - - #line default - #line hidden this.Write(");\n\n // Connect executors"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ProviderTemplate.tt" foreach (string edge in ByLine(this.Edges)) { - - #line default - #line hidden this.Write("\n "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ProviderTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(edge)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ProviderTemplate.tt" } - - #line default - #line hidden this.Write("\n\n // Build the workflow\n return builder.Build();\n }\n}\n"); return this.GenerationEnvironment.ToString(); } } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ProviderTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ProviderTemplate.tt index 4244ea820b..4050e368cd 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ProviderTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ProviderTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="CodeTemplate" visibility="internal" #> +<#@ template language="C#" inherits="CodeTemplate" visibility="internal" linePragmas="false" #> <#@ import namespace="Microsoft.Agents.AI.Workflows.Declarative.Extensions" #> <#@ assembly name="System.Core" #> // ------------------------------------------------------------------------------ diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/QuestionTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/QuestionTemplate.cs index 3c506c5562..eab9b1ddd1 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/QuestionTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/QuestionTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,12 +19,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\QuestionTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class QuestionTemplate : ActionTemplate { -#line hidden /// /// Create the template output /// @@ -48,353 +45,121 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n"); this.Write("\n"); this.Write("\n/// \n/// Request input.\n/// \ninternal sealed class "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\QuestionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Name)); - - #line default - #line hidden this.Write("Executor(FormulaSession session) : ActionExecutor(id: \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\QuestionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write("\", session)\n{\n // \n protected override async ValueTask ExecuteAsync(IWorkflowContext context, CancellationToken cancellationToken)\n " + " {\n return default;\n }\n}"); return this.GenerationEnvironment.ToString(); } - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" void AssignVariable(PropertyPath targetVariable, string valueVariable, bool tightFormat = false) { if (targetVariable is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n await context.QueueStateUpdateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableName(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\", value: "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(valueVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableScope(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" if (!tightFormat) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" } } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" void EvaluateBoolExpression(BoolExpression expression, string targetVariable, bool defaultValue = false) { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync>("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" void EvaluateEnumExpression( EnumExpression expression, @@ -408,60 +173,20 @@ void EvaluateEnumExpression( string resultType = $"{GetTypeAlias()}{(isNullable ? "?" : "")}"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsLiteral) @@ -469,1777 +194,562 @@ this.Write(";"); resultMap.TryGetValue(expression.LiteralValue, out string resultValue); if (qualifyResult) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("."); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(resultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" void EvaluateIntExpression(IntExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "int?" : "int"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "0")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" void EvaluateListExpression(ValueExpression expression, string targetVariable) { string typeName = GetTypeAlias(); if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.ReadListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("> = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" void EvaluateRecordExpression(ObjectExpression expression, string targetVariable) { string resultTypeName = $"Dictionary()}?>?"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" =\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" void EvaluateStringExpression(StringExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "string?" : "string"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "string.Empty")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsLiteral) { if (expression.LiteralValue.Contains("\n")) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = \n \"\"\"\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n \"\"\";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" void EvaluateValueExpression(ValueExpression expression, string targetVariable) => EvaluateValueExpression(expression, targetVariable); @@ -2248,418 +758,133 @@ void EvaluateValueExpression(ValueExpression expression, string targetVa { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" void EvaluateMessageTemplate(TemplateLine templateLine, string variableName) { if (templateLine is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" =\n await context.FormatTemplateAsync(\n \"\"\""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" FormatMessageTemplate(templateLine); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n \"\"\");"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } @@ -2668,34 +893,13 @@ void FormatMessageTemplate(TemplateLine line) { foreach (string text in line.ToTemplateString().ByLine()) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(text)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } - - #line default - #line hidden } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/QuestionTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/QuestionTemplate.tt index bf2d4ae74b..5b98d30c9a 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/QuestionTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/QuestionTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="ActionTemplate" visibility="internal" #> +<#@ template language="C#" inherits="ActionTemplate" visibility="internal" linePragmas="false" #> <#@ output extension=".cs" #> <#@ assembly name="System.Core" #> <#@ include file="Snippets/Index.tt" once="true" #> diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ResetVariableTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ResetVariableTemplate.cs index da7c93b23a..a984d39652 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ResetVariableTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ResetVariableTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,12 +19,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ResetVariableTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class ResetVariableTemplate : ActionTemplate { -#line hidden /// /// Create the template output /// @@ -48,369 +45,127 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n"); this.Write("\n"); this.Write("\n/// \n/// Resets the value of the \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ResetVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Model.Variable)); - - #line default - #line hidden this.Write("\" variable, potentially causing re-evaluation \n/// of the default value, question" + " or action that provides the value to this variable.\n/// \ninternal sea" + "led class "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ResetVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Name)); - - #line default - #line hidden this.Write("Executor(FormulaSession session) : ActionExecutor(id: \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ResetVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write("\", session)\n{\n protected override async ValueTask ExecuteAsync(IWorkf" + "lowContext context, CancellationToken cancellationToken)\n {"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\ResetVariableTemplate.tt" AssignVariable(this.Variable, "UnassignedValue.Instance"); - - #line default - #line hidden this.Write("\n return default;\n }\n}"); return this.GenerationEnvironment.ToString(); } - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" void AssignVariable(PropertyPath targetVariable, string valueVariable, bool tightFormat = false) { if (targetVariable is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n await context.QueueStateUpdateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableName(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\", value: "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(valueVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableScope(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" if (!tightFormat) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" } } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" void EvaluateBoolExpression(BoolExpression expression, string targetVariable, bool defaultValue = false) { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync>("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" void EvaluateEnumExpression( EnumExpression expression, @@ -424,60 +179,20 @@ void EvaluateEnumExpression( string resultType = $"{GetTypeAlias()}{(isNullable ? "?" : "")}"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsLiteral) @@ -485,1777 +200,562 @@ this.Write(";"); resultMap.TryGetValue(expression.LiteralValue, out string resultValue); if (qualifyResult) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("."); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(resultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" void EvaluateIntExpression(IntExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "int?" : "int"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "0")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" void EvaluateListExpression(ValueExpression expression, string targetVariable) { string typeName = GetTypeAlias(); if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.ReadListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("> = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" void EvaluateRecordExpression(ObjectExpression expression, string targetVariable) { string resultTypeName = $"Dictionary()}?>?"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" =\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" void EvaluateStringExpression(StringExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "string?" : "string"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "string.Empty")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsLiteral) { if (expression.LiteralValue.Contains("\n")) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = \n \"\"\"\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n \"\"\";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" void EvaluateValueExpression(ValueExpression expression, string targetVariable) => EvaluateValueExpression(expression, targetVariable); @@ -2264,418 +764,133 @@ void EvaluateValueExpression(ValueExpression expression, string targetVa { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" void EvaluateMessageTemplate(TemplateLine templateLine, string variableName) { if (templateLine is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" =\n await context.FormatTemplateAsync(\n \"\"\""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" FormatMessageTemplate(templateLine); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n \"\"\");"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } @@ -2684,34 +899,13 @@ void FormatMessageTemplate(TemplateLine line) { foreach (string text in line.ToTemplateString().ByLine()) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(text)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } - - #line default - #line hidden } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ResetVariableTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ResetVariableTemplate.tt index ef974b10eb..80eb9b4323 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ResetVariableTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/ResetVariableTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="ActionTemplate" visibility="internal" #> +<#@ template language="C#" inherits="ActionTemplate" visibility="internal" linePragmas="false" #> <#@ output extension=".cs" #> <#@ assembly name="System.Core" #> <#@ include file="Snippets/Index.tt" once="true" #> diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RetrieveConversationMessageTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RetrieveConversationMessageTemplate.cs index 1bb397766c..b7b87f5da7 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RetrieveConversationMessageTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RetrieveConversationMessageTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,12 +19,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RetrieveConversationMessageTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class RetrieveConversationMessageTemplate : ActionTemplate { -#line hidden /// /// Create the template output /// @@ -49,373 +46,131 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n"); this.Write("\n/// \n/// Retrieves a list of messages from an agent conversation.\n/// <" + "/summary>\ninternal sealed class "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RetrieveConversationMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Name)); - - #line default - #line hidden this.Write("Executor(FormulaSession session, WorkflowAgentProvider agentProvider) : ActionExe" + "cutor(id: \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RetrieveConversationMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write("\", session)\n{\n // \n protected override async ValueTask ExecuteAsync(IWorkflowContext context, CancellationToken cancellationToken)\n " + " {"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RetrieveConversationMessageTemplate.tt" EvaluateStringExpression(this.Model.ConversationId, "conversationId"); EvaluateStringExpression(this.Model.MessageId, "messageId"); - - #line default - #line hidden this.Write("\n ChatMessage message = await agentProvider.GetMessageAsync(conversationId" + ", messageId, cancellationToken).ConfigureAwait(false);"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RetrieveConversationMessageTemplate.tt" AssignVariable(this.Model.Message, "message"); - - #line default - #line hidden this.Write("\n return default;\n }\n}"); return this.GenerationEnvironment.ToString(); } - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" void AssignVariable(PropertyPath targetVariable, string valueVariable, bool tightFormat = false) { if (targetVariable is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n await context.QueueStateUpdateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableName(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\", value: "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(valueVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableScope(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" if (!tightFormat) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" } } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" void EvaluateBoolExpression(BoolExpression expression, string targetVariable, bool defaultValue = false) { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync>("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" void EvaluateEnumExpression( EnumExpression expression, @@ -429,60 +184,20 @@ void EvaluateEnumExpression( string resultType = $"{GetTypeAlias()}{(isNullable ? "?" : "")}"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsLiteral) @@ -490,1777 +205,562 @@ this.Write(";"); resultMap.TryGetValue(expression.LiteralValue, out string resultValue); if (qualifyResult) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("."); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(resultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" void EvaluateIntExpression(IntExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "int?" : "int"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "0")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" void EvaluateListExpression(ValueExpression expression, string targetVariable) { string typeName = GetTypeAlias(); if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.ReadListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("> = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" void EvaluateRecordExpression(ObjectExpression expression, string targetVariable) { string resultTypeName = $"Dictionary()}?>?"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" =\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" void EvaluateStringExpression(StringExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "string?" : "string"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "string.Empty")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsLiteral) { if (expression.LiteralValue.Contains("\n")) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = \n \"\"\"\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n \"\"\";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" void EvaluateValueExpression(ValueExpression expression, string targetVariable) => EvaluateValueExpression(expression, targetVariable); @@ -2269,418 +769,133 @@ void EvaluateValueExpression(ValueExpression expression, string targetVa { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" void EvaluateMessageTemplate(TemplateLine templateLine, string variableName) { if (templateLine is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" =\n await context.FormatTemplateAsync(\n \"\"\""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" FormatMessageTemplate(templateLine); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n \"\"\");"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } @@ -2689,34 +904,13 @@ void FormatMessageTemplate(TemplateLine line) { foreach (string text in line.ToTemplateString().ByLine()) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(text)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } - - #line default - #line hidden } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RetrieveConversationMessageTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RetrieveConversationMessageTemplate.tt index 16bfb17276..e2e3754bda 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RetrieveConversationMessageTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RetrieveConversationMessageTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="ActionTemplate" visibility="internal" #> +<#@ template language="C#" inherits="ActionTemplate" visibility="internal" linePragmas="false" #> <#@ output extension=".cs" #> <#@ assembly name="System.Core" #> <#@ include file="Snippets/Index.tt" once="true" #> diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RetrieveConversationMessagesTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RetrieveConversationMessagesTemplate.cs index 244b7d7d83..3fbb809041 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RetrieveConversationMessagesTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RetrieveConversationMessagesTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,12 +19,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RetrieveConversationMessagesTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class RetrieveConversationMessagesTemplate : ActionTemplate { -#line hidden /// /// Create the template output /// @@ -49,34 +46,19 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n"); this.Write("f\n/// \n/// Retrieves a specific message from an agent conversation.\n/// " + "\ninternal sealed class "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RetrieveConversationMessagesTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Name)); - - #line default - #line hidden this.Write("Executor(FormulaSession session, WorkflowAgentProvider agentProvider) : ActionExe" + "cutor(id: \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RetrieveConversationMessagesTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write("\", session)\n{\n // \n protected override async ValueTask ExecuteAsync(IWorkflowContext context, CancellationToken cancellationToken)\n " + " {"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RetrieveConversationMessagesTemplate.tt" EvaluateStringExpression(this.Model.ConversationId, "conversationId"); EvaluateIntExpression(this.Model.Limit, "limit"); EvaluateStringExpression(this.Model.MessageAfter, "after", isNullable: true); EvaluateStringExpression(this.Model.MessageBefore, "before", isNullable: true); EvaluateEnumExpression(this.Model.SortOrder, "newestFirst", SortMap, defaultValue: DefaultSort); - - #line default - #line hidden this.Write(@" ChatMessage messages = await agentProvider.GetMessageAsync( @@ -86,346 +68,119 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen before, newestFirst, cancellationToken).ConfigureAwait(false);"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RetrieveConversationMessagesTemplate.tt" AssignVariable(this.Model.Messages, "messages"); - - #line default - #line hidden this.Write("\n return default;\n }\n}"); return this.GenerationEnvironment.ToString(); } - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" void AssignVariable(PropertyPath targetVariable, string valueVariable, bool tightFormat = false) { if (targetVariable is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n await context.QueueStateUpdateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableName(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\", value: "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(valueVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableScope(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" if (!tightFormat) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" } } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" void EvaluateBoolExpression(BoolExpression expression, string targetVariable, bool defaultValue = false) { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync>("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" void EvaluateEnumExpression( EnumExpression expression, @@ -439,60 +194,20 @@ void EvaluateEnumExpression( string resultType = $"{GetTypeAlias()}{(isNullable ? "?" : "")}"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsLiteral) @@ -500,1777 +215,562 @@ this.Write(";"); resultMap.TryGetValue(expression.LiteralValue, out string resultValue); if (qualifyResult) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("."); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(resultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" void EvaluateIntExpression(IntExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "int?" : "int"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "0")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" void EvaluateListExpression(ValueExpression expression, string targetVariable) { string typeName = GetTypeAlias(); if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.ReadListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("> = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" void EvaluateRecordExpression(ObjectExpression expression, string targetVariable) { string resultTypeName = $"Dictionary()}?>?"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" =\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" void EvaluateStringExpression(StringExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "string?" : "string"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "string.Empty")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsLiteral) { if (expression.LiteralValue.Contains("\n")) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = \n \"\"\"\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n \"\"\";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" void EvaluateValueExpression(ValueExpression expression, string targetVariable) => EvaluateValueExpression(expression, targetVariable); @@ -2279,418 +779,133 @@ void EvaluateValueExpression(ValueExpression expression, string targetVa { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" void EvaluateMessageTemplate(TemplateLine templateLine, string variableName) { if (templateLine is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" =\n await context.FormatTemplateAsync(\n \"\"\""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" FormatMessageTemplate(templateLine); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n \"\"\");"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } @@ -2699,34 +914,13 @@ void FormatMessageTemplate(TemplateLine line) { foreach (string text in line.ToTemplateString().ByLine()) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(text)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } - - #line default - #line hidden } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RetrieveConversationMessagesTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RetrieveConversationMessagesTemplate.tt index e8dad974ac..3d8a651301 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RetrieveConversationMessagesTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RetrieveConversationMessagesTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="ActionTemplate" visibility="internal" #> +<#@ template language="C#" inherits="ActionTemplate" visibility="internal" linePragmas="false" #> <#@ output extension=".cs" #> <#@ assembly name="System.Core" #> <#@ include file="Snippets/Index.tt" once="true" #>f diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RootTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RootTemplate.cs index ca84ce6360..69a7ca493a 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RootTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RootTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -17,12 +17,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RootTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class RootTemplate : CodeTemplate, IModeledAction { -#line hidden /// /// Create the template output /// @@ -34,112 +31,49 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n"); this.Write("\n/// \n/// The root executor for a declarative workflow.\n/// \ni" + "nternal sealed class "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RootTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.TypeName)); - - #line default - #line hidden this.Write("Executor(\n DeclarativeWorkflowOptions options,\n Func inputTransform) :\n RootExecutor(\""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RootTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write("\", options, inputTransform)\n where TInput : notnull\n{\n protected override a" + "sync ValueTask ExecuteAsync(TInput message, IWorkflowContext context, Cancellati" + "onToken cancellationToken)\n {"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RootTemplate.tt" if (this.TypeInfo.EnvironmentVariables.Count > 0) { - - #line default - #line hidden this.Write("\n // Set environment variables\n await this.InitializeEnvironmentAsy" + "nc(\n context,"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RootTemplate.tt" int index = this.TypeInfo.EnvironmentVariables.Count - 1; foreach (string variableName in this.TypeInfo.EnvironmentVariables) { - - #line default - #line hidden this.Write("\n \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RootTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden this.Write("\""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RootTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(index > 0 ? "," : "")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RootTemplate.tt" --index; } - - #line default - #line hidden this.Write(").ConfigureAwait(false);\n"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RootTemplate.tt" } if (this.TypeInfo.UserVariables.Count > 0) { - - #line default - #line hidden this.Write("\n // Initialize variables"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RootTemplate.tt" foreach (VariableInformationDiagnostic variableInfo in this.TypeInfo.UserVariables) { - - #line default - #line hidden this.Write("\n await context.QueueStateUpdateAsync(\""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RootTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableInfo.Path.VariableName)); - - #line default - #line hidden this.Write("\", UnassignedValue.Instance, \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RootTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableInfo.Path.NamespaceAlias)); - - #line default - #line hidden this.Write("\").ConfigureAwait(false);"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\RootTemplate.tt" } } - - #line default - #line hidden this.Write("\n }\n}\n"); return this.GenerationEnvironment.ToString(); } } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RootTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RootTemplate.tt index d1b70f89e7..4a6e28e5ab 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RootTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/RootTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="CodeTemplate, IModeledAction" visibility="internal" #> +<#@ template language="C#" inherits="CodeTemplate, IModeledAction" visibility="internal" linePragmas="false" #> <#@ import namespace="Microsoft.Agents.AI.Workflows.Declarative.Extensions" #> <#@ import namespace="Microsoft.Agents.AI.Workflows.Declarative.Interpreter" #> <#@ import namespace="Microsoft.Bot.ObjectModel" #> diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SendActivityTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SendActivityTemplate.cs index f3c578be75..1d85f885b8 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SendActivityTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SendActivityTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,12 +19,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SendActivityTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class SendActivityTemplate : ActionTemplate { -#line hidden /// /// Create the template output /// @@ -49,413 +46,146 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n"); this.Write("\n/// \n/// Formats a message template and sends an activity event.\n/// \ninternal sealed class "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SendActivityTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Name)); - - #line default - #line hidden this.Write("Executor(FormulaSession session) : ActionExecutor(id: \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SendActivityTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write("\", session)\n{\n // \n protected override async ValueTask ExecuteAsync(IWorkflowContext context, CancellationToken cancellationToken)\n " + " { "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SendActivityTemplate.tt" if (this.Model.Activity is MessageActivityTemplate messageActivity) { - - #line default - #line hidden this.Write("\n string activityText = \n await context.FormatTemplateAsync( "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SendActivityTemplate.tt" foreach (TemplateLine line in messageActivity.Text) { - - #line default - #line hidden this.Write("\n \"\"\""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SendActivityTemplate.tt" foreach (string text in line.ToTemplateString().ByLine()) { - - #line default - #line hidden this.Write("\n "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SendActivityTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(text)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SendActivityTemplate.tt" } - - #line default - #line hidden this.Write("\n \"\"\""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SendActivityTemplate.tt" } - - #line default - #line hidden this.Write("\n );\n AgentRunResponse response = new([new ChatMessage(ChatRole" + ".Assistant, activityText)]);\n await context.AddEventAsync(new AgentRunRes" + "ponseEvent(this.Id, response)).ConfigureAwait(false);"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SendActivityTemplate.tt" } - - #line default - #line hidden this.Write("\n\n return default;\n }\n}"); return this.GenerationEnvironment.ToString(); } - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" void AssignVariable(PropertyPath targetVariable, string valueVariable, bool tightFormat = false) { if (targetVariable is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n await context.QueueStateUpdateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableName(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\", value: "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(valueVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableScope(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" if (!tightFormat) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" } } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" void EvaluateBoolExpression(BoolExpression expression, string targetVariable, bool defaultValue = false) { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync>("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" void EvaluateEnumExpression( EnumExpression expression, @@ -469,60 +199,20 @@ void EvaluateEnumExpression( string resultType = $"{GetTypeAlias()}{(isNullable ? "?" : "")}"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsLiteral) @@ -530,1777 +220,562 @@ this.Write(";"); resultMap.TryGetValue(expression.LiteralValue, out string resultValue); if (qualifyResult) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("."); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(resultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" void EvaluateIntExpression(IntExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "int?" : "int"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "0")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" void EvaluateListExpression(ValueExpression expression, string targetVariable) { string typeName = GetTypeAlias(); if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.ReadListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("> = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" void EvaluateRecordExpression(ObjectExpression expression, string targetVariable) { string resultTypeName = $"Dictionary()}?>?"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" =\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" void EvaluateStringExpression(StringExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "string?" : "string"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "string.Empty")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsLiteral) { if (expression.LiteralValue.Contains("\n")) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = \n \"\"\"\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n \"\"\";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" void EvaluateValueExpression(ValueExpression expression, string targetVariable) => EvaluateValueExpression(expression, targetVariable); @@ -2309,418 +784,133 @@ void EvaluateValueExpression(ValueExpression expression, string targetVa { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" void EvaluateMessageTemplate(TemplateLine templateLine, string variableName) { if (templateLine is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" =\n await context.FormatTemplateAsync(\n \"\"\""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" FormatMessageTemplate(templateLine); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n \"\"\");"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } @@ -2729,34 +919,13 @@ void FormatMessageTemplate(TemplateLine line) { foreach (string text in line.ToTemplateString().ByLine()) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(text)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } - - #line default - #line hidden } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SendActivityTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SendActivityTemplate.tt index 562ba9de27..a1f0e3191f 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SendActivityTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SendActivityTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="ActionTemplate" visibility="internal" #> +<#@ template language="C#" inherits="ActionTemplate" visibility="internal" linePragmas="false" #> <#@ output extension=".cs" #> <#@ assembly name="System.Core" #> <#@ include file="Snippets/Index.tt" once="true" #> diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetMultipleVariablesTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetMultipleVariablesTemplate.cs index 3e60e36d75..278957ea0b 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetMultipleVariablesTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetMultipleVariablesTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,12 +19,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SetMultipleVariablesTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class SetMultipleVariablesTemplate : ActionTemplate { -#line hidden /// /// Create the template output /// @@ -49,36 +46,19 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n"); this.Write("\n/// \n/// Assigns an evaluated expression, other variable, or literal va" + "lue to one or more variables.\n/// \ninternal sealed class "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SetMultipleVariablesTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Name)); - - #line default - #line hidden this.Write("Executor(FormulaSession session) : ActionExecutor(id: \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SetMultipleVariablesTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write("\", session)\n{\n // \n protected override async ValueTask ExecuteAsync(IWorkflowContext context, CancellationToken cancellationToken)\n " + " {"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SetMultipleVariablesTemplate.tt" int index = 0; foreach (var assignment in this.Model.Assignments) { // Separate assigments with a blank line for readability if (index > 0) { - - #line default - #line hidden this.Write("\n "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SetMultipleVariablesTemplate.tt" } ++index; @@ -86,341 +66,116 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen AssignVariable(assignment.Variable, $"evaluatedValue{index}"); } - - #line default - #line hidden this.Write("\n return default;\n }\n}"); return this.GenerationEnvironment.ToString(); } - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" void AssignVariable(PropertyPath targetVariable, string valueVariable, bool tightFormat = false) { if (targetVariable is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n await context.QueueStateUpdateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableName(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\", value: "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(valueVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableScope(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" if (!tightFormat) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" } } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" void EvaluateBoolExpression(BoolExpression expression, string targetVariable, bool defaultValue = false) { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync>("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" void EvaluateEnumExpression( EnumExpression expression, @@ -434,60 +189,20 @@ void EvaluateEnumExpression( string resultType = $"{GetTypeAlias()}{(isNullable ? "?" : "")}"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsLiteral) @@ -495,1777 +210,562 @@ this.Write(";"); resultMap.TryGetValue(expression.LiteralValue, out string resultValue); if (qualifyResult) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("."); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(resultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" void EvaluateIntExpression(IntExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "int?" : "int"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "0")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" void EvaluateListExpression(ValueExpression expression, string targetVariable) { string typeName = GetTypeAlias(); if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.ReadListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("> = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" void EvaluateRecordExpression(ObjectExpression expression, string targetVariable) { string resultTypeName = $"Dictionary()}?>?"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" =\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" void EvaluateStringExpression(StringExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "string?" : "string"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "string.Empty")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsLiteral) { if (expression.LiteralValue.Contains("\n")) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = \n \"\"\"\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n \"\"\";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" void EvaluateValueExpression(ValueExpression expression, string targetVariable) => EvaluateValueExpression(expression, targetVariable); @@ -2274,418 +774,133 @@ void EvaluateValueExpression(ValueExpression expression, string targetVa { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" void EvaluateMessageTemplate(TemplateLine templateLine, string variableName) { if (templateLine is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" =\n await context.FormatTemplateAsync(\n \"\"\""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" FormatMessageTemplate(templateLine); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n \"\"\");"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } @@ -2694,34 +909,13 @@ void FormatMessageTemplate(TemplateLine line) { foreach (string text in line.ToTemplateString().ByLine()) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(text)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } - - #line default - #line hidden } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetMultipleVariablesTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetMultipleVariablesTemplate.tt index 0448c4da69..3746488c27 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetMultipleVariablesTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetMultipleVariablesTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="ActionTemplate" visibility="internal" #> +<#@ template language="C#" inherits="ActionTemplate" visibility="internal" linePragmas="false" #> <#@ output extension=".cs" #> <#@ assembly name="System.Core" #> <#@ include file="Snippets/Index.tt" once="true" #> diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetTextVariableTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetTextVariableTemplate.cs index 0f571c597e..fa7f1c6fa8 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetTextVariableTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetTextVariableTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,12 +19,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SetTextVariableTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class SetTextVariableTemplate : ActionTemplate { -#line hidden /// /// Create the template output /// @@ -48,368 +45,126 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n"); this.Write("\n"); this.Write("\n/// \n/// Assigns an evaluated message template to the \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SetTextVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Model.Variable)); - - #line default - #line hidden this.Write("\" variable.\n/// \ninternal sealed class "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SetTextVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Name)); - - #line default - #line hidden this.Write("Executor(FormulaSession session) : ActionExecutor(id: \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SetTextVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write("\", session)\n{\n protected override async ValueTask ExecuteAsync(IWorkf" + "lowContext context, CancellationToken cancellationToken)\n {"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SetTextVariableTemplate.tt" EvaluateMessageTemplate(this.Model.Value, "textValue"); AssignVariable(this.Variable, "textValue"); - - #line default - #line hidden this.Write("\n return default;\n }\n}"); return this.GenerationEnvironment.ToString(); } - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" void AssignVariable(PropertyPath targetVariable, string valueVariable, bool tightFormat = false) { if (targetVariable is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n await context.QueueStateUpdateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableName(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\", value: "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(valueVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableScope(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" if (!tightFormat) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" } } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" void EvaluateBoolExpression(BoolExpression expression, string targetVariable, bool defaultValue = false) { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync>("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" void EvaluateEnumExpression( EnumExpression expression, @@ -423,60 +178,20 @@ void EvaluateEnumExpression( string resultType = $"{GetTypeAlias()}{(isNullable ? "?" : "")}"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsLiteral) @@ -484,1777 +199,562 @@ this.Write(";"); resultMap.TryGetValue(expression.LiteralValue, out string resultValue); if (qualifyResult) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("."); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(resultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" void EvaluateIntExpression(IntExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "int?" : "int"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "0")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" void EvaluateListExpression(ValueExpression expression, string targetVariable) { string typeName = GetTypeAlias(); if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.ReadListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("> = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" void EvaluateRecordExpression(ObjectExpression expression, string targetVariable) { string resultTypeName = $"Dictionary()}?>?"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" =\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" void EvaluateStringExpression(StringExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "string?" : "string"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "string.Empty")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsLiteral) { if (expression.LiteralValue.Contains("\n")) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = \n \"\"\"\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n \"\"\";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" void EvaluateValueExpression(ValueExpression expression, string targetVariable) => EvaluateValueExpression(expression, targetVariable); @@ -2263,418 +763,133 @@ void EvaluateValueExpression(ValueExpression expression, string targetVa { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" void EvaluateMessageTemplate(TemplateLine templateLine, string variableName) { if (templateLine is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" =\n await context.FormatTemplateAsync(\n \"\"\""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" FormatMessageTemplate(templateLine); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n \"\"\");"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } @@ -2683,34 +898,13 @@ void FormatMessageTemplate(TemplateLine line) { foreach (string text in line.ToTemplateString().ByLine()) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(text)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } - - #line default - #line hidden } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetTextVariableTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetTextVariableTemplate.tt index 086583e750..fc5996e20a 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetTextVariableTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetTextVariableTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="ActionTemplate" visibility="internal" #> +<#@ template language="C#" inherits="ActionTemplate" visibility="internal" linePragmas="false" #> <#@ output extension=".cs" #> <#@ assembly name="System.Core" #> <#@ include file="Snippets/Index.tt" once="true" #> diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetVariableTemplate.cs b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetVariableTemplate.cs index 61dfa2c47d..cd40ad1c4a 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetVariableTemplate.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetVariableTemplate.cs @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version: 17.0.0.0 +// Runtime Version: 18.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,12 +19,9 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen /// /// Class to produce the template output /// - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SetVariableTemplate.tt" - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "17.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "18.0.0.0")] internal partial class SetVariableTemplate : ActionTemplate { -#line hidden /// /// Create the template output /// @@ -49,369 +46,127 @@ namespace Microsoft.Agents.AI.Workflows.Declarative.CodeGen this.Write("\n"); this.Write("\n/// \n/// Assigns an evaluated expression, other variable, or literal va" + "lue to the \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SetVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Model.Variable)); - - #line default - #line hidden this.Write("\" variable.\n/// \ninternal sealed class "); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SetVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Name)); - - #line default - #line hidden this.Write("Executor(FormulaSession session) : ActionExecutor(id: \""); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SetVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(this.Id)); - - #line default - #line hidden this.Write("\", session)\n{\n // \n protected override async ValueTask ExecuteAsync(IWorkflowContext context, CancellationToken cancellationToken)\n " + " {"); - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\SetVariableTemplate.tt" EvaluateValueExpression(this.Model.Value, "evaluatedValue"); AssignVariable(this.Variable, "evaluatedValue"); - - #line default - #line hidden this.Write("\n return default;\n }\n}\n"); return this.GenerationEnvironment.ToString(); } - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" void AssignVariable(PropertyPath targetVariable, string valueVariable, bool tightFormat = false) { if (targetVariable is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n await context.QueueStateUpdateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableName(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\", value: "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(valueVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(VariableScope(targetVariable))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" if (!tightFormat) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\AssignVariableTemplate.tt" } } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" void EvaluateBoolExpression(BoolExpression expression, string targetVariable, bool defaultValue = false) { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatBoolValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync>("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write("\n bool "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateBoolExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" void EvaluateEnumExpression( EnumExpression expression, @@ -425,60 +180,20 @@ void EvaluateEnumExpression( string resultType = $"{GetTypeAlias()}{(isNullable ? "?" : "")}"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(defaultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsLiteral) @@ -486,1777 +201,562 @@ this.Write(";"); resultMap.TryGetValue(expression.LiteralValue, out string resultValue); if (qualifyResult) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("."); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatValue(resultValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultType)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateEnumExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" void EvaluateIntExpression(IntExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "int?" : "int"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "0")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateIntExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" void EvaluateListExpression(ValueExpression expression, string targetVariable) { string typeName = GetTypeAlias(); if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.ReadListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("> = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write("\n IList<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(" = await context.EvaluateListAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateListExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" void EvaluateRecordExpression(ObjectExpression expression, string targetVariable) { string resultTypeName = $"Dictionary()}?>?"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" =\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(" = await context.EvaluateExpressionAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(resultTypeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateRecordExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" void EvaluateStringExpression(StringExpression expression, string targetVariable, bool isNullable = false) { string typeName = isNullable ? "string?" : "string"; if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(isNullable ? "null" : "string.Empty")); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsLiteral) { if (expression.LiteralValue.Contains("\n")) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = \n \"\"\"\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.LiteralValue)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n \"\"\";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(typeName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateStringExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" void EvaluateValueExpression(ValueExpression expression, string targetVariable) => EvaluateValueExpression(expression, targetVariable); @@ -2265,418 +765,133 @@ void EvaluateValueExpression(ValueExpression expression, string targetVa { if (expression is null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsLiteral) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatDataValue(expression.LiteralValue))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(";"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference && expression.VariableReference.SegmentCount == 2) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.ReadStateAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">(key: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.VariableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\", scopeName: \""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(expression.VariableReference.NamespaceAlias)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else if (expression.IsVariableReference) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.VariableReference.ToString()))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write("? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(targetVariable)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(" = await context.EvaluateValueAsync<"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetTypeAlias())); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(">("); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(FormatStringValue(expression.ExpressionText))); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" this.Write(").ConfigureAwait(false);"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\EvaluateValueExpressionTemplate.tt" } } - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" void EvaluateMessageTemplate(TemplateLine templateLine, string variableName) { if (templateLine is not null) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" =\n await context.FormatTemplateAsync(\n \"\"\""); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" FormatMessageTemplate(templateLine); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n \"\"\");"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } else { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n string? "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(variableName)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(" = null;"); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } @@ -2685,34 +900,13 @@ void FormatMessageTemplate(TemplateLine line) { foreach (string text in line.ToTemplateString().ByLine()) { - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write("\n "); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(text)); - - #line default - #line hidden - - #line 1 "C:\Users\crickman\source\repos\af5\dotnet\src\Microsoft.Agents.AI.Workflows.Declarative\CodeGen\Snippets\FormatMessageTemplate.tt" } } - - #line default - #line hidden } - - #line default - #line hidden } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetVariableTemplate.tt b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetVariableTemplate.tt index 80c0c4fd2f..42e12c1f99 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetVariableTemplate.tt +++ b/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/CodeGen/SetVariableTemplate.tt @@ -1,4 +1,4 @@ -<#@ template language="C#" inherits="ActionTemplate" visibility="internal" #> +<#@ template language="C#" inherits="ActionTemplate" visibility="internal" linePragmas="false" #> <#@ output extension=".cs" #> <#@ assembly name="System.Core" #> <#@ include file="Snippets/Index.tt" once="true" #>