Skip to main content

ff-sdk-py

Python client SDK for FireFoundry Agent Bundle services.

Use this SDK to invoke entity methods, run bots, and stream responses from FireFoundry Agent Bundle microservices deployed in your environment.

Installation

pip install ff-sdk

Quick Start

from ff_sdk import RemoteAgentBundleClient

client = RemoteAgentBundleClient(
    base_url="https://your-agent-bundle.example.com",
    api_key="your-api-key",
)

# Invoke an entity method
result = client.invoke_entity_method("entity-uuid", "generate_report", {"format": "pdf"})

# Run a bot
output = client.run_bot("SummaryBot", {"input": "Summarize this document"})

# Stream bot responses
iterator = client.start_bot("AnalysisBot", {"input": "Analyze trends"})
for update in iterator:
    print(update)

Async Usage

from ff_sdk import AsyncRemoteAgentBundleClient

async def main():
    async with AsyncRemoteAgentBundleClient(
        base_url="https://your-agent-bundle.example.com",
        api_key="your-api-key",
    ) as client:
        result = await client.invoke_entity_method("entity-uuid", "my_method", "arg1")

        # Stream with async for
        iterator = await client.start_iterator("entity-uuid", "process")
        async for item in iterator:
            print(item)
        await iterator.cleanup()

Entity Proxy

from ff_sdk import RemoteAgentBundleClient, EntityProxy

client = RemoteAgentBundleClient(base_url="...", api_key="...")
proxy = EntityProxy(entity_id="entity-uuid", client=client)

# Property access dispatches to invoke_entity_method
result = proxy.generate_report({"format": "pdf"})

Binary Data

# Upload a file
with open("document.pdf", "rb") as f:
    pdf_bytes = f.read()

result = client.invoke_entity_method_with_blobs(
    entity_id="entity-uuid",
    method_name="process_document",
    args=[{"$blob": 0}, {"title": "My Doc"}],
    files=[pdf_bytes],
)

# Download binary output efficiently (no base64 overhead)
pdf_output: bytes = client.invoke_entity_method_binary(
    "entity-uuid", "generate_large_pdf", {"pages": 1000}
)

Unified invoke Dispatcher

# JSON result (default)
result = client.invoke("entity-uuid", "process", args=[{"key": "val"}])

# Binary result
pdf = client.invoke("entity-uuid", "generate_pdf", response_type="binary")

# Streaming iterator
iterator = client.invoke("entity-uuid", "start", response_type="iterator")

Configuration

Parameter Type Default Description
base_url str required Base URL of the Agent Bundle service
api_key str | None None API key for authentication
timeout float 200.0 Request timeout in seconds
is_external bool False Use gateway auth mode (plain key, no Bearer prefix)

License

MIT

Metadata

Release files for ff-sdk 0.1.0

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

Source distribution (sdist)

Source distribution for ff-sdk 0.1.0
File Size Uploaded Provenance Actions
ff_sdk-0.1.0.tar.gz 7.9 kB With provenance Details for ff_sdk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ff-sdk 0.1.0
File Interpreter ABI Platform Actions
ff_sdk-0.1.0-py3-none-any.whl Python 3 none any Details for ff_sdk-0.1.0-py3-none-any.whl

Total release size: 18.9 kB

Release files / ff_sdk-0.1.0.tar.gz

Download URL ff_sdk-0.1.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3894693b3aba6f171d5f6b887bf413e8a9801fea556b001c58bc66f0992e59e6
BLAKE2b-256 checksum
How to use checksums
57b4d815af60febb7a0ec6e681da2c7bf29abbaf59f806e311b24a55eb874329
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 14, 2026.

Transparency log

Release files / ff_sdk-0.1.0-py3-none-any.whl

Download URL ff_sdk-0.1.0-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1f0f927f51f9a23234936794ca8dddfc7fd764e90351a623a37df36ca736acd
BLAKE2b-256 checksum
How to use checksums
0185ce60aa55988fda4030b06866d7092c8a6d5c78852acc749033ebc459d736
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 14, 2026.

Transparency log

Security for ff-sdk 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ff_sdk-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 14, 2026.

Transparency log

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.0 This release

2 release files Full 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