Sessions

Generate session insights

Generates (or regenerates) the insight for a session and returns it. The session must have finished.

<sub>Scope: run</sub>

post/v3/organizations/{orgId}/sessions/{sessionId}/insights/generate

Request

  • Base URL: https://api.reasonmachines.com
  • URL: https://api.reasonmachines.com/v3/organizations/{orgId}/sessions/{sessionId}/insights/generate
  • Auth: HTTP bearer

Response

The generated insight.

session_idstring
status'generated' | 'not_generated'
summarystring

A short natural-language summary of what the session did.

categorystring

The inferred category of the work, e.g. bug_fix or feature.

outcomestring

The outcome of the session, e.g. pr_opened.

message_countinteger

Number of messages exchanged during the session.

size'small' | 'medium' | 'large'

Relative size of the change.

initial_user_messagestring nullable

The first instruction that started the session.

pr_urlstring nullable
cost_usdnumber nullable
input_tokensinteger nullable
output_tokensinteger nullable
generated_atstring date-time nullable

Changes

No recorded changes to this operation across all 1 revision of this API.