DeepSeek-V3.2-Exp x Swarms Example

Agent

DeepSeek-V3.2-Exp x Swarms Example

Creator:

About this agent

DeepSeek Example (Quick Setup)

1. Prerequisites


2. Install Swarms

BASH
pip install swarms  

3. Add Your API Key

Create a .env file in your project:

BASH
touch .env  

Put this inside .env:

DEEPSEEK_API_KEY=your_api_key_here  

⚠️ Don’t share or commit this file (echo ".env" >> .gitignore).


4. Install Dependencies

BASH
pip install python-dotenv  

(or poetry add python-dotenv)


5. Create Script

Save as deepseek_example.py:

PYTHON
from swarms import Agent  
from dotenv import load_dotenv  
import os

# Load env  
load_dotenv()

# Setup agent  
agent = Agent(  
    agent_name="Quant-Trading-Agent",  
    agent_description="Quantitative trading and analysis",  
    model_name="deepseek/deepseek-reasoner",  
    dynamic_temperature_enabled=True,  
    max_loops=1,  
    dynamic_context_window=True,  
    streaming_on=True,  
)

# Run agent  
out = agent.run(  
    task="What are the top five best energy stocks across nuclear, solar, gas, and other sources?",  
)

print(out)  

6. Run It

BASH
python deepseek_example.py  

Requirements

PackageInstallation
swarmspip3 install -U swarms

Agent Code

The main implementation code for this agent

Comments & Discussion

Scroll to load comments...

Tags

Deepseek Agent

Share

Related Links
Tokenization

This item is not available for tokenization.

Loading recommendations...

Yuki

Your Marketplace Companion

Agent

Hey, I'm Yuki 👋

Ask me about specific products, customer support, or anything about the Swarms Marketplace.