Merge branch 'command_registry' of https://github.com/kreneskyp/Auto-GPT into plugin-support

This commit is contained in:
BillSchumacher
2023-04-16 15:25:21 -05:00
18 changed files with 439 additions and 5 deletions

View File

@@ -2,9 +2,11 @@ from __future__ import annotations
import json
from autogpt.commands import command
from autogpt.llm_utils import call_ai_function
@command("improve_code", "Get Improved Code", '"suggestions": "<list_of_suggestions>", "code": "<full_code_string>"')
def improve_code(suggestions: list[str], code: str) -> str:
"""
A function that takes in code and suggestions and returns a response from create