Testing an LLM endpoint

Test a registered large language model (LLM) endpoint to confirm that Cloudera Agent Studio can reach the model and that the model supports function calling.

The Test dialog offers two tests. The basic test sends a simple chat completion request to verify connectivity. The function-calling test sends a request with a dummy tool definition to verify function-calling support. The tests use fixed requests, so you do not enter a prompt.

  • You must have the Admin role. Only the Admin role can test LLM endpoints from the LLM Registration page. For more information, see User roles and capabilities.
  • You must register the endpoint. For more information, see Adding an LLM endpoint.
  • You must store credentials for the endpoint. If the endpoint has no stored credentials, a test fails with the message A stored API key is required. To add credentials, see Editing an LLM endpoint.
  1. Launch the Cloudera Agent Studio console.
  2. In the left navigation pane, click LLM Registration.
    The Providers, routing & guardrails page displays the table of registered LLM endpoints.
  3. Optional: In the search box, enter the Name, Provider, Model, or Owner of the endpoint to filter the table.
  4. In the row of the endpoint, click Open menu at the end of the row, and then click Test.
    The Test dialog box opens.
  5. In the Basic Test section, click Run Basic Test.
    While the test runs, the label changes to Running… and the section displays the result when the test finishes.
  6. In the Function Calling section, click Run Function Calling.
    The section displays the result when the test completes.
  7. Review the result of each test. For a description of each value, see the Result section.
  8. Click Close.

Each test displays its result in the corresponding test section. A result includes the following values:

  • Status label: Shows whether the test passed or failed.
  • Response time: Shows how long the request took in milliseconds (for example, 0 ms).
  • Model name: Shows the name of the model that responded (for example, gpt-4o).
  • Tool call status (function-calling test only): Shows Tool call: detected or Tool call: not detected. Tool call: detected indicates the model returned a tool call for the dummy tool definition.
  • Error message: Appears if the test failed and contains a warning with the error details.

If a test fails, review the error message, then check the endpoint API base URL and credentials. To update them, see Editing an LLM endpoint.