Skip to content

Commit 8aafdd8

Browse files
committed
Set the invocation result
1 parent a648125 commit 8aafdd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dotnet/src/Microsoft.Agents.AI.Hosting.AzureFunctions/BuiltInFunctionExecutor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

dotnet/src/Microsoft.Agents.AI.Hosting.AzureFunctions/BuiltInFunctions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)