mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-27 10:54:35 +01:00
* Correct and clean up JSON handling * Use ast for message history too * Lint * Add comments explaining why we use literal_eval * Add descriptions to llm_response_format schema * Parse responses in code blocks * Be more careful when parsing in code blocks * Lint
46 lines
1.4 KiB
JSON
46 lines
1.4 KiB
JSON
{
|
|
"$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
|
|
}
|