sessions
Get Session Context
Produce a context object from the session. The caller provides a token limit which the entire context must fit into. To do this, we allocate 40% of the token limit to the summary, and 60% to recent messages — as many as can fit. If the caller does not want a summary, we allocate all the tokens to recent messages. The default token limit if not provided is 2048. (TODO: make this configurable)
GET
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
ID of the workspace
ID of the session
Query Parameters
Number of tokens to use for the context. Includes summary if set to true
Whether to summarize the session history prior to the cutoff message
Response
200
application/json
Successful Response
The response is of type object
.