tracer-sessions

[Beta] Create Insights Job

Changed on

Create an Insights job for a project.

post/api/v1/sessions/{session_id}/insights

Request

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

Path parameters

session_idstring uuid required

Request body

config_idstring uuid nullable
start_timestring date-time nullable
end_timestring date-time nullable
last_n_hoursinteger nullable
hierarchyinteger[] nullable
partitionsobject nullable
summary_promptstring nullable
filterstring nullable
namestring nullable
attribute_schemasobject nullable
user_contextobject nullable
model'openai' | 'anthropic'
cluster_modelstring nullable
summary_modelstring nullable
is_scheduledboolean
validate_model_secretsboolean

Response

Successful Response

idstring uuid required
namestring required
statusstring required
errorstring nullable

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

    • info

      added the new optional request property