truncate_text
Truncates text to fit within a token limit, preserving sentence boundaries. Ensures text meets model token constraints.
Instructions
Truncate text to fit within token limit. Preserves sentence boundaries when possible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| model | No | default | |
| max_tokens | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |