Produce a context object from the session. The caller provides an optional token limit which the entire context must fit into. If not provided, the context will be exhaustive (within configured max tokens). To do this, we allocate 40% of the token limit to the summary, and 60% to recent messages — as many as can fit. Note that the summary will usually take up less space than this. If the caller does not want a summary, we allocate all the tokens to recent messages.
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
ID of the workspace
ID of the session
Number of tokens to use for the context. Includes summary if set to true. If not provided, the context will be exhaustive (within 100000 tokens)
x <= 100000
Whether or not to include a summary if one is available for the session
Successful Response
The response is of type object
.