Endpoints
An endpoint is an LLM application or API that tests run against. It defines how Rhesis connects to your application, sends test inputs, and receives responses for evaluation.
For code-first endpoint registration using decorators, see the Connector documentation.
Endpoints use the shared entity interface for fetching, filtering, updating, and deleting.
Properties
| Property | Type | Description |
|---|---|---|
id | str | Unique identifier |
name | str | Display name |
description | str | Endpoint description |
connection_type | ConnectionType | How Rhesis connects: REST, WebSocket, GRPC, or SDK |
url | str | Endpoint URL (for REST/WebSocket/GRPC) |
project_id | str | Associated project ID |
name, connection_type, and project_id are required to save an endpoint. REST endpoints also carry request/response mapping, headers, and an auth_token for the target API — see the Connector for those.
Connection types
| Type | Description |
|---|---|
REST | HTTP API endpoints |
WebSocket | Real-time WebSocket connections |
GRPC | gRPC service endpoints |
SDK | Functions registered via the Connector decorator |
Fetching endpoints
Invoking endpoints
Send an input and receive a response. Pass conversation_id to continue a multi-turn conversation (session_id is a deprecated alias):
invoke() returns a standardized response:
Testing connectivity
test() sends a short probe and raises ValueError if the endpoint does not respond:
Creating endpoints
Running tests against an endpoint
SDK-registered endpoints
Functions decorated with @endpoint via the Connector appear as SDK endpoints and are fetched like any other:
Next: register a code-first endpoint with the Connector, then run a test set against it.