From 38c8f3ec183f0f74b7c244e47bdbad2bd6038610 Mon Sep 17 00:00:00 2001 From: Shyju Krishnankutty Date: Wed, 21 Jan 2026 17:55:21 -0800 Subject: [PATCH] minor cleanup. --- dotnet/samples/AzureFunctions/09_Workflow/Program.cs | 2 +- .../BuiltInFunctions.cs | 1 - .../DurableWorkflowFunctionMetadataTransformer.cs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dotnet/samples/AzureFunctions/09_Workflow/Program.cs b/dotnet/samples/AzureFunctions/09_Workflow/Program.cs index ea805bd2d6..e475426946 100644 --- a/dotnet/samples/AzureFunctions/09_Workflow/Program.cs +++ b/dotnet/samples/AzureFunctions/09_Workflow/Program.cs @@ -18,7 +18,7 @@ Func orderParserFunc = input => return input; }; -var orderParserExecutor = orderParserFunc.BindAsExecutor("OrderParser"); +var orderParserExecutor = orderParserFunc.BindAsExecutor("ParseOrderId"); OrderLookup orderLookupExecutor = new(); OrderEnrich orderEnricherExeecutor = new(); diff --git a/dotnet/src/Microsoft.Agents.AI.Hosting.AzureFunctions/BuiltInFunctions.cs b/dotnet/src/Microsoft.Agents.AI.Hosting.AzureFunctions/BuiltInFunctions.cs index 936f9465f4..7437611266 100644 --- a/dotnet/src/Microsoft.Agents.AI.Hosting.AzureFunctions/BuiltInFunctions.cs +++ b/dotnet/src/Microsoft.Agents.AI.Hosting.AzureFunctions/BuiltInFunctions.cs @@ -17,7 +17,6 @@ internal static class BuiltInFunctions { internal const string HttpPrefix = "http-"; internal const string McpToolPrefix = "mcptool-"; - internal const string WorkflowMcpToolPrefix = "mcptool-workflow-"; internal static readonly string RunAgentHttpFunctionEntryPoint = $"{typeof(BuiltInFunctions).FullName!}.{nameof(RunAgentHttpAsync)}"; internal static readonly string RunAgentEntityFunctionEntryPoint = $"{typeof(BuiltInFunctions).FullName!}.{nameof(InvokeAgentAsync)}"; diff --git a/dotnet/src/Microsoft.Agents.AI.Hosting.AzureFunctions/DurableWorkflowFunctionMetadataTransformer.cs b/dotnet/src/Microsoft.Agents.AI.Hosting.AzureFunctions/DurableWorkflowFunctionMetadataTransformer.cs index 8ef3919f5a..8bd7835458 100644 --- a/dotnet/src/Microsoft.Agents.AI.Hosting.AzureFunctions/DurableWorkflowFunctionMetadataTransformer.cs +++ b/dotnet/src/Microsoft.Agents.AI.Hosting.AzureFunctions/DurableWorkflowFunctionMetadataTransformer.cs @@ -154,7 +154,7 @@ internal sealed class DurableWorkflowFunctionMetadataTransformer : IFunctionMeta { return new DefaultFunctionMetadata { - Name = $"{BuiltInFunctions.WorkflowMcpToolPrefix}{workflowName}", + Name = $"{BuiltInFunctions.McpToolPrefix}{workflowName}", Language = "dotnet-isolated", RawBindings = [