Add confirmation function and re-execution logic in AIProcessor; clean up web server request handling

This commit is contained in:
2025-05-19 09:30:58 +02:00
parent f7feb12946
commit e573ecb553
3 changed files with 32 additions and 2 deletions

View File

@@ -92,6 +92,23 @@ FUNCTIONS = [
"required": ["nextsteps"],
}
}
},
{
"type": "function",
"function": {
"name": "confirm",
"description": "Confirm that the task is completed and no further actions are needed. ONLY execute this when no other functions/actions are needed. This can be the only function called.",
"parameters": {
"type": "object",
"properties": {
"goal": {
"type": "string",
"description": "The goal to achieve/that was achieved."
}
},
"required": ["goal"],
}
}
}
]