From f855d3287df7372a389a111f64ca277b5c9356ec Mon Sep 17 00:00:00 2001 From: Martin Ficzel Date: Mon, 22 Jan 2024 12:59:47 +0100 Subject: [PATCH] TASK: Scribble fe api --- Classes/Controller/ChatController.php | 6 ++++++ Classes/Domain/AssistantRecord.php | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Classes/Controller/ChatController.php b/Classes/Controller/ChatController.php index fc8ae37..243ba11 100644 --- a/Classes/Controller/ChatController.php +++ b/Classes/Controller/ChatController.php @@ -10,13 +10,19 @@ class ChatController extends ActionController { public function startAction(string $assistantId): void { + // HTTP: POST + // Antwort: {threadId:string} } public function historyAction(string $threadId): void { + // HTTP: POST + // Antwort: {'messages' : [{bot: bool, 'message': string, ...}] } } public function postAction(string $threadId, string $message): void { + // HTTP: POST + // Antwort: {bot: bool, 'message': string, ...} } } diff --git a/Classes/Domain/AssistantRecord.php b/Classes/Domain/AssistantRecord.php index c15a343..7d7f642 100644 --- a/Classes/Domain/AssistantRecord.php +++ b/Classes/Domain/AssistantRecord.php @@ -10,7 +10,6 @@ #[Flow\Proxy(false)] final class AssistantRecord { - /** * @param string[] $selectedTools * @param string[] $selectedFiles