Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
439 changes: 439 additions & 0 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions examples/v2/llm-observability/GetLLMObsDatasetDraftState.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Get LLM Observability dataset draft state returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.get_llm_obs_dataset_draft_state".to_sym] = true
end
api_instance = DatadogAPIClient::V2::LLMObservabilityAPI.new
p api_instance.get_llm_obs_dataset_draft_state("project_id", "dataset_id")
8 changes: 8 additions & 0 deletions examples/v2/llm-observability/ListLLMObsDatasetVersions.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# List LLM Observability dataset versions returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.list_llm_obs_dataset_versions".to_sym] = true
end
api_instance = DatadogAPIClient::V2::LLMObservabilityAPI.new
p api_instance.list_llm_obs_dataset_versions("project_id", "dataset_id")
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Lock LLM Observability dataset draft state returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.lock_llm_obs_dataset_draft_state".to_sym] = true
end
api_instance = DatadogAPIClient::V2::LLMObservabilityAPI.new
p api_instance.lock_llm_obs_dataset_draft_state("project_id", "dataset_id")
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Unlock LLM Observability dataset draft state returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.unlock_llm_obs_dataset_draft_state".to_sym] = true
end
api_instance = DatadogAPIClient::V2::LLMObservabilityAPI.new
p api_instance.unlock_llm_obs_dataset_draft_state("project_id", "dataset_id")
16 changes: 16 additions & 0 deletions features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,18 @@
"dataset_id" => "String",
"body" => "LLMObsDatasetUpdateRequest",
},
"v2.GetLLMObsDatasetDraftState" => {
"project_id" => "String",
"dataset_id" => "String",
},
"v2.LockLLMObsDatasetDraftState" => {
"project_id" => "String",
"dataset_id" => "String",
},
"v2.UnlockLLMObsDatasetDraftState" => {
"project_id" => "String",
"dataset_id" => "String",
},
"v2.ListLLMObsDatasetRecords" => {
"project_id" => "String",
"dataset_id" => "String",
Expand All @@ -1076,6 +1088,10 @@
"dataset_id" => "String",
"body" => "LLMObsDeleteDatasetRecordsRequest",
},
"v2.ListLLMObsDatasetVersions" => {
"project_id" => "String",
"dataset_id" => "String",
},
"v2.ListLLMObsExperimentEvents" => {
"experiment_id" => "String",
"page_limit" => "Integer",
Expand Down
108 changes: 108 additions & 0 deletions features/v2/llm_observability.feature
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,33 @@ Feature: LLM Observability
When the request is sent
Then the response status is 404 Not Found

@generated @skip @team:DataDog/ml-observability
Scenario: Get LLM Observability dataset draft state returns "Bad Request" response
Given operation "GetLLMObsDatasetDraftState" enabled
And new "GetLLMObsDatasetDraftState" request
And request contains "project_id" parameter from "REPLACE.ME"
And request contains "dataset_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/ml-observability
Scenario: Get LLM Observability dataset draft state returns "Not Found" response
Given operation "GetLLMObsDatasetDraftState" enabled
And new "GetLLMObsDatasetDraftState" request
And request contains "project_id" parameter from "REPLACE.ME"
And request contains "dataset_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 Not Found

@generated @skip @team:DataDog/ml-observability
Scenario: Get LLM Observability dataset draft state returns "OK" response
Given operation "GetLLMObsDatasetDraftState" enabled
And new "GetLLMObsDatasetDraftState" request
And request contains "project_id" parameter from "REPLACE.ME"
And request contains "dataset_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/ml-observability
Scenario: Get a custom evaluator configuration returns "Bad Request" response
Given operation "GetLLMObsCustomEvalConfig" enabled
Expand Down Expand Up @@ -538,6 +565,33 @@ Feature: LLM Observability
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/ml-observability
Scenario: List LLM Observability dataset versions returns "Bad Request" response
Given operation "ListLLMObsDatasetVersions" enabled
And new "ListLLMObsDatasetVersions" request
And request contains "project_id" parameter from "REPLACE.ME"
And request contains "dataset_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/ml-observability
Scenario: List LLM Observability dataset versions returns "Not Found" response
Given operation "ListLLMObsDatasetVersions" enabled
And new "ListLLMObsDatasetVersions" request
And request contains "project_id" parameter from "REPLACE.ME"
And request contains "dataset_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 Not Found

@generated @skip @team:DataDog/ml-observability
Scenario: List LLM Observability dataset versions returns "OK" response
Given operation "ListLLMObsDatasetVersions" enabled
And new "ListLLMObsDatasetVersions" request
And request contains "project_id" parameter from "REPLACE.ME"
And request contains "dataset_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/ml-observability
Scenario: List LLM Observability datasets returns "Bad Request" response
Given operation "ListLLMObsDatasets" enabled
Expand Down Expand Up @@ -662,6 +716,33 @@ Feature: LLM Observability
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/ml-observability
Scenario: Lock LLM Observability dataset draft state returns "Bad Request" response
Given operation "LockLLMObsDatasetDraftState" enabled
And new "LockLLMObsDatasetDraftState" request
And request contains "project_id" parameter from "REPLACE.ME"
And request contains "dataset_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/ml-observability
Scenario: Lock LLM Observability dataset draft state returns "Not Found" response
Given operation "LockLLMObsDatasetDraftState" enabled
And new "LockLLMObsDatasetDraftState" request
And request contains "project_id" parameter from "REPLACE.ME"
And request contains "dataset_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 Not Found

@generated @skip @team:DataDog/ml-observability
Scenario: Lock LLM Observability dataset draft state returns "OK" response
Given operation "LockLLMObsDatasetDraftState" enabled
And new "LockLLMObsDatasetDraftState" request
And request contains "project_id" parameter from "REPLACE.ME"
And request contains "dataset_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/ml-observability
Scenario: Push events for an LLM Observability experiment returns "Accepted" response
Given operation "CreateLLMObsExperimentEvents" enabled
Expand Down Expand Up @@ -765,6 +846,33 @@ Feature: LLM Observability
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/ml-observability
Scenario: Unlock LLM Observability dataset draft state returns "Bad Request" response
Given operation "UnlockLLMObsDatasetDraftState" enabled
And new "UnlockLLMObsDatasetDraftState" request
And request contains "project_id" parameter from "REPLACE.ME"
And request contains "dataset_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/ml-observability
Scenario: Unlock LLM Observability dataset draft state returns "Not Found" response
Given operation "UnlockLLMObsDatasetDraftState" enabled
And new "UnlockLLMObsDatasetDraftState" request
And request contains "project_id" parameter from "REPLACE.ME"
And request contains "dataset_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 Not Found

@generated @skip @team:DataDog/ml-observability
Scenario: Unlock LLM Observability dataset draft state returns "OK" response
Given operation "UnlockLLMObsDatasetDraftState" enabled
And new "UnlockLLMObsDatasetDraftState" request
And request contains "project_id" parameter from "REPLACE.ME"
And request contains "dataset_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/ml-observability
Scenario: Update LLM Observability dataset records returns "Bad Request" response
Given operation "UpdateLLMObsDatasetRecords" enabled
Expand Down
24 changes: 24 additions & 0 deletions features/v2/undo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3925,6 +3925,24 @@
"type": "idempotent"
}
},
"GetLLMObsDatasetDraftState": {
"tag": "LLM Observability",
"undo": {
"type": "safe"
}
},
"LockLLMObsDatasetDraftState": {
"tag": "LLM Observability",
"undo": {
"type": "idempotent"
}
},
"UnlockLLMObsDatasetDraftState": {
"tag": "LLM Observability",
"undo": {
"type": "idempotent"
}
},
"ListLLMObsDatasetRecords": {
"tag": "LLM Observability",
"undo": {
Expand Down Expand Up @@ -3962,6 +3980,12 @@
"type": "unsafe"
}
},
"ListLLMObsDatasetVersions": {
"tag": "LLM Observability",
"undo": {
"type": "safe"
}
},
"ListLLMObsExperimentEvents": {
"tag": "LLM Observability",
"undo": {
Expand Down
4 changes: 4 additions & 0 deletions lib/datadog_api_client/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,18 +228,22 @@ def initialize
"v2.get_llm_obs_annotated_interactions_by_trace_i_ds": false,
"v2.get_llm_obs_annotation_queue_label_schema": false,
"v2.get_llm_obs_custom_eval_config": false,
"v2.get_llm_obs_dataset_draft_state": false,
"v2.list_llm_obs_annotation_queues": false,
"v2.list_llm_obs_dataset_records": false,
"v2.list_llm_obs_datasets": false,
"v2.list_llm_obs_dataset_versions": false,
"v2.list_llm_obs_experiment_events": false,
"v2.list_llm_obs_experiments": false,
"v2.list_llm_obs_integration_accounts": false,
"v2.list_llm_obs_integration_models": false,
"v2.list_llm_obs_projects": false,
"v2.list_llm_obs_spans": false,
"v2.lock_llm_obs_dataset_draft_state": false,
"v2.search_llm_obs_experimentation": false,
"v2.search_llm_obs_spans": false,
"v2.simple_search_llm_obs_experimentation": false,
"v2.unlock_llm_obs_dataset_draft_state": false,
"v2.update_llm_obs_annotation_queue": false,
"v2.update_llm_obs_annotation_queue_label_schema": false,
"v2.update_llm_obs_custom_eval_config": false,
Expand Down
9 changes: 9 additions & 0 deletions lib/datadog_api_client/inflector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3788,6 +3788,11 @@ def overrides
"v2.llm_obs_dataset_data_attributes_response" => "LLMObsDatasetDataAttributesResponse",
"v2.llm_obs_dataset_data_request" => "LLMObsDatasetDataRequest",
"v2.llm_obs_dataset_data_response" => "LLMObsDatasetDataResponse",
"v2.llm_obs_dataset_draft_state_data" => "LLMObsDatasetDraftStateData",
"v2.llm_obs_dataset_draft_state_data_attributes" => "LLMObsDatasetDraftStateDataAttributes",
"v2.llm_obs_dataset_draft_state_response" => "LLMObsDatasetDraftStateResponse",
"v2.llm_obs_dataset_draft_state_type" => "LLMObsDatasetDraftStateType",
"v2.llm_obs_dataset_draft_state_user" => "LLMObsDatasetDraftStateUser",
"v2.llm_obs_dataset_record_data_response" => "LLMObsDatasetRecordDataResponse",
"v2.llm_obs_dataset_record_item" => "LLMObsDatasetRecordItem",
"v2.llm_obs_dataset_records_data_attributes_request" => "LLMObsDatasetRecordsDataAttributesRequest",
Expand All @@ -3807,6 +3812,10 @@ def overrides
"v2.llm_obs_dataset_update_data_attributes_request" => "LLMObsDatasetUpdateDataAttributesRequest",
"v2.llm_obs_dataset_update_data_request" => "LLMObsDatasetUpdateDataRequest",
"v2.llm_obs_dataset_update_request" => "LLMObsDatasetUpdateRequest",
"v2.llm_obs_dataset_version_data" => "LLMObsDatasetVersionData",
"v2.llm_obs_dataset_version_data_attributes" => "LLMObsDatasetVersionDataAttributes",
"v2.llm_obs_dataset_versions_response" => "LLMObsDatasetVersionsResponse",
"v2.llm_obs_dataset_version_type" => "LLMObsDatasetVersionType",
"v2.llm_obs_delete_annotation_queue_interactions_data_attributes_request" => "LLMObsDeleteAnnotationQueueInteractionsDataAttributesRequest",
"v2.llm_obs_delete_annotation_queue_interactions_data_request" => "LLMObsDeleteAnnotationQueueInteractionsDataRequest",
"v2.llm_obs_delete_annotation_queue_interactions_request" => "LLMObsDeleteAnnotationQueueInteractionsRequest",
Expand Down
Loading
Loading