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)
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
Whether to summarize the session history prior to the cutoff message
Successful Response
The response is of type object
.
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)
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
Whether to summarize the session history prior to the cutoff message
Successful Response
The response is of type object
.