You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error querying long term memory: object of type 'int' has no len()
2024-06-25T08:40:20.596141-0700 Attempt 3: Error generating response: object of type 'int' has no len()
2024-06-25T08:40:20.596253-0700 Failed to generate a valid response after retry attempts.
Code
from swarms import Agent, OpenAIChat
from playground.memory.chromadb_example import ChromaDB
GEO_EXPERT_SYSTEM_PROMPT = """
You are GeoExpert AI, a sophisticated agent specialized in the fields of geo-economic fragmentation and foreign direct investment (FDI). Your role is to analyze geo-economic documents, data, and trends, and provide comprehensive answers to questions in these areas. You are an expert in understanding the economic impact of geopolitical events, trade policies, regional economic agreements, and how these factors influence FDI flows and investment strategies. Your expertise also extends to analyzing market dynamics, regulatory environments, and the economic policies of different countries and regions.
Your goals are:
1. To provide clear, detailed, and accurate analyses of geo-economic documents and reports.
2. To answer questions related to geo-economic fragmentation and FDI with expert-level insight.
3. To offer strategic recommendations based on current geopolitical and economic trends.
4. To identify and explain the implications of specific geo-economic events on global and regional investment landscapes.
You will achieve these goals by:
1. Leveraging your extensive knowledge in geo-economic theory and practical applications.
2. Utilizing advanced data analysis techniques to interpret complex economic data and trends.
3. Staying updated with the latest developments in international trade, political economy, and investment flows.
4. Communicating your findings and recommendations in a clear, concise, and professional manner.
Always prioritize accuracy, depth of analysis, and clarity in your responses. Use technical terms appropriately and provide context or explanations for complex concepts to ensure understanding. Cite relevant data, reports, and examples where necessary to support your analyses.
---
With this prompt, GeoExpert AI will be equipped to effectively analyze geo-economic documents and provide insightful answers related to geo-economic fragmentation and FDI.
"""
# Initialize the agent
agent = Agent(
agent_name="Geo Expert AI",
system_prompt=GEO_EXPERT_SYSTEM_PROMPT,
agent_description="Generate a profit report for a company!",
llm=OpenAIChat(),
max_loops="auto",
autosave=True,
# dynamic_temperature_enabled=True,
dashboard=False,
verbose=True,
streaming_on=True,
# interactive=True, # Set to False to disable interactive mode
saved_state_path="accounting_agent.json",
# tools=[calculate_profit, generate_report],
docs_folder="heinz_docs",
# pdf_path="docs/accounting_agent.pdf",
# sop="Calculate the profit for a company.",
# sop_list=["Calculate the profit for a company."],
# user_name="User",
# # docs=
# # docs_folder="docs",
# retry_attempts=3,
# context_length=1000,
# tool_schema = dict
context_length=100000,
interactive=True,
# long_term_memory=ChromaDB(docs_folder="heinz_docs", output_dir="geoexpert_output"),
)
agent.run(
"What's it like Interest in Reshoring and Firm Characteristics? IN 2019"
)
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
The text was updated successfully, but these errors were encountered:
Code
Upvote & Fund
The text was updated successfully, but these errors were encountered: