Method SteerAsync
- Namespace
- MailFathom.Application.Agent.Conversations
- Assembly
- MailFathom.Application.dll
SteerAsync(AgentConversationId, UserId, AgentMessageId, AgentMessageWritten, DateTimeOffset, CancellationToken)
Writes a person's further instruction into the answer being composed, which takes it from its next turn.
Task<AgentMessagePosting> SteerAsync(AgentConversationId id, UserId user, AgentMessageId answer, AgentMessageWritten instruction, DateTimeOffset now, CancellationToken cancellationToken)
Parameters
idAgentConversationIdThe conversation holding the answer.
userUserIdThe person steering, whose conversation it has to be.
answerAgentMessageIdThe answer being steered, which has to be the one being composed.
instructionAgentMessageWrittenWhat the person added, written by the person.
nowDateTimeOffsetThe instant it was written, in UTC.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<AgentMessagePosting>
What became of the instruction.
Remarks
It adds and never interrupts: nothing already composed is touched, and the answer goes on from where it stands. An instruction for an answer that has ended writes nothing, because it would otherwise stand in the record as a question nobody answers. A repeated identifier is reported as AlreadyWritten, exactly as a repeated question is.
Exceptions
- ArgumentNullException
Thrown when
instructionis null.- ArgumentException
Thrown when
instructionis not the person's own.