8000 GitHub - Dradebo/agent
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Dradebo/agent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agent Project - SimpleDSPy Agent

This project features a DSPy-based agent that can run commands and interact with users. It uses OpenRouter models for processing requests.

Setup

  1. Ensure you are in the project root directory: /home/tom/git/agent/

  2. Create and activate a Python virtual environment (if you haven't already for this project):

    python3.11 -m venv .venv
    source .venv/bin/activate
  3. Install or update dependencies: If requirements.txt is new or you've just created it:

    uv pip install -r requirements.txt

    If you are adding to an existing requirements.txt, ensure the new packages are installed.

  4. Set up OpenRouter API key:

    • Create a free account at OpenRouter
    • Add your API key to environment variables:
      echo "export OPENROUTER_API_KEY='your_api_key'" >> ~/.bashrc
      source ~/.bashrc
  5. Run the SimpleDSPy agent:

    python agent_simpledspy.py

Training Data Management

The agent's performance depends on quality training data stored in .simpledspy/modules/. To improve results:

  1. Review logged interactions:

    less .simpledspy/modules/*/logged.jsonl
  2. Add good samples to training data: Copy well-performing examples from logged.jsonl to corresponding training.jsonl files

  3. Correct problematic samples: Edit training.jsonl to fix incorrect responses

  4. Add new training examples: Create new entries in training.jsonl for desired behaviors

Development

  • The main agent script is agent_simpledspy.py
  • Training data is stored in .simpledspy/modules/
  • Use --lm flag to switch models: flash, r1, or dv3
    python agent_simpledspy.py --lm r1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0