Skip to contentSkip to page list

Docs

Recommended trace wait for a scenario judge

How long a scenario judge should wait for this project's traces before a verdict: the first wait, the one extension it may ask for, and how long the span set must hold still. Measured on the project's own ingest; defaults without history.

GET/api/v1/traces/settle-settings
Request and response examples
request.py
import osimport requests​origin = "https://app.langwatch.ai"path = "/api/v1/traces/settle-settings"api_key = os.environ["LANGWATCH_API_KEY"]headers = {    "X-Auth-Token": api_key,}​response = requests.get(    origin + path,    headers=headers,)print(response.json())

The recommended wait, extension and quiet period, in milliseconds

application/json · Generated from schema

{  "waitTimeoutMs": 0,  "waitExtensionMs": 0,  "quietPeriodMs": 0}
api-reference/traces/recommended-trace-wait-for-a-scenario-judge

Authorization

X-Auth-Tokenstringheaderrequired

Project API key for sending traces and accessing project-scoped resources. Format: sk-lw-... (no underscore). Obtain one by creating a project via the Admin API or the LangWatch UI.

Responses

200

The recommended wait, extension and quiet period, in milliseconds

application/json

waitTimeoutMsintegerrequired
Maximum 9007199254740991
waitExtensionMsintegerrequired
Minimum 0Maximum 9007199254740991
quietPeriodMsintegerrequired
Minimum 0Maximum 9007199254740991
400

Bad Request

application/json

errorstringrequired
messagestring
401

Unauthorized

application/json

errorstringrequired
messagestring
422

Unprocessable Entity

application/json

errorstringrequired
messagestring
500

Internal Server Error

application/json

errorstringrequired
messagestring

Documentation