File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
dotnet/src/Microsoft.Agents.AI.Hosting.AzureFunctions Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public async ValueTask ExecuteAsync(FunctionContext context)
8383 throw new InvalidOperationException ( $ "Task entity dispatcher binding is missing for the invocation { context . InvocationId } .") ;
8484 }
8585
86- await BuiltInFunctions . InvokeAgentAsync (
86+ context . GetInvocationResult ( ) . Value = await BuiltInFunctions . InvokeAgentAsync (
8787 durableTaskClient ,
8888 dispatcher ,
8989 context ) ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ internal static class BuiltInFunctions
2323 internal static readonly string RunAgentMcpToolFunctionEntryPoint = $ "{ typeof ( BuiltInFunctions ) . FullName ! } .{ nameof ( RunMcpToolAsync ) } ";
2424
2525 // Exposed as an entity trigger via AgentFunctionsProvider
26- public static Task InvokeAgentAsync (
26+ public static Task < string > InvokeAgentAsync (
2727 [ DurableClient ] DurableTaskClient client ,
2828 string dispatcher ,
2929 FunctionContext functionContext )
You can’t perform that action at this time.
0 commit comments