run

Stats Group Runs

Get stats for the grouped runs.

post/api/v1/runs/group/stats

Request body

session_idstring uuid required
group_by'conversation' required
filterstring nullable
start_timestring date-time nullable
end_timestring date-time nullable
offsetinteger
limitinteger

Response

Successful Response

run_countinteger nullable
latency_p50number nullable
latency_p99number nullable
first_token_p50number nullable
first_token_p99number nullable
total_tokensinteger nullable
prompt_tokensinteger nullable
completion_tokensinteger nullable
median_tokensinteger nullable
completion_tokens_p50integer nullable
prompt_tokens_p50integer nullable
tokens_p99integer nullable
completion_tokens_p99integer nullable
prompt_tokens_p99integer nullable
last_run_start_timestring date-time nullable
feedback_statsobject nullable
run_facetsobject[] nullable
error_ratenumber nullable
streaming_ratenumber nullable
total_costnumber nullable
prompt_costnumber nullable
completion_costnumber nullable
cost_p50number nullable
cost_p99number nullable
prompt_token_detailsobject nullable
completion_token_detailsobject nullable
prompt_cost_detailsobject nullable
completion_cost_detailsobject nullable
group_countinteger required

Changes

Changed in 1 of the 48 revisions of this API.10

    • response property completion_cost list-of-types was widened by adding types number to media type application/json of response 200

      response-property-list-of-types-widened

    • response property cost_p50 list-of-types was widened by adding types number to media type application/json of response 200

      response-property-list-of-types-widened

    • response property cost_p99 list-of-types was widened by adding types number to media type application/json of response 200

      response-property-list-of-types-widened

    • response property prompt_cost list-of-types was widened by adding types number to media type application/json of response 200

      response-property-list-of-types-widened

    • response property total_cost list-of-types was widened by adding types number to media type application/json of response 200

      response-property-list-of-types-widened

    • the completion_cost/anyOf[subschema #1]/ response's property type/format changed from string/ to number/ for status 200

      response-property-type-changed

    • the cost_p50/anyOf[subschema #1]/ response's property type/format changed from string/ to number/ for status 200

      response-property-type-changed

    • the cost_p99/anyOf[subschema #1]/ response's property type/format changed from string/ to number/ for status 200

      response-property-type-changed

    • the prompt_cost/anyOf[subschema #1]/ response's property type/format changed from string/ to number/ for status 200

      response-property-type-changed

    • the total_cost/anyOf[subschema #1]/ response's property type/format changed from string/ to number/ for status 200

      response-property-type-changed

    This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog