Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

just_agents_web-0.8.5.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

just_agents_web-0.8.5-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

Details for the file just_agents_web-0.8.5.tar.gz.

File metadata

  • Download URL: just_agents_web-0.8.5.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.10.12 Linux/5.15.0-157-generic

File hashes

Hashes for just_agents_web-0.8.5.tar.gz
Algorithm Hash digest
SHA256 22c9d50e17fc02db1dca78fb329893fa6b9c81f6ff6e2262af94f021b9984b1b
MD5 aed39f526d8b3ef0915892355db2dbbe
BLAKE2b-256 27fa405905554e99f4ca473536803e5e650d4f297aa81e6c820f9fa371e397f7

See more details on using hashes here.

File details

Details for the file just_agents_web-0.8.5-py3-none-any.whl.

File metadata

  • Download URL: just_agents_web-0.8.5-py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.10.12 Linux/5.15.0-157-generic

File hashes

Hashes for just_agents_web-0.8.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e068a8a5266b12b37aa4a5a8fde6a5280d504c1166ac6a2bfd19067ffb66f2ad
MD5 3e8cb9ed190b0416699cdf9929ddb4d4
BLAKE2b-256 57eabb5e641a3b9cf8459949be57e9356470f227cb37a7195fef4bc24c01a0cc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page