Canvas
Allow your agent to perform high-quality text operations.
Overview
Agents working on text-based tasks are highly prone to rewriting the text unnecessarily, editing parts that shouldn’t be modified, and introducing errors. This creates a process where developers must manually make adjustments and continuously implement checkpoints, especially when handling text-based use cases.
Within the Upsonic framework, we have a Canvas feature specifically designed to address this issue and provide a direct solution. This feature includes specialized and sensitive functions tailored for creating and editing a text canvas.
Creating an Canvas
A Canvas is created with a specific name and can be assigned to a Task or class as a tool. This enables Agents or Direct operations to easily perform text edits.
Putting Canvas to Agent
You can add them directly as elements within the canvas
parameter of a Agent, configuring your task to utilize this Canvas.
Running the canvas
Once your tasks are executed by the agent, the canvas retains all modifications in a consistent state. This enables you to query or display the final version of the text after all edits have been applied. By decoupling text state from the agent logic, you gain better control over the output, making it easier to debug, review, or pass the final content into downstream systems like editors, emails, or publishing pipelines.