Skip to main content

integration_inferences

Creates, updates, deletes, gets or lists an integration_inferences resource.

Overview

Nameintegration_inferences
TypeResource
Iddatadog.llm_observability.integration_inferences

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_llmobs_integration_inferenceinsertintegration, account_id, model_id, messagesRun an LLM inference request through the specified integration and account, returning the model response and token usage.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstringThe ID of the integration account. (example: account-abc123)
integrationstringThe name of the LLM integration.
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.

INSERT examples

Run an LLM inference request through the specified integration and account, returning the model response and token usage.

INSERT INTO datadog.llm_observability.integration_inferences (
anthropic_metadata,
azure_openai_metadata,
bedrock_metadata,
frequency_penalty,
json_schema,
max_completion_tokens,
max_tokens,
messages,
model_id,
openai_metadata,
presence_penalty,
temperature,
tools,
top_k,
top_p,
vertex_ai_metadata,
integration,
account_id
)
SELECT
'{{ anthropic_metadata }}',
'{{ azure_openai_metadata }}',
'{{ bedrock_metadata }}',
{{ frequency_penalty }},
'{{ json_schema }}',
{{ max_completion_tokens }},
{{ max_tokens }},
'{{ messages }}' /* required */,
'{{ model_id }}' /* required */,
'{{ openai_metadata }}',
{{ presence_penalty }},
{{ temperature }},
'{{ tools }}',
{{ top_k }},
{{ top_p }},
'{{ vertex_ai_metadata }}',
'{{ integration }}',
'{{ account_id }}'
RETURNING
model_id,
anthropic_metadata,
azure_openai_metadata,
bedrock_metadata,
error_response,
frequency_penalty,
json_schema,
max_completion_tokens,
max_tokens,
messages,
openai_metadata,
presence_penalty,
response,
temperature,
tools,
top_k,
top_p,
vertex_ai_metadata
;