pull/546/head
Kye Gomez 6 months ago
parent 2f47623f5d
commit 0e7dc3557a

@ -10,7 +10,7 @@ agent = Agent(
agent_name="Financial-Analysis-Agent", agent_name="Financial-Analysis-Agent",
system_prompt=FINANCIAL_AGENT_SYS_PROMPT, system_prompt=FINANCIAL_AGENT_SYS_PROMPT,
llm=model, llm=model,
max_loops=1, max_loops=2,
autosave=True, autosave=True,
# dynamic_temperature_enabled=True, # dynamic_temperature_enabled=True,
dashboard=False, dashboard=False,

@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry] [tool.poetry]
name = "swarms" name = "swarms"
version = "5.4.3" version = "5.4.4"
description = "Swarms - Pytorch" description = "Swarms - Pytorch"
license = "MIT" license = "MIT"
authors = ["Kye Gomez <kye@apac.ai>"] authors = ["Kye Gomez <kye@apac.ai>"]

@ -357,7 +357,7 @@ class Agent(BaseStructure):
self.top_k = top_k self.top_k = top_k
self.frequency_penalty = frequency_penalty self.frequency_penalty = frequency_penalty
self.presence_penalty = presence_penalty self.presence_penalty = presence_penalty
self.temperature self.temperature = temperature
# Name # Name
self.name = agent_name self.name = agent_name
@ -808,7 +808,7 @@ class Agent(BaseStructure):
content=evaluated_response, content=evaluated_response,
) )
all_responses.append(evaluated_response) # all_responses.append(evaluated_response)
# Sentiment analysis # Sentiment analysis
if self.sentiment_analyzer: if self.sentiment_analyzer:
@ -886,8 +886,11 @@ class Agent(BaseStructure):
if self.agent_ops_on is True: if self.agent_ops_on is True:
self.check_end_session_agentops() self.check_end_session_agentops()
# final_response = " ".join(all_responses)
all_responses = [response for response in all_responses if response is not None]
final_response = " ".join(all_responses) final_response = " ".join(all_responses)
if self.return_history: if self.return_history:
return self.short_memory.return_history_as_string() return self.short_memory.return_history_as_string()
else: else:

Loading…
Cancel
Save