You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/test-server
Alexandre Henrique Afonso Campos 97520835eb
Add dummy api
12 months ago
..
.gitignore Add instructions for testing server 12 months ago
README.md Add dummy api 12 months ago
main.py Add dummy api 12 months ago
requirements.txt Add instructions for testing server 12 months ago

README.md

Test Server

This is the testing server for swarms. You can use this server to mock rest calls. You can replace any agent that has rest calls with this. Even if the agent has a client (SDK), in the end of the day it may expose a REST API for interaction.

Requirements

Get started

Make sure you are in the test-server folder.

  • Create a virtual environment
$ python -m venv venv

If you are using Windows, use c:\>python -m venv c:\path\to\myenv.

  • Active it
$ source venv/bin/activate

or C:\> <venv>\Scripts\activate.bat where <venv> is the same as c:\path\to\myenv.

  • Install dependencies
$ pip install -r requirements.txt
  • Run it
$ fastapi dev main.py

You can then access the documentation by going to http://localhost:8000/docs.