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

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

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

@ -357,7 +357,7 @@ class Agent(BaseStructure):
self.top_k = top_k
self.frequency_penalty = frequency_penalty
self.presence_penalty = presence_penalty
self.temperature
self.temperature = temperature
# Name
self.name = agent_name
@ -808,7 +808,7 @@ class Agent(BaseStructure):
content=evaluated_response,
)
all_responses.append(evaluated_response)
# all_responses.append(evaluated_response)
# Sentiment analysis
if self.sentiment_analyzer:
@ -886,8 +886,11 @@ class Agent(BaseStructure):
if self.agent_ops_on is True:
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)
if self.return_history:
return self.short_memory.return_history_as_string()
else:

Loading…
Cancel
Save