mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-21 17:48:05 +01:00
Implemented function calling for user stories
This commit is contained in:
33
euclid/const/function_calls.py
Normal file
33
euclid/const/function_calls.py
Normal file
@@ -0,0 +1,33 @@
|
||||
from utils.llm import parse_llm_output
|
||||
|
||||
def process_user_stories(stories):
|
||||
return stories
|
||||
|
||||
def return_array_from_prompt(values_in_list):
|
||||
return {
|
||||
'name': 'process_user_stories',
|
||||
'description': f"Print the list of user stories that are created.",
|
||||
'parameters': {
|
||||
'type': 'object',
|
||||
"properties": {
|
||||
"stories": {
|
||||
"type": "array",
|
||||
"description": f"List of user stories that are created in a list.",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"description": "User story"
|
||||
},
|
||||
},
|
||||
},
|
||||
"required": ["stories"],
|
||||
},
|
||||
}
|
||||
|
||||
USER_STORIES = {
|
||||
'definitions': [
|
||||
return_array_from_prompt('user stories')
|
||||
],
|
||||
'functions': {
|
||||
'process_user_stories': process_user_stories
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user