Member Junction
    Preparing search index...

    What an AgentTurnHandler reports back to the chat area.

    interface AgentTurnResult {
        AgentRunId?: string;
        ErrorMessage?: string;
        ReplyDetailIds?: string[];
        Result?: ExecuteAgentResult;
        Success: boolean;
    }
    Index

    Properties

    AgentRunId?: string

    The agent run, when the host has one. Carried on AfterAgentTurn.

    ErrorMessage?: string

    Why the turn failed, shown to the person.

    ReplyDetailIds?: string[]

    The rows the host wrote for the turn, oldest first: the agent's reply and any status rows. The chat area loads and shows them. A row still In-Progress is followed like any other in-progress reply. The host reports that row's live status through AgentRunStatusPublisher (@memberjunction/server) on the caller's session: significant-step progress, streamed text, the partial result, and the completion. The completion's conversationDetailId is the reply row.

    The agent's result, when the host has one. AfterAgentTurn fires only when it's present.

    Success: boolean

    False when the turn failed. The chat area shows ErrorMessage and writes nothing.