Member Junction
    Preparing search index...

    Type Alias NextStepDetails<P>

    NextStepDetails:
        | { payload?: P; promptId: string; promptName: string; type: "Prompt" }
        | { actions: AgentAction[]; payload?: P; type: "Actions" }
        | {
            payload?: P;
            subAgent?: AgentSubAgentRequest;
            subAgents?: AgentSubAgentRequest[];
            type: "Sub-Agent";
        }
        | {
            payload?: P;
            retryInstructions: string;
            retryReason: string;
            type: "Retry";
        }
        | { message: string; payload?: P; type: "Chat" }
        | { payload?: P; type: "Complete" }

    Details about what will be executed in the next step.

    Union type that provides specific information based on the type of next step, enabling proper preparation and execution of the subsequent operation.

    Type Parameters

    • P = any