tracer-sessions

Create Tracer Session

Changed on

Create a new project.

post/api/v1/sessions

Request

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

Query parameters

upsertboolean

Request body

tag_value_idsstring[] nullable
start_timestring date-time
end_timestring date-time nullable
extraobject nullable
namestring
descriptionstring nullable
default_dataset_idstring uuid nullable
reference_dataset_idstring uuid nullable
trace_tier'longlived' | 'shortlived'
idstring uuid nullable
num_examplesinteger nullable
num_repetitionsinteger nullable
evaluator_keysstring[] nullable
kicked_off_bystring nullable

Response

Successful Response

start_timestring date-time
end_timestring date-time nullable
extraobject nullable
namestring
descriptionstring nullable
default_dataset_idstring uuid nullable
reference_dataset_idstring uuid nullable
trace_tier'longlived' | 'shortlived'
idstring uuid required
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
total_coststring nullable
prompt_coststring nullable
completion_coststring nullable
tenant_idstring uuid required
last_run_start_timestring date-time nullable
last_run_start_time_livestring date-time nullable
feedback_statsobject nullable
session_feedback_statsobject nullable
run_facetsobject[] nullable
error_ratenumber nullable
streaming_ratenumber nullable
test_run_numberinteger nullable

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • 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

    • info

      added the new optional request property