Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.galtea.ai/llms.txt

Use this file to discover all available pages before exploring further.

The Endpoint Connection Service in the Galtea SDK allows you to manage endpoint connections for your products. This Service is exposed by the galtea.endpoint_connections object.
Remember that we will be using the galtea object. More information here.

Quick Example

First, initialize the Galtea SDK:
galtea = Galtea(api_key="YOUR_API_KEY")
Create an endpoint connection:
endpoint_connection = galtea.endpoint_connections.create(
    name="production-chat-api-" + run_identifier,
    product_id=product_id,
    url="https://api.example.com/v1/chat",
    type=EndpointConnectionType.CONVERSATION,
    http_method="POST",
    auth_type="BEARER",
    auth_token="YOUR_AUTH_TOKEN",
    input_template='{"message": "{{ input.user_message }}"}',
    output_mapping={"output": "$.response"},
    timeout=30,
)
List endpoint connections for a product:
endpoint_connections = galtea.endpoint_connections.list(
    product_ids=[product_id],
    sort_by_created_at="desc",
    limit=10,
)
Get an endpoint connection by ID:
endpoint_connection = galtea.endpoint_connections.get(
    endpoint_connection_id=endpoint_connection_id
)

Service Methods

Endpoint Connection

A reusable connection to an external endpoint for AI product evaluation