ACP v2 (Preview) TypeScript SDK — EXPERIMENTAL - v2.12.1
    Preparing search index...

    Type Alias AgentResponseExperimental

    AgentResponse:
        | {
            id: RequestId;
            result: | InitializeResponse
            | LoginAuthResponse
            | LogoutAuthResponse
            | NewSessionResponse
            | ListSessionsResponse
            | DeleteSessionResponse
            | ResumeSessionResponse
            | CloseSessionResponse
            | CancelToolCallResponse
            | CancelTerminalResponse
            | SetSessionConfigOptionResponse
            | PromptResponse
            | ExtResponse;
        }
        | { id: number
        | string
        | null; error: Error }

    A JSON-RPC response object.

    Type Declaration