Implemented getting development plan + outline for AgentConvo class

This commit is contained in:
Zvonimir Sabljic
2023-07-31 10:01:20 +02:00
parent 05b59c7d7c
commit b5a5297ec5
4 changed files with 62 additions and 7 deletions

View File

@@ -73,4 +73,43 @@ COMMANDS_TO_RUN = {
'functions': {
'process_commands': run_commands
},
}
DEVELOPMENT_PLAN = {
'definitions': [{
'name': 'implement_development_plan',
'description': 'Implements the development plan.',
'parameters': {
'type': 'object',
"properties": {
"plan": {
"type": "array",
"description": 'List of development tasks that need to be done to implement the entire plan.',
"items": {
"type": "object",
'description': 'Development task that needs to be done to implement the entire plan.',
'properties': {
'task_description': {
'type': 'string',
'description': 'Description of the development task that needs to be done to implement the entire plan.',
},
'programmatic_goal': {
'type': 'string',
'description': 'programmatic goal that will determine if a task can be marked as done from a programmatic perspective (this will result in an automated test that is run before the task is sent to you for a review)',
},
'user_review_goal': {
'type': 'string',
'description': 'user-review goal that will determine if a task is done or not but from a user perspective since it will be reviewed by a human',
}
},
'required': ['command', 'timeout'],
},
},
},
"required": ['plan'],
},
}],
'functions': {
'implement_development_plan': lambda plan: (plan, None)
},
}