@salesforce/agents
    Preparing search index...

    Class ConversationTester

    A client for conversation-level tests (Testing Center). Build the request body with cltSpecToEphemeralInput.

    Example

    Run without saving (synchronous):

    const results = await new ConversationTester(connection).runEphemeral(cltSpecToEphemeralInput(spec, agent));

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Runs conversation tests without saving a suite, and waits for the results.

      The endpoint reports rejected input as HTTP 200 with status: "Failed" and no test cases; that case, and an empty response body, throw ConversationTestRejected with the server's message. A Failed run that has test cases (for example, the agent failed mid-conversation) is returned so the caller can report each case.

      Parameters

      Returns Promise<ConversationTestResultsResponse>

      The run results, with HTML entities decoded in the JSON-string fields.