mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
* Handle external input request and response conversion for workflow as agent scenario * Remove unnecessary test comment * Fix PR comments * Updated to fix edge cases, and add more tests. * Update pending requests to use typed properties instead of relying on StateBag. replying to PR feedback. * Fixed external response de-dup and updated possible brittle test. * Address PR comments on sending turn token for normal messages and handle contentId collision by source agent * Remove unnecessary serialization element and address pr comment on intercepted outgoing requests * Updated MEAI changes for UserInput request and response abstractions.
35 lines
1.2 KiB
C#
35 lines
1.2 KiB
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.Agents.AI.Workflows.Observability;
|
|
|
|
namespace Microsoft.Agents.AI.Workflows.Execution;
|
|
|
|
internal interface ISuperStepRunner
|
|
{
|
|
string SessionId { get; }
|
|
|
|
string StartExecutorId { get; }
|
|
|
|
WorkflowTelemetryContext TelemetryContext { get; }
|
|
|
|
bool HasUnservicedRequests { get; }
|
|
bool HasUnprocessedMessages { get; }
|
|
|
|
ValueTask EnqueueResponseAsync(ExternalResponse response, CancellationToken cancellationToken = default);
|
|
bool TryGetResponsePortExecutorId(string portId, out string? executorId);
|
|
|
|
ValueTask<bool> IsValidInputTypeAsync<T>(CancellationToken cancellationToken = default);
|
|
ValueTask<bool> EnqueueMessageAsync<T>(T message, CancellationToken cancellationToken = default);
|
|
ValueTask<bool> EnqueueMessageUntypedAsync(object message, Type declaredType, CancellationToken cancellationToken = default);
|
|
|
|
ConcurrentEventSink OutgoingEvents { get; }
|
|
|
|
ValueTask<bool> RunSuperStepAsync(CancellationToken cancellationToken);
|
|
|
|
// This cannot be cancelled
|
|
ValueTask RequestEndRunAsync();
|
|
}
|