Document - ChatComplete

This task creates a temporary document and allows ChatComplete to work on the document.

Input

Description

This task creates a temporary document and allows ChatComplete to work on the document. You can create a PDF if specified in the 'Writer task' variable that a latex document should be created.

Applications

Content Generation: Use this task to collaboratively generate and refine content, such as articles, reports, or creative writing.

Research and Writing: Use the task to assist in research, writing, and document preparation for various projects.

How to use the task

  1. Initiate the task to create a temporary document that ChatComplete can work on.

  2. Choose the Document Lifetime (in hours) to specify how long the document will be accessible for collaboration. Provide a unique Document name for easy identification.

  3. Specify the Writer role and task to guide ChatComplete's contributions to the document.

  4. Use Plugin Tasks to enhance the document with additional research, data, or references.

  5. Generate an optional PDF with LaTeX formatting from the document by specifying it in the 'Writer task' variable.

  6. Allow ChatComplete to work together on the document, contributing to its content and refinement.

[1.0.0]:
First version
VersionAI ModelCreatedLink
1.0.023.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 (Writer role): The role of the writer.
  • task (Writer task): The task of the worker agent.
  • plugin_tasks (Plugin tasks): List tasks that are shown to GPT for execution.
  • Call the REST API by cURL
    curl -v -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN" https://api.anysolve.ai/rest/v1/u-ba835df8268fc301-document--chatcomplete/1.0.0?duration_h=3&session=3a17d503-9948-40fa-96be-a8e13bc7e6e4&role=Senior%20Text%20Writer&task=Write%20a%20paper%20about%20whether%20to%20allow%20a%20wolve%20population%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20in%20Germany.&plugin_tasks=
  • Install the package with pip
    python3 -m pip install anysolve
  • Run in python3
    import os
    from anysolve import AnySolve
    anysolve_token = os.environ.get('ANYSOLVE_PERSONAL_ACCESS_TOKEN') # Resolve your personal access token here
    client = AnySolve(anysolve_token)
    res = client.run('u-ba835df8268fc301-document--chatcomplete','1.0.0', {'duration_h': '3', 'session': '3a17d503-9948-40fa-96be-a8e13bc7e6e4', 'role': 'Senior Text Writer', 'task': 'Write a paper about whether to allow a wolve population in Germany.', 'plugin_tasks': ''})
    print(res)
  • Coming soon: Within AnySolve ChatComplete prompts you can use the following command to execute the task:
    /run('u-ba835df8268fc301-document--chatcomplete','1.0.0', duration_h='3', session='3a17d503-9948-40fa-96be-a8e13bc7e6e4', role='Senior Text Writer', task='Write a paper about whether to allow a wolve population in Germany.', plugin_tasks='')