mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
74879489a4
* Checkpoint * Update workflows/DeepResearch.yaml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Comment * Fix comment * Update package version * Fix nuget haxx * Checkpoint * Code complete * Testing * Message content workaround * Add sequential flow * Checkpoint * Integration test project * Checkpoint * Checkpoint cleanup * Complete * Update package --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
17 lines
573 B
C#
17 lines
573 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
namespace Microsoft.Agents.Workflows.Declarative.Interpreter;
|
|
|
|
internal sealed record class ExecutorResultMessage(string ExecutorId, object? Result = null)
|
|
{
|
|
public static ExecutorResultMessage ThrowIfNot(object? message)
|
|
{
|
|
if (message is not ExecutorResultMessage executorMessage)
|
|
{
|
|
throw new DeclarativeActionException($"Unexpected message type: {message?.GetType().Name ?? "(null)"} (Expected: {nameof(ExecutorResultMessage)})");
|
|
}
|
|
|
|
return executorMessage;
|
|
}
|
|
}
|