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
- Base URLhttps://api.datadoghq.com
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code/oauth2/v1/authorizeToken URL/oauth2/v1/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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.