diff --git a/shopper/agent/agent.py b/shopper/agent/agent.py index 2469cae..3a37074 100644 --- a/shopper/agent/agent.py +++ b/shopper/agent/agent.py @@ -42,7 +42,7 @@ def process_products(self, products): def run(self): chat_history = self.nearai_agent_client.list_messages() last_user_query = self.get_last_search_term(chat_history) - print(f"!!! last_user_query:", last_user_query) + self.nearai_agent_client.add_reply(f"Searching for your personalized results...") if Agent.is_order(last_user_query): result = self.process_order(last_user_query) if result: @@ -81,6 +81,7 @@ def run_shopping(self, last_search_term): model=MODEL, agent_role_name="assistant", add_responses_to_messages=False) + self.nearai_agent_client.add_reply(f"Found results, building shopping page...") # Format the LLM response chat_message = llm_response.split("<")[0].replace("Shopping Assistant:", "").strip() diff --git a/shopper/agent/metadata.json b/shopper/agent/metadata.json index dc96e1b..3ff1ec6 100644 --- a/shopper/agent/metadata.json +++ b/shopper/agent/metadata.json @@ -10,6 +10,7 @@ ], "details": { "display_name": "NearShoppin", + "icon": "https://upload.wikimedia.org/wikipedia/commons/thumb/e/e5/Shopping-basket.svg/270px-Shopping-basket.svg.png", "agent": { "welcome": { "title": "NearShoppin, your Personal Shopping assistant.", @@ -18,10 +19,10 @@ "//initial_user_message": "init", "defaults": { "max_iterations": 1, - "model": "qwen2p5-72b-instruct", + "model": "llama-v3p2-3b-instruct", "model_provider": "fireworks", "model_temperature": 0.0, - "model_max_tokens": 20000 + "model_max_tokens": 500 } } }, diff --git a/shopper/agent/template.html b/shopper/agent/template.html index 56ad9e6..1c7bc85 100644 --- a/shopper/agent/template.html +++ b/shopper/agent/template.html @@ -154,8 +154,8 @@