Latitude · Schema
ExperimentComparison
CompanyArtificial IntelligenceObservabilityMonitoringPlatformAgents
Properties
| Name | Type | Description |
|---|---|---|
| experiment | object | |
| variants | array | One entry per variant, in the experiment's stored variant order. The baseline is the entry whose `baseline` field is `true` — identify it by that flag, never by array position. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/latitude-so/json-schema/latitude-so-experiment-comparison-schema.json",
"title": "ExperimentComparison",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/latitude-so-experiments-api-openapi.yml#/components/schemas/ExperimentComparison",
"type": "object",
"properties": {
"experiment": {
"allOf": [
{
"$ref": "#/$defs/Experiment"
},
{
"description": "The experiment, including its variant definitions."
}
]
},
"variants": {
"type": "array",
"items": {
"$ref": "#/$defs/VariantComparison"
},
"description": "One entry per variant, in the experiment's stored variant order. The baseline is the entry whose `baseline` field is `true` — identify it by that flag, never by array position."
}
},
"required": [
"experiment",
"variants"
],
"$defs": {
"AbsoluteVariantTimeRange": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"absolute"
],
"description": "A fixed window between two instants."
},
"fromIso": {
"type": "string",
"description": "ISO-8601 start of the window (inclusive)."
},
"toIso": {
"type": "string",
"description": "ISO-8601 end of the window (inclusive)."
}
},
"required": [
"type",
"fromIso",
"toIso"
]
},
"Experiment": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 24,
"maxLength": 24,
"description": "Stable experiment identifier."
},
"organizationId": {
"type": "string",
"minLength": 24,
"maxLength": 24,
"description": "Organization that owns this experiment."
},
"projectId": {
"type": "string",
"minLength": 24,
"maxLength": 24,
"description": "Project this experiment belongs to."
},
"slug": {
"type": "string",
"description": "URL-safe slug derived from `name`. Unique within the project."
},
"name": {
"type": "string",
"description": "Human-readable name."
},
"description": {
"type": "string",
"description": "Free-form description. Empty string when not set."
},
"variants": {
"type": "array",
"items": {
"$ref": "#/$defs/ExperimentVariant"
},
"description": "Ordered variants. Exactly one carries the baseline flag when the list is non-empty."
},
"createdAt": {
"type": "string",
"description": "ISO-8601 timestamp of creation."
},
"updatedAt": {
"type": "string",
"description": "ISO-8601 timestamp of the last update."
}
},
"required": [
"id",
"organizationId",
"projectId",
"slug",
"name",
"description",
"variants",
"createdAt",
"updatedAt"
]
},
"ExperimentBehavioursMetrics": {
"type": "object",
"properties": {
"observations": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Total behaviour observations on the variant's sessions — count."
},
"distinct_clusters": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Distinct behaviour clusters observed — count."
},
"moments": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Semantic moments detected on the variant's sessions — count."
},
"top": {
"type": "array",
"items": {
"$ref": "#/$defs/ExperimentTopListItem"
},
"description": "Top behaviours by observation count."
}
},
"required": [
"observations",
"distinct_clusters",
"moments",
"top"
]
},
"ExperimentSessionsMetrics": {
"type": "object",
"properties": {
"count": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Number of sessions in the variant's population — count."
},
"users": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Distinct users across the variant's sessions — count."
},
"cost_total": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Total model cost across the variant's sessions — USD; lower is better."
},
"tokens_total": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Total tokens across the variant's sessions — tokens."
},
"error_rate": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Fraction of sessions with at least one error — fraction (0–1); lower is better."
},
"cache_hit_rate": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Fraction of input tokens served from cache — fraction (0–1); higher is better."
},
"duration_median": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Median session duration — seconds; lower is better."
},
"duration_p90": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "90th-percentile session duration — seconds; lower is better."
},
"duration_p95": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "95th-percentile session duration — seconds; lower is better."
},
"cost_avg": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Average model cost per session — USD; lower is better."
},
"tokens_avg": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Average tokens per session — tokens."
},
"ttft_median": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Median time to first token across sessions — seconds; lower is better."
},
"spans_avg": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Average spans per session — count."
},
"traces_avg": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Average traces per session — count."
}
},
"required": [
"count",
"users",
"cost_total",
"tokens_total",
"error_rate",
"cache_hit_rate",
"duration_median",
"duration_p90",
"duration_p95",
"cost_avg",
"tokens_avg",
"ttft_median",
"spans_avg",
"traces_avg"
]
},
"ExperimentSignalsMetrics": {
"type": "object",
"properties": {
"distinct": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Distinct signals raised on the variant's sessions — count; lower is better."
},
"occurrences": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Total signal occurrences — count; lower is better."
},
"affected_sessions_rate": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Fraction of sessions with at least one signal — fraction (0–1); lower is better."
},
"affected_traces_rate": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Fraction of traces with at least one signal — fraction (0–1); lower is better."
},
"affected_users": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Fraction of users with at least one signal — fraction (0–1); lower is better."
},
"cost_impact": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Total model cost of sessions carrying a signal — USD; lower is better."
},
"top": {
"type": "array",
"items": {
"$ref": "#/$defs/ExperimentTopListItem"
},
"description": "Top signals by occurrence count."
}
},
"required": [
"distinct",
"occurrences",
"affected_sessions_rate",
"affected_traces_rate",
"affected_users",
"cost_impact",
"top"
]
},
"ExperimentToolsMetrics": {
"type": "object",
"properties": {
"calls": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Total tool calls across the variant's sessions — count."
},
"distinct": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Distinct tools called — count."
},
"sessions_with_tools_rate": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Fraction of sessions that call at least one tool — fraction (0–1)."
},
"error_rate": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Fraction of tool calls that error — fraction (0–1); lower is better."
},
"duration_p50": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Median tool-call duration — seconds; lower is better."
},
"duration_p90": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "90th-percentile tool-call duration — seconds; lower is better."
},
"duration_p95": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "95th-percentile tool-call duration — seconds; lower is better."
},
"top": {
"type": "array",
"items": {
"$ref": "#/$defs/ExperimentTopListItem"
},
"description": "Top tools by call count."
}
},
"required": [
"calls",
"distinct",
"sessions_with_tools_rate",
"error_rate",
"duration_p50",
"duration_p90",
"duration_p95",
"top"
]
},
"ExperimentTopListItem": {
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "Stable identity: tool name, signal slug, or cluster id."
},
"label": {
"type": "string",
"description": "Human-readable label (resolved name; falls back to `key` when unresolved)."
},
"value": {
"type": "number",
"description": "Ranking value: tool calls / signal occurrences / behaviour observations."
}
},
"required": [
"key",
"label",
"value"
]
},
"ExperimentUsersMetrics": {
"type": "object",
"properties": {
"distinct": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Distinct users in the variant's population — count."
},
"sessions_per_user": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Average sessions per user — count."
},
"traces_per_user": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Average traces per user — count."
},
"cost_avg": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Average model cost per user — USD; lower is better."
},
"duration_median": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Median total session time per user — seconds; lower is better."
},
"duration_p90": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "90th-percentile total session time per user — seconds; lower is better."
},
"duration_p95": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "95th-percentile total session time per user — seconds; lower is better."
},
"error_session_rate": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
],
"description": "Value in the metric's unit; `null` when empty or not computable."
},
"delta": {
"$ref": "#/$defs/MetricDelta"
}
},
"required": [
"value",
"delta"
],
"description": "Average fraction of a user's sessions that have an error — fraction (0–1); lower is better."
}
},
"required": [
"distinct",
"sessions_per_user",
"traces_per_user",
"cost_avg",
"duration_median",
"duration_p90",
"duration_p95",
"error_session_rate"
]
},
"ExperimentVariant": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 24,
"maxLength": 24,
"description": "Stable variant identifier, unique within the experiment."
},
"name": {
"type": "string",
"description": "Human-readable variant name (e.g. \"Variant A\"). Unique within the experiment."
},
"baseline": {
"type": "boolean",
"description": "`true` for the single baseline variant that every other variant is compared against."
},
"filterSet": {
"allOf": [
{
"$ref": "#/$defs/FilterSet"
},
{
"description": "Session filters selecting this variant's population."
}
]
},
"query": {
"type": [
"string",
"null"
],
"description": "Free-text / semantic search applied to the population, or `null`."
},
"timeRange": {
"$ref": "#/$defs/VariantTimeRange"
}
},
"required": [
"id",
"name",
"baseline",
"filterSet",
"query",
"timeRange"
]
},
"FilterCondition": {
"type": "object",
"properties": {
"op": {
"type": "string",
"enum": [
"eq",
"neq",
"gt",
"gte",
"lt",
"lte",
"in",
"notIn",
"contains",
"notContains",
"gtePercentile"
],
"description": "Comparison operator applied to the field's value (e.g. `eq`, `neq`, `in`). The full operator list lives in the API reference."
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
}
}
],
"description": "Right-hand value compared against the field. Arrays are required for `in` / `notIn`-style operators."
}
},
"required": [
"op",
"value"
]
},
"FilterSet": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"$ref": "#/$defs/FilterCondition"
}
},
"description": "Filter set keyed by field name. Each entry holds an array of conditions ANDed together for that field; field-level groups are also ANDed across the set."
},
"MetricDelta": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"enum": [
"up-from-zero"
]
},
{
"nullable": true
}
],
"description": "Change vs the baseline: a signed fraction `(value - baseline) / baseline`, `\"up-from-zero\"` for an unbounded increase from a zero baseline, or `null` when incomparable or on the baseline variant itself."
},
"RelativeVariantTimeRange": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"relative"
],
"description": "A live window ending now, spanning the last `seconds`."
},
"seconds": {
"type": "integer",
"minimum": 0,
"exclusiveMinimum": true,
"description": "Length of the live window in seconds (e.g. 2592000 for the last 30 days)."
}
},
"required": [
"type",
"seconds"
]
},
"ResolvedRange": {
"type": "object",
"properties": {
"fromIso": {
"type": "string",
"description": "ISO-8601 start of the resolved window."
},
"toIso": {
"type": "string",
"description": "ISO-8601 end of the resolved window."
}
},
"required": [
"fromIso",
"toIso"
],
"description": "The absolute window the metrics were computed over."
},
"VariantComparison": {
"type": "object",
"properties": {
"variantId": {
"type": "string",
"description": "Id of the variant these metrics belong to."
},
"baseline": {
"type": "b
# --- truncated at 32 KB (34 KB total) ---
# Full source: https://artifacts.apis.io/latitude-so/json-schema/latitude-so-experiment-comparison-schema.json
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/latitude-so-experiment-comparison"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.