jvserve is a FastAPI-based web server designed for loading and interacting with JIVAS agents. It is built on top of jac-cloud and provides a robust platform for managing jivas agent jobs, handling webhooks, and executing actions within the JIVAS ecosystem.
To install jvserve, use pip:
pip install jvserveTo use jvserve, you can start the server with the following command:
jac jvserve <path_to_your_jac_file>For example:
jac jvserve main.jacYou can also start a file server to serve static files:
jac jvfileserve <directory>For example:
jac jvfileserve ./static- filename: Path to your JAC file.
- host: Host address to bind the server (default:
0.0.0.0). - port: Port number to bind the server (default:
8000). - loglevel: Logging level (default:
INFO). - workers: Number of worker processes (optional).
Example with all arguments:
jac jvserve main.jac --host 127.0.0.1 --port 8080 --loglevel DEBUG --workers 4- Interact with Agent:
/interact(POST) - Execute Webhook:
/webhook/{key}(GET, POST) - Execute Action Walker:
/action/walker(POST)
You can see all endpoints at the URL /docs.
- 🐛 Report Issues: Submit bugs found or log feature requests for the
jvserveproject. - 💡 Submit Pull Requests: Review open PRs, and submit your own PRs.
Contributing Guidelines
- Fork the Repository: Start by forking the project repository to your GitHub account.
- Clone Locally: Clone the forked repository to your local machine using a git client.
git clone https://github.com/TrueSelph/jvserve
- Create a New Branch: Always work on a new branch, giving it a descriptive name.
git checkout -b new-feature-x
- Make Your Changes: Develop and test your changes locally.
- Commit Your Changes: Commit with a clear message describing your updates.
git commit -m 'Implemented new feature x.' - Push to GitHub: Push the changes to your forked repository.
git push origin new-feature-x
- Submit a Pull Request: Create a PR against the original project repository. Clearly describe the changes and their motivations.
- Review: Once your PR is reviewed and approved, it will be merged into the main branch. Congratulations on your contribution!
This project is protected under the Apache License 2.0. See LICENSE for more information.
Since jvserve is a wrapper around jac-cloud, it supports all the primitives available in jac-cloud. You can find more information about jac-cloud primitives here.