Get Started
Agent with Tools and Memory
An LLM backed agent with long term memory and tool usage. Great for complex multi-step activities in the real-world like sales, marketing, and accounting.
python.py
from swarms import Agent, ChromaDB, OpenAIChat, tool
# Making an instance of the ChromaDB class
memory = ChromaDB(
metric="cosine",
n_results=3,
output_dir="results",
docs_folder="docs",
)
# Initialize a tool
@tool
def search_api(query: str):
# Add your logic here
return query
# Initializing the agent with the Gemini instance and other parameters
agent = Agent(
agent_name="Covid-19-Chat",
agent_description=(
"This agent provides information about COVID-19 symptoms."
),
llm=OpenAIChat(),
max_loops="auto",
autosave=True,
verbose=True,
long_term_memory=memory,
stopping_condition="finish",
tools=[search_api],
)
# Defining the task and image path
task = ("What are the symptoms of COVID-19?",)
# Running the agent with the specified task and image
out = agent.run(task)
print(out)
Swarm Platform
You Can Use and Test Our Models Easily
Pricing
Our Benefits
Our affordable pricing ensures accessibility for all customers without compromising on quality. We prioritize cost-effectiveness to cater to budget-conscious clients while maintaining high standards of service and performance.
With our expedited service, you can expect rapid delivery and efficient turnaround times. We understand the importance of timely solutions and strive to meet deadlines promptly, enabling you to achieve your goals without unnecessary delays.
Our commitment to reliability means you can trust us to consistently deliver exceptional results. We prioritize consistency and dependability in our services, ensuring that you can rely on us to meet your needs consistently and effectively.
Everything Is
Open Source
TGSC is radically focused on transparency and open source. We believe that the best way to build a better future is by working together.