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.5.2.tar.gz (14.0 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.5.2-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: just_agents_web-0.5.2.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.11.10 Linux/6.8.0-52-lowlatency

File hashes

Hashes for just_agents_web-0.5.2.tar.gz
Algorithm Hash digest
SHA256 5eda18fc1f2378fc5f8b50ad0973e2f21d943380197806e413cced6878a678b7
MD5 ebef9abe4b861604147d09aa37939f32
BLAKE2b-256 41002a3f94a1d32a2fbf04e73eba374684c4230ab1de28f1eaca8c3385c5e5be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: just_agents_web-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.11.10 Linux/6.8.0-52-lowlatency

File hashes

Hashes for just_agents_web-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1bfd224a98ac26edab2f639d77017a3037c7de28c2ff2ee18fecf0f4820d51cb
MD5 56f6408651d85d95c307a4a2cf84a634
BLAKE2b-256 7c43b29839bfacbc49e1e02bb498d03c1e225dc7532d3678fa224b3f40d6e6a5

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