Skip to main content

A lightweight multi-agent orchestration framework with better control, easy to use for complex to simple use cases. Developer friendly with more visibility and supports all models with OpenAI compatible API.

Project description

USF Agents — Simplify the Complex, Amplify the Intelligent for Enterprise

Orchestrate multiple agents with ease: register agents, integrate tools, define custom instructions, and leverage multiple models.
Enterprise-grade and production-ready, with full control, deep customization, strong defaults, clear boundaries, and developer-focused APIs.


USF Agents

This is the official documentation for the USF Agents Python SDK.

📖 Docs: Quickstart | Installation | Configuration | Troubleshooting / FAQ


Installation & Requirements

Requirements

  • Python 3.9+
  • USF API key (set as an environment variable)

Install the SDK

pip install usf-agents

Other package managers:

# uv
uv add usf-agents

# poetry
poetry add usf-agents

# pdm
pdm add usf-agents

Set Your API Key

# macOS/Linux
export USF_API_KEY=YOUR_KEY

# Windows PowerShell
$env:USF_API_KEY="YOUR_KEY"

# Windows CMD
set USF_API_KEY=YOUR_KEY

(Optional) Virtual Environment

python -m venv .venv

# macOS/Linux
source .venv/bin/activate

# Windows PowerShell
.venv\Scripts\Activate.ps1

Verify Installation

pip show usf-agents

Minimal import check:

python - <<'PY'
try:
    import usf_agents
    print("usf_agents import: OK")
except Exception as e:
    print("Import failed:", e)
PY

Quick Sanity Run

Requires your USF_API_KEY to be set.

# sanity.py
import os
import asyncio
import nest_asyncio
from usf_agents import ManagerAgent

nest_asyncio.apply()

async def main():
    mgr = ManagerAgent(
        usf_config={
            "api_key": os.getenv("USF_API_KEY"),
            "model": "usf-mini"
        }
    )
    result = await mgr.run("Say 'hello world'", {"mode": "auto"})
    if result.get("status") == "final":
        print("Final:", result.get("content"))
    else:
        print("Pending tool calls:", result.get("tool_calls"))

if __name__ == "__main__":
    asyncio.run(main())

Run it:

python sanity.py

Documentation

Getting Started

Tools

Multi-Agent

Jupyter Notebook Guides

FastAPI Apps


License

See LICENSE.

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

usf_agents-1.0.0.post10.tar.gz (58.2 kB view details)

Uploaded Source

Built Distribution

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

usf_agents-1.0.0.post10-py3-none-any.whl (53.1 kB view details)

Uploaded Python 3

File details

Details for the file usf_agents-1.0.0.post10.tar.gz.

File metadata

  • Download URL: usf_agents-1.0.0.post10.tar.gz
  • Upload date:
  • Size: 58.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for usf_agents-1.0.0.post10.tar.gz
Algorithm Hash digest
SHA256 37b707f97d3a64194e53564b38ab260439d51834856fb48059421bdf3b84095c
MD5 54dcd1d299d991104804ccd7d16dbaae
BLAKE2b-256 6641e7a1c75adeccdbce8c4bc590a3e8cc04f294ce6e92c5eb56e72e3cb9e494

See more details on using hashes here.

File details

Details for the file usf_agents-1.0.0.post10-py3-none-any.whl.

File metadata

File hashes

Hashes for usf_agents-1.0.0.post10-py3-none-any.whl
Algorithm Hash digest
SHA256 33368261cd11a69735f837651fa86a45feb9738650f52caf3d138bae14bdb845
MD5 4bd839b6c51b5fe80e67fecd8859b759
BLAKE2b-256 ced07baf610173abfaa0303890c5697e584629df830aa614ae8ddcff297c11b2

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