From 5a0b02a940611070fe72871ba12ff94734dba6a5 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 13 Nov 2026 09:05:13 +0000 Subject: [PATCH] Regenerate client from commit ac95f31 of spec repo --- .generator/schemas/v2/openapi.yaml | 33 +++++++++++++++++++ .../UpsertLLMObsPatternsConfig.py | 1 + .../llm_obs_patterns_config_attributes.py | 12 +++++++ .../v2/model/llm_obs_patterns_config_item.py | 12 +++++++ ...tterns_config_upsert_request_attributes.py | 13 ++++++++ tests/v2/features/agent_observability.feature | 6 ++-- 6 files changed, 74 insertions(+), 3 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index dcfb4f81ce..4ae4adc660 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -81749,6 +81749,15 @@ components: example: openai nullable: true type: string + min_cluster_size: + description: |- + Minimum topic size, the smallest number of interactions a topic must contain. Topics with fewer + interactions are moved to Outliers. + example: 15 + format: int32 + maximum: 2147483647 + minimum: 2 + type: integer model_name: description: Model name for a bring-your-own-model configuration. example: gpt-4o @@ -81788,6 +81797,7 @@ components: - evp_query - sampling_ratio - num_records + - min_cluster_size - hierarchy_depth - scope - created_at @@ -81825,6 +81835,15 @@ components: example: openai nullable: true type: string + min_cluster_size: + description: |- + Minimum topic size, the smallest number of interactions a topic must contain. Topics with fewer + interactions are moved to Outliers. + example: 15 + format: int32 + maximum: 2147483647 + minimum: 2 + type: integer model_name: description: Model name for a bring-your-own-model configuration. example: gpt-4o @@ -81865,6 +81884,7 @@ components: - evp_query - sampling_ratio - num_records + - min_cluster_size - hierarchy_depth - scope - created_at @@ -81977,6 +81997,15 @@ components: description: Integration provider for a bring-your-own-model configuration. example: openai type: string + min_cluster_size: + description: |- + Minimum topic size, the smallest number of interactions a topic must contain. Topics with fewer + interactions are moved to Outliers. Must be at least 2 and less than `num_records`. Required when creating a configuration. + example: 15 + format: int32 + maximum: 2147483647 + minimum: 2 + type: integer model_name: description: Model name for a bring-your-own-model configuration. example: gpt-4o @@ -210024,6 +210053,7 @@ paths: evp_query: "@ml_app:support-bot" hierarchy_depth: 2 id: a7c8d9e0-1234-5678-9abc-def012345678 + min_cluster_size: 15 name: Support chatbot topics num_records: 1000 sampling_ratio: 0.1 @@ -210083,6 +210113,7 @@ paths: attributes: evp_query: "@ml_app:support-bot" hierarchy_depth: 2 + min_cluster_size: 15 name: Support chatbot topics num_records: 1000 sampling_ratio: 0.1 @@ -210103,6 +210134,7 @@ paths: created_at: "2024-01-15T10:30:00Z" evp_query: "@ml_app:support-bot" hierarchy_depth: 2 + min_cluster_size: 15 name: Support chatbot topics num_records: 1000 sampling_ratio: 0.1 @@ -210171,6 +210203,7 @@ paths: created_at: "2024-01-15T10:30:00Z" evp_query: "@ml_app:support-bot" hierarchy_depth: 2 + min_cluster_size: 15 name: Support chatbot topics num_records: 1000 sampling_ratio: 0.1 diff --git a/examples/v2/agent-observability/UpsertLLMObsPatternsConfig.py b/examples/v2/agent-observability/UpsertLLMObsPatternsConfig.py index 88b167d3a7..1497a8e963 100644 --- a/examples/v2/agent-observability/UpsertLLMObsPatternsConfig.py +++ b/examples/v2/agent-observability/UpsertLLMObsPatternsConfig.py @@ -22,6 +22,7 @@ evp_query="@ml_app:support-bot", hierarchy_depth=2, integration_provider="openai", + min_cluster_size=15, model_name="gpt-4o", name="Support chatbot topics", num_records=1000, diff --git a/src/datadog_api_client/v2/model/llm_obs_patterns_config_attributes.py b/src/datadog_api_client/v2/model/llm_obs_patterns_config_attributes.py index d8865ddd20..6a09018814 100644 --- a/src/datadog_api_client/v2/model/llm_obs_patterns_config_attributes.py +++ b/src/datadog_api_client/v2/model/llm_obs_patterns_config_attributes.py @@ -20,6 +20,10 @@ class LLMObsPatternsConfigAttributes(ModelNormal): "hierarchy_depth": { "inclusive_maximum": 2147483647, }, + "min_cluster_size": { + "inclusive_maximum": 2147483647, + "inclusive_minimum": 2, + }, "num_records": { "inclusive_maximum": 2147483647, }, @@ -33,6 +37,7 @@ def openapi_types(_): "evp_query": (str,), "hierarchy_depth": (int,), "integration_provider": (str, none_type), + "min_cluster_size": (int,), "model_name": (str, none_type), "name": (str,), "num_records": (int,), @@ -48,6 +53,7 @@ def openapi_types(_): "evp_query": "evp_query", "hierarchy_depth": "hierarchy_depth", "integration_provider": "integration_provider", + "min_cluster_size": "min_cluster_size", "model_name": "model_name", "name": "name", "num_records": "num_records", @@ -62,6 +68,7 @@ def __init__( created_at: datetime, evp_query: str, hierarchy_depth: int, + min_cluster_size: int, name: str, num_records: int, sampling_ratio: float, @@ -91,6 +98,10 @@ def __init__( :param integration_provider: Integration provider for a bring-your-own-model configuration. :type integration_provider: str, none_type, optional + :param min_cluster_size: Minimum topic size, the smallest number of interactions a topic must contain. Topics with fewer + interactions are moved to Outliers. + :type min_cluster_size: int + :param model_name: Model name for a bring-your-own-model configuration. :type model_name: str, none_type, optional @@ -125,6 +136,7 @@ def __init__( self_.created_at = created_at self_.evp_query = evp_query self_.hierarchy_depth = hierarchy_depth + self_.min_cluster_size = min_cluster_size self_.name = name self_.num_records = num_records self_.sampling_ratio = sampling_ratio diff --git a/src/datadog_api_client/v2/model/llm_obs_patterns_config_item.py b/src/datadog_api_client/v2/model/llm_obs_patterns_config_item.py index 62cf7ae002..1908c8726e 100644 --- a/src/datadog_api_client/v2/model/llm_obs_patterns_config_item.py +++ b/src/datadog_api_client/v2/model/llm_obs_patterns_config_item.py @@ -20,6 +20,10 @@ class LLMObsPatternsConfigItem(ModelNormal): "hierarchy_depth": { "inclusive_maximum": 2147483647, }, + "min_cluster_size": { + "inclusive_maximum": 2147483647, + "inclusive_minimum": 2, + }, "num_records": { "inclusive_maximum": 2147483647, }, @@ -34,6 +38,7 @@ def openapi_types(_): "hierarchy_depth": (int,), "id": (str,), "integration_provider": (str, none_type), + "min_cluster_size": (int,), "model_name": (str, none_type), "name": (str,), "num_records": (int,), @@ -50,6 +55,7 @@ def openapi_types(_): "hierarchy_depth": "hierarchy_depth", "id": "id", "integration_provider": "integration_provider", + "min_cluster_size": "min_cluster_size", "model_name": "model_name", "name": "name", "num_records": "num_records", @@ -65,6 +71,7 @@ def __init__( evp_query: str, hierarchy_depth: int, id: str, + min_cluster_size: int, name: str, num_records: int, sampling_ratio: float, @@ -97,6 +104,10 @@ def __init__( :param integration_provider: Integration provider for a bring-your-own-model configuration. :type integration_provider: str, none_type, optional + :param min_cluster_size: Minimum topic size, the smallest number of interactions a topic must contain. Topics with fewer + interactions are moved to Outliers. + :type min_cluster_size: int + :param model_name: Model name for a bring-your-own-model configuration. :type model_name: str, none_type, optional @@ -132,6 +143,7 @@ def __init__( self_.evp_query = evp_query self_.hierarchy_depth = hierarchy_depth self_.id = id + self_.min_cluster_size = min_cluster_size self_.name = name self_.num_records = num_records self_.sampling_ratio = sampling_ratio diff --git a/src/datadog_api_client/v2/model/llm_obs_patterns_config_upsert_request_attributes.py b/src/datadog_api_client/v2/model/llm_obs_patterns_config_upsert_request_attributes.py index 97c63222a8..b39b046ddf 100644 --- a/src/datadog_api_client/v2/model/llm_obs_patterns_config_upsert_request_attributes.py +++ b/src/datadog_api_client/v2/model/llm_obs_patterns_config_upsert_request_attributes.py @@ -18,6 +18,10 @@ class LLMObsPatternsConfigUpsertRequestAttributes(ModelNormal): "hierarchy_depth": { "inclusive_maximum": 2147483647, }, + "min_cluster_size": { + "inclusive_maximum": 2147483647, + "inclusive_minimum": 2, + }, "num_records": { "inclusive_maximum": 2147483647, }, @@ -31,6 +35,7 @@ def openapi_types(_): "evp_query": (str,), "hierarchy_depth": (int,), "integration_provider": (str,), + "min_cluster_size": (int,), "model_name": (str,), "name": (str,), "num_records": (int,), @@ -45,6 +50,7 @@ def openapi_types(_): "evp_query": "evp_query", "hierarchy_depth": "hierarchy_depth", "integration_provider": "integration_provider", + "min_cluster_size": "min_cluster_size", "model_name": "model_name", "name": "name", "num_records": "num_records", @@ -63,6 +69,7 @@ def __init__( account_id: Union[str, UnsetType] = unset, config_id: Union[str, UnsetType] = unset, integration_provider: Union[str, UnsetType] = unset, + min_cluster_size: Union[int, UnsetType] = unset, model_name: Union[str, UnsetType] = unset, scope: Union[str, UnsetType] = unset, template: Union[str, UnsetType] = unset, @@ -86,6 +93,10 @@ def __init__( :param integration_provider: Integration provider for a bring-your-own-model configuration. :type integration_provider: str, optional + :param min_cluster_size: Minimum topic size, the smallest number of interactions a topic must contain. Topics with fewer + interactions are moved to Outliers. Must be at least 2 and less than ``num_records``. Required when creating a configuration. + :type min_cluster_size: int, optional + :param model_name: Model name for a bring-your-own-model configuration. :type model_name: str, optional @@ -110,6 +121,8 @@ def __init__( kwargs["config_id"] = config_id if integration_provider is not unset: kwargs["integration_provider"] = integration_provider + if min_cluster_size is not unset: + kwargs["min_cluster_size"] = min_cluster_size if model_name is not unset: kwargs["model_name"] = model_name if scope is not unset: diff --git a/tests/v2/features/agent_observability.feature b/tests/v2/features/agent_observability.feature index 5bc52de225..7fb0f6b37b 100644 --- a/tests/v2/features/agent_observability.feature +++ b/tests/v2/features/agent_observability.feature @@ -370,7 +370,7 @@ Feature: Agent Observability Scenario: Create or update a patterns configuration returns "Bad Request" response Given operation "UpsertLLMObsPatternsConfig" enabled And new "UpsertLLMObsPatternsConfig" request - And body with value {"data": {"attributes": {"account_id": "1000000001", "config_id": "a7c8d9e0-1234-5678-9abc-def012345678", "evp_query": "@ml_app:support-bot", "hierarchy_depth": 2, "integration_provider": "openai", "model_name": "gpt-4o", "name": "Support chatbot topics", "num_records": 1000, "sampling_ratio": 0.1, "scope": "", "template": ""}, "type": "topic_discovery_configs"}} + And body with value {"data": {"attributes": {"account_id": "1000000001", "config_id": "a7c8d9e0-1234-5678-9abc-def012345678", "evp_query": "@ml_app:support-bot", "hierarchy_depth": 2, "integration_provider": "openai", "min_cluster_size": 15, "model_name": "gpt-4o", "name": "Support chatbot topics", "num_records": 1000, "sampling_ratio": 0.1, "scope": "", "template": ""}, "type": "topic_discovery_configs"}} When the request is sent Then the response status is 400 Bad Request @@ -378,7 +378,7 @@ Feature: Agent Observability Scenario: Create or update a patterns configuration returns "Not Found" response Given operation "UpsertLLMObsPatternsConfig" enabled And new "UpsertLLMObsPatternsConfig" request - And body with value {"data": {"attributes": {"account_id": "1000000001", "config_id": "a7c8d9e0-1234-5678-9abc-def012345678", "evp_query": "@ml_app:support-bot", "hierarchy_depth": 2, "integration_provider": "openai", "model_name": "gpt-4o", "name": "Support chatbot topics", "num_records": 1000, "sampling_ratio": 0.1, "scope": "", "template": ""}, "type": "topic_discovery_configs"}} + And body with value {"data": {"attributes": {"account_id": "1000000001", "config_id": "a7c8d9e0-1234-5678-9abc-def012345678", "evp_query": "@ml_app:support-bot", "hierarchy_depth": 2, "integration_provider": "openai", "min_cluster_size": 15, "model_name": "gpt-4o", "name": "Support chatbot topics", "num_records": 1000, "sampling_ratio": 0.1, "scope": "", "template": ""}, "type": "topic_discovery_configs"}} When the request is sent Then the response status is 404 Not Found @@ -386,7 +386,7 @@ Feature: Agent Observability Scenario: Create or update a patterns configuration returns "OK" response Given operation "UpsertLLMObsPatternsConfig" enabled And new "UpsertLLMObsPatternsConfig" request - And body with value {"data": {"attributes": {"account_id": "1000000001", "config_id": "a7c8d9e0-1234-5678-9abc-def012345678", "evp_query": "@ml_app:support-bot", "hierarchy_depth": 2, "integration_provider": "openai", "model_name": "gpt-4o", "name": "Support chatbot topics", "num_records": 1000, "sampling_ratio": 0.1, "scope": "", "template": ""}, "type": "topic_discovery_configs"}} + And body with value {"data": {"attributes": {"account_id": "1000000001", "config_id": "a7c8d9e0-1234-5678-9abc-def012345678", "evp_query": "@ml_app:support-bot", "hierarchy_depth": 2, "integration_provider": "openai", "min_cluster_size": 15, "model_name": "gpt-4o", "name": "Support chatbot topics", "num_records": 1000, "sampling_ratio": 0.1, "scope": "", "template": ""}, "type": "topic_discovery_configs"}} When the request is sent Then the response status is 200 OK