run

Stats Group Runs

Changed on

Get stats for the grouped runs.

post/api/v1/runs/group/stats

Request

  • Base URL
    https://api.smith.langchain.com
  • URL
    https://api.smith.langchain.com/api/v1/runs/group/stats
  • Auth
    • API key in header X-API-Key
    • or API key in header X-Tenant-Id
    • or HTTP bearer

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

    • breaking

      the / response's property type changed from object to string for status

    • breaking

      removed the required property // from the response with the status

    • breaking

      removed the required property // from the response with the status

    • breaking

      removed the required property // from the response with the status

    • breaking

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

    • breaking

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

    • breaking

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

    • breaking

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

    • breaking

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

    • breaking

      the / response's property type changed from string to number for status

    • breaking

      the / response's property type changed from string to number for status

    • breaking

      the / response's property type changed from string to number for status

    • breaking

      the / response's property type changed from string to number for status

    • breaking

      the / response's property type changed from string to number for status