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.post11.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.post11-py3-none-any.whl (53.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: usf_agents-1.0.0.post11.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.post11.tar.gz
Algorithm Hash digest
SHA256 3c4bc511fc42648a305e6c9a99c46cd6861d0b0a3c93454d4b0def0dd6ca601a
MD5 8186b3c5a12bb2c598076d202f3345da
BLAKE2b-256 f8adb038c8f32eb03a891ffc89c193dc7274f1301689bc9cf008dc091ae13667

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for usf_agents-1.0.0.post11-py3-none-any.whl
Algorithm Hash digest
SHA256 4ad438e10912b71316e1d9a0d08875d0fa609fbd6c191a356c01859ba9b65b7d
MD5 9792fd085969bd591a7463268ad21f6a
BLAKE2b-256 09d7a3a68e9a3b4c304ff8e74d06978b52a8292165f73b37ffe9e1303c3b1eea

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