From 021c66c3c5649d7441a046a6f9cd5a48fe2943e1 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 7 Feb 2024 20:04:46 +0700 Subject: [PATCH] update --- src/interface.jl | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index b158ba5..b69b2a7 100755 --- a/src/interface.jl +++ b/src/interface.jl @@ -454,15 +454,17 @@ function selfAwareness(a::agentReflex) The user wants to buy an electric SUV car under 20000 dollars. - {\"car type\": null, \"color\": null, \"financing\": null} + {\"car type\": null, \"engine type\": null, \"price\": null, \"color\": null, \"financing\": null} <|assistant|> Info extraction: - The user is buying an electric SUV car. + - price is under 20000 dollars Info mapping: - - SUV could matches "car type" key - - electric could matches "engine type" key - Info matching: {"car type": "SUV", "engine type": "electric motor", "color": null, "financing": null} + - "SUV" could matches "car type" key + - "electric" could matches "engine type" key + - "under 20000 dollars" could match "price" key + Info matching: {\"car type\": \"SUV\", \"engine type\": \"electric motor\", \"price\": \"under 20000\", \"color\": null, \"financing\": null} @@ -473,7 +475,7 @@ function selfAwareness(a::agentReflex) $(JSON3.write(a.memory[:keyword])) <|assistant|> - Info extraction: + Info extraction: """ response = sendReceivePrompt(a, prompt, max_tokens=1024, temperature=0.2, timeout=180, stopword=["/n/n", "END", "End", "Obs", "<|", " @@ -848,7 +859,7 @@ function actor_mistral_openorca(a::agentReflex, selfaware=nothing) - No info on the car color yet - No info on the financing method yet - Luxury level is high - {\"car type\": "SUV",\"brand\":\"Lexus\",\"price\":\"20k dollar\",\"color\": null,\"financing method\": null, \"luxury level\":\"high\"} + {\"car type\": "SUV",\"brand\":\"Lexus\",\"price\":\"200000\",\"color\": null,\"financing method\": null, \"luxury level\":\"high\"} """ prompt = @@ -864,9 +875,9 @@ function actor_mistral_openorca(a::agentReflex, selfaware=nothing) Use the following format: - Thought: considering what you know about the user thoroughly then you should think about what to do next according to your plan while prioritize what you don't know (null means don't know) first. (PS. 1. let's think a single step. 2. pay attention to correct numeral calculation and commonsense.) + Thought: considering what you know about the user thoroughly then you should think about what to do next according to your plan while prioritize what you don't know (null means don't know) first. (PS. 1. let's think only one thing at a time. 2. pay attention to correct numeral calculation and commonsense.) Act: based on your thought what action to choose?, must be one of [{toolnames}]. - Actinput: your input to the action (pay attention to the tool's input) + Actinput: your input to the action using JSON format (pay attention to the tool's input) Obs: observed result of the action @@ -893,7 +904,7 @@ function actor_mistral_openorca(a::agentReflex, selfaware=nothing) $(a.memory[:shortterm]["Plan 1:"]) - $(readKeywordMemory(a)) + $keywordmemory) <|assistant|> Thought: