Agents - Document - Writer / Reviewer
Description
This task creates a temporary document and simulates two agents that write on the document. Agent A reviews a document that is stored in memory. Agent B creates or improves the document based on the review and last document.
You start by setting the Overwrite document
variable to TODO: Write document here
. This creates a document named by the "Session storage" variable, that is edited. This is only done in the first execution.
The Reviewer Agent reviews the current document regarding the goal. The Writer Agent uses the current document and the review by the Reviewer agent to improve the document. After every execution the document gets improved. You can create a PDF if specified in the 'Agent task - writer' variable that a latex document should be created.
Applications
The task simulates a collaborative document review and writing process between two agents, enabling iterative improvement of the document.
How to use it
-
Set "Overwrite document" variable to "TODO: Write document here" (first execution only).
-
The Reviewer Agent reviews the document with a specific goal in mind.
-
The Writer Agent uses the review and previous document to improve the content.
-
Repeat the process for iterative document refinement.
-
Optionally, create a PDF using LaTeX if specified in the 'Agent task - writer' variable.
Version | AI Model | Created | Link |
---|---|---|---|
1.0.0 | 21.06.2023 |
API
The REST API allows you to call the tool with the same costs as when running the tool. Please generate an Personal access token before using the REST API.Parameters
- duration_h (Document lifetime (h)): How many hours the document is stored. (less = cheaper)
- session (Document name): Defines in which session the data is stored. you can think of it as a temporary file name.
- role_a (Agent role name - writer): The role name of the first agent that work on the document.
- role_b (Agent role name - reviewer): The role name of the second agent that reviews the document.
- role_b_task (Agent task - reviewer): The task of the reviewer agent.
- role_a_task (Agent task - writer): The task of the worker agent.
- Call the REST API by cURL
- Install the package with pip
- Run in python3
- Coming soon: Within AnySolve ChatComplete prompts you can use the following command to execute the task: