Metadata-Version: 2.3
Name: just-agents-web
Version: 0.6.0
Summary: Just Agents - Web. It allows runing openai API for the agent in the browser.
License: MIT
Keywords: python,llm,web,agents,AI
Author: Alex Karmazin
Author-email: karmazinalex@gmail.com
Maintainer: Anton Kulaga
Maintainer-email: antonkulaga@gmail.com
Requires-Python: >=3.10,<3.15
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: fastapi (>=0.115.6)
Requires-Dist: just-agents-core
Requires-Dist: pycomfort (>=0.0.17)
Requires-Dist: uvicorn (>=0.34.0)
Description-Content-Type: text/markdown

# 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

```bash
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:

```bash
run-agent path/to/agent.yaml
```

You can also do it with few lines of python code:
```python
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.
