From f66c8b6f2fa473be0aab27cc83eef29f4f2a6029 Mon Sep 17 00:00:00 2001 From: SwiftyOS Date: Thu, 21 Sep 2023 16:34:54 +0200 Subject: [PATCH] added prompt templates --- .../prompts/gpt-3.5-turbo/system-format.j2 | 47 +++++++++++++++++++ .../forge/prompts/gpt-3.5-turbo/task-step.j2 | 43 +++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 autogpts/forge/forge/prompts/gpt-3.5-turbo/system-format.j2 create mode 100644 autogpts/forge/forge/prompts/gpt-3.5-turbo/task-step.j2 diff --git a/autogpts/forge/forge/prompts/gpt-3.5-turbo/system-format.j2 b/autogpts/forge/forge/prompts/gpt-3.5-turbo/system-format.j2 new file mode 100644 index 00000000..51e14f77 --- /dev/null +++ b/autogpts/forge/forge/prompts/gpt-3.5-turbo/system-format.j2 @@ -0,0 +1,47 @@ +Reply only in json with the following format: + +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "properties": { + "thoughts": { + "type": "object", + "properties": { + "text": { + "type": "string", + "description": "thoughts" + }, + "reasoning": { + "type": "string" + }, + "plan": { + "type": "string", + "description": "- short bulleted\n- list that conveys\n- long-term plan" + }, + "criticism": { + "type": "string", + "description": "constructive self-criticism" + }, + "speak": { + "type": "string", + "description": "thoughts summary to say to user" + } + }, + "required": ["text", "reasoning", "plan", "criticism", "speak"], + "additionalProperties": false + }, + "command": { + "type": "object", + "properties": { + "name": {"type": "string"}, + "args": { + "type": "object" + } + }, + "required": ["name", "args"], + "additionalProperties": false + } + }, + "required": ["thoughts", "command"], + "additionalProperties": false +} diff --git a/autogpts/forge/forge/prompts/gpt-3.5-turbo/task-step.j2 b/autogpts/forge/forge/prompts/gpt-3.5-turbo/task-step.j2 new file mode 100644 index 00000000..ba42872f --- /dev/null +++ b/autogpts/forge/forge/prompts/gpt-3.5-turbo/task-step.j2 @@ -0,0 +1,43 @@ +{% extends "techniques/expert.j2" %} +{% block expert %}Planner{% endblock %} +{% block prompt %} +Your task is: + +{{ task }} + +Answer in the provided format. + +Your decisions must always be made independently without seeking user assistance. Play to your strengths as an LLM and +pursue simple strategies with no legal complications. + +{% if constraints %} +## Constraints +You operate within the following constraints: +{% for constraint in constraints %} +- {{ constraint }} +{% endfor %} +{% endif %} + +{% if resources %} +## Resources +You can leverage access to the following resources: +{% for resource in resources %} +- {{ resource }} +{% endfor %} +{% endif %} + +{% if abilities %} +## Abilities +You have access to the following abilities you can call: +{% for ability in abilities %} +- {{ ability }} +{% endfor %} +{% endif %} + +{% if best_practices %} +## Best practices +{% for best_practice in best_practices %} +- {{ best_practice }} +{% endfor %} +{% endif %} +{% endblock %} \ No newline at end of file