Skip to main content

FivcPlayground

An intelligent agent ecosystem for autonomous tool generation, task assessment, and dynamic agent orchestration.

🔄 Pluggable Backends: FivcPlayground supports Strands (default), Google ADK, and the optional real-time Pipecat backend. See Backend Selection Guide.

🎯 Overview

FivcPlayground provides a flexible multi-agent system that can:

  • Assess tasks intelligently to determine the best approach
  • Retrieve and use tools dynamically based on task requirements
  • Plan and execute complex workflows with specialized agents
  • Generate and optimize tools autonomously

🚀 Quickstart

Prerequisites

  • Python 3.10 or higher
  • API keys for LLM providers (OpenAI, Ollama, etc.)

Installation

# Install with uv (recommended)
make install        # runtime + dev dependencies

# Or minimal installation
make install-min    # runtime only

# Or with pip
pip install -e .

Configuration

  1. Copy the example environment file:
cp .env.example .env
  1. Configure your LLM provider settings in .env:
# OpenAI
OPENAI_API_KEY=your_key_here
OPENAI_BASE_URL=https://api.openai.com/v1

# Or Ollama
OLLAMA_BASE_URL=http://localhost:11434

Quick Start

# Run an agent from CLI
uv run fivcplayground run Generic --query "What is machine learning?"

# Show available commands
uv run fivcplayground --help

📁 Project Structure

src/fivcplayground/
├── agents/          # Agent creation and management
│   └── types/       # Agent retriever and creator types
├── backends/        # Backend implementations (strands, adk, pipecat)
│   ├── adk/         # Google ADK backend
│   ├── pipecat/     # Optional real-time/text pipeline backend
│   └── strands/     # Strands backend
├── embeddings/      # Vector database and embeddings
│   └── types/       # Embedding database types
├── models/          # LLM model factories and providers
│   └── types/       # Model types and implementations
│       ├── repositories/  # Model configuration repositories
│       └── base.py        # ModelConfig data model
├── schemas.py       # Pydantic data schemas
├── settings/        # Configuration management
├── tasks.py         # Task execution functions
├── tools/           # Tool management and retrieval
│   └── types/       # Tool retriever and config types
└── utils/           # Utility functions

configs/             # Configuration examples
examples/            # Usage examples
├── agents/          # Agent usage examples
└── tools/           # Tool usage examples
tests/               # Test suite
docs/                # Documentation

💻 Usage

Command Line Interface

# Show all available commands
fivcplayground --help

# Run an agent interactively
fivcplayground run Generic

# Run an agent with a specific query
fivcplayground run Generic --query "What is machine learning?"

# Run different agent types
fivcplayground run Companion --query "Tell me a joke"
fivcplayground run Consultant --query "How should I approach this task?"

# Select an installed optional backend
fivcplayground run Generic --backend adk --query "What is machine learning?"
fivcplayground run Generic --backend pipecat --query "What is machine learning?"

# Clean temporary files
fivcplayground clean

# Show system information
fivcplayground info

Available Agents

  • Generic - Standard agent for general task execution
  • Companion - Friendly chat agent for conversations
  • Consultant - Assesses tasks and recommends approaches
  • Planner - Creates execution plans and teams
  • Researcher - Analyzes patterns and workflows
  • Engineer - Develops and optimizes tools
  • Evaluator - Assesses performance and quality

Stream Agent Events

stream_async() is the primary execution path. It yields (event, run) pairs while the agent executes, and each run is an independent deep snapshot:

from fivcplayground.agents import AgentRunEvent

async for event, run in agent.stream_async(
    query="What is machine learning?",
    agent_run_repository=agent_run_repository,
    agent_run_session_id=session_id,
):
    if event is AgentRunEvent.STREAM:
        print(run.delta.text, end="", flush=True)
    elif event is AgentRunEvent.FINISH:
        print(f"\nfinished: {run.status}")

Events arrive as START, zero or more STREAM/TOOL/UPDATE events, and finally FINISH. Runtime failures are reported on the FINISH snapshot before the original exception is re-raised. Closing or cancelling the stream before completion persists a FAILED run. run_async() is a small reduction wrapper that consumes the stream and returns the final BaseModel or AgentRunContent; its optional event_callback observes the stream while reduction is in progress.

🧰 Available Tools

FivcPlayground includes built-in tools and supports MCP (Model Context Protocol) tools:

Built-in Tools:

  • calculator - Mathematical calculations
  • current_time - Current date and time
  • python_repl - Python code execution

MCP Tools: Configure MCP servers in configs/mcp.yaml to add additional tools dynamically.

📚 Documentation

For comprehensive documentation, see the docs/ directory:

🤝 Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

📄 License

MIT

Metadata

Release files for fivcplayground 0.1.46

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fivcplayground 0.1.46
File Size Uploaded Provenance Actions
fivcplayground-0.1.46.tar.gz 138.9 kB Without provenance Details for fivcplayground-0.1.46.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fivcplayground 0.1.46
File Interpreter ABI Platform Actions
fivcplayground-0.1.46-py3-none-any.whl Python 3 none any Details for fivcplayground-0.1.46-py3-none-any.whl

Total release size: 225.5 kB

Release files / fivcplayground-0.1.46.tar.gz

Download URL fivcplayground-0.1.46.tar.gz
Size 138.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1fe458b17eeb5d3eb4c7a050302e453ecca6ed52da5257e0b977fb9b5c7fbf3a
BLAKE2b-256 checksum
How to use checksums
40621eb977d6a9c363f1ba9e3ea725a99264221e67a588fb879b3778584ef91e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.10

Release files / fivcplayground-0.1.46-py3-none-any.whl

Download URL fivcplayground-0.1.46-py3-none-any.whl
Size 86.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd205b42de1c841f06d27e0253e19b4dd013d78bee04c95e6a4aeb6222d8df21
BLAKE2b-256 checksum
How to use checksums
43dfd185f32008f2a071bcaa3e73084815367bb5f8f0f45d1933e2888de3d469
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.10

Security for fivcplayground 0.1.46

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.46 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page