Agent Observability

Get an Agent Observability prompt

Get the latest version of an Agent Observability prompt by prompt ID.

get/api/v2/llm-obs/v1/prompts/{prompt_id}

Request

Path parameters

prompt_idstring required

The customer-provided identifier of the Agent Observability prompt.

Query parameters

labelstring

Deprecated. Optional label of the prompt version to return. Do not use this parameter for new integrations. If omitted, the latest version is returned. If the prompt has no labels, the latest version is returned even when a label is requested. If the prompt has labels but none match the requested label, a 404 response is returned.

Response

OK

Example response

{
  "data": {
    "attributes": {
      "chat_template": [
        {
          "content": "You are a helpful customer support assistant for {{company_name}}.",
          "role": "system"
        },
        {
          "name": "history",
          "type": "placeholder"
        },
        {
          "content": "Help {{customer_name}} with this question: {{question}}",
          "role": "user"
        }
      ],
      "config": {
        "model": "provider-model",
        "temperature": 0.2
      },
      "prompt_id": "customer-support-assistant",
      "prompt_version_uuid": "d83ab666-61cc-5545-a83b-2424bb85467b",
      "version": "2"
    },
    "id": "4a1a28ff-8a25-5f0f-946f-f48264d772eb",
    "type": "prompt-templates"
  }
}

Changes

Changes to this operation have not been checked yet.