Shrink Result
WARNING: This endpoint is not officially supported, and is subject to be changed or removed at any time.
Shrinks the given result payload to git into a specified token budget.
This tries its best to keep around more important values and truncate less important ones.
The intent of this endpoint is that after executing an AI Action, you can pass the result into this to get a smaller result that can be passed in to LLMs without hitting the token limit.
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Query Parameters
App to use when shrinking values. Providing an app, action, and action type will help with improving the accuracy of the shrinking.
Action to use when shrinking values. Must be provided if app
is provided.
Type of action to use when shrinking values. Must be provided if action
is provided.
A comma-separate list of field names to keep around. Fields in this list will never be shrunken and will remain as-is in the response.
Maximum number of tokens to include in the response.
Body
{key: value}
that is returned from an underlying API call.
{key: field_label}
that is returned from an execution.