Just Agents - Web. It allows runing openai API for the agent in the browser.
Project description
just-agents-web
A web API wrapper for just-agents that provides OpenAI-compatible endpoints. This package allows you to expose just-agents functionality through a REST API that follows OpenAI's API conventions, making it easy to integrate with existing applications that use OpenAI's API format.
Installation
pip install just-agents-web
Features
- 🔄 OpenAI-compatible REST API endpoints
- 🤖 Wrap any just-agents agent as an API service
- 🔌 Drop-in replacement for OpenAI API clients
- 🛠️ Built on just-agents-core
Dependencies
- just-agents-core
- FastAPI
- pydantic
Quick Start
The project subpublish run-agent script, so you can run any agent yaml by running:
run-agent path/to/agent.yaml
You can also do it with few lines of python code:
from just_agents.web.run_agent import run_agent_server
run_agent_server(Path("agent_profiles.yaml"))
We also provide AgentRestAPI class that you can extend and add your methods to agent endpoint.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file just_agents_web-0.5.7.tar.gz.
File metadata
- Download URL: just_agents_web-0.5.7.tar.gz
- Upload date:
- Size: 19.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.0 CPython/3.11.10 Linux/6.8.0-53-lowlatency
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b55e36e7547e59c2f3b96cee28ca543cf6b33ed79cb7704d766bd6ee230d7eb
|
|
| MD5 |
0a5401333ffabfddaf6c8bc975a13c25
|
|
| BLAKE2b-256 |
7a42a63612a70d39fb87f04dd8cdcad52b70ec04223bd2d63ef7858a31262760
|
File details
Details for the file just_agents_web-0.5.7-py3-none-any.whl.
File metadata
- Download URL: just_agents_web-0.5.7-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.0 CPython/3.11.10 Linux/6.8.0-53-lowlatency
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3942514fb64b351fe53ac0120a0c0e475b338db1698839f7cce3ef7d806cbab7
|
|
| MD5 |
ed37ba112c5d3f5d58d630c1be1b67e6
|
|
| BLAKE2b-256 |
7b1c0da0e7db77bdb60a5feaca2beaee63aaba20a519e5739f894d719496206e
|