From c71cdbe0c3ef83d9168022c661ec2f51cde75fe0 Mon Sep 17 00:00:00 2001 From: moe-mizrak Date: Fri, 28 Jun 2024 22:57:26 +0300 Subject: [PATCH] callFunction is added into the section Using PromptAlchemistRequest Class --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a8fc111..43acaba 100644 --- a/README.md +++ b/README.md @@ -1272,11 +1272,14 @@ $this->promptAlchemistRequest->generateInstructions(); // Prepare prompt function payload request. $this->promptAlchemistRequest->preparePromptFunctionPayload($prompt); +// Forms LLM returned function into the FunctionData. +$this->promptAlchemistRequest->formLlmReturnedFunctionData($llmReturnedFunction); + // Validate function signature returned by the LLM request. $this->promptAlchemistRequest->validateFunctionSignature($llmReturnedFunctionData); // $isValid is bool or ErrorData -// Forms LLM returned function into the FunctionData -$this->promptAlchemistRequest->formLlmReturnedFunctionData($llmReturnedFunction); +// Make an actual function call. +$this->promptAlchemistRequest->callFunction($llmReturnedFunctionData); // Prepare function results payload request. $this->promptAlchemistRequest->prepareFunctionResultsPayload($prompt, $functionResults);