Agent Observability

Create an Agent Observability prompt

Create a new prompt (and its first version) in the Agent Observability prompt registry.

Preview: Prompt composition is available in Preview. To request access, contact Datadog Support or your Customer Success Manager.

post/api/v2/llm-obs/v1/prompts

Request

Request body

Example request

{
  "data": {
    "attributes": {
      "config": {
        "model": "provider-model",
        "response_format": {
          "type": "json_object"
        },
        "temperature": 0.2
      },
      "prompt_id": "customer-support-assistant",
      "template": [
        {
          "content": "You are a helpful customer support assistant for {{company_name}}.",
          "role": "system"
        }
      ]
    },
    "type": "prompt-templates"
  }
}

Response

OK

Example response

{
  "data": {
    "attributes": {
      "config": {
        "model": "provider-model",
        "response_format": {
          "type": "json_object"
        },
        "temperature": 0.2
      },
      "created_from": "sdk-registry",
      "in_registry": true,
      "num_versions": 1,
      "prompt_id": "customer-support-assistant",
      "source": "registry"
    },
    "id": "4a1a28ff-8a25-5f0f-946f-f48264d772eb",
    "type": "prompt-templates"
  }
}

Changes

Changes to this operation have not been checked yet.