toon_optimize_prompt
Optimize prompts by converting data structures to TOON format for token efficiency, reducing LLM usage and costs while maintaining data integrity.
Instructions
Optimize a prompt containing data for token efficiency.
Detects data structures within the prompt and converts them to TOON format, adding instructions for the LLM to understand the format.
Returns the optimized prompt with estimated token savings.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The full prompt containing data to optimize |