Agent Client Protocol - v0.28.0
    Preparing search index...

    Type Alias ActiveSessionMessage

    ActiveSessionMessage:
        | {
            kind: "session_update";
            notification: SessionNotification;
            update: SessionUpdate;
        }
        | { kind: "stop"; response: PromptResponse; stopReason: StopReason }

    Message produced by an ActiveSession.

    session_update messages expose the typed session/update notification and stop messages report the final session/prompt response. A prompt turn is complete once a stop message is returned.

    Type Declaration

    • {
          kind: "session_update";
          notification: SessionNotification;
          update: SessionUpdate;
      }
      • kind: "session_update"

        Indicates that this message came from a session/update notification.

      • notification: SessionNotification

        Full notification sent by the agent.

      • update: SessionUpdate

        Convenience alias for notification.update.

    • { kind: "stop"; response: PromptResponse; stopReason: StopReason }
      • kind: "stop"

        Indicates that the prompt turn has completed.

      • response: PromptResponse

        Final response from session/prompt.

      • stopReason: StopReason

        Convenience alias for response.stopReason.