13 lines
523 B
C#
13 lines
523 B
C#
|
|
namespace TeamUp.SharedKernel.Ai;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Dispatches a task to an AI seat: records a queued AgentRun and enqueues the job for the worker.
|
||
|
|
/// Implemented by the Assembler module; used by the web API and by board triggers (the PO→QA
|
||
|
|
/// handoff) without referencing the Assembler's tables.
|
||
|
|
/// </summary>
|
||
|
|
public interface IAgentDispatcher
|
||
|
|
{
|
||
|
|
/// <summary>Returns the id of the queued run.</summary>
|
||
|
|
Task<Guid> DispatchAsync(Guid seatId, Guid workItemId, CancellationToken cancellationToken = default);
|
||
|
|
}
|