Skip to main content

Fabriq/Agentic Fabric Python SDK: high-level client, DX helpers, auth

Project description

Agentic Fabric SDK (Fabriq)

agentic-fabric-sdk provides a Python SDK for interacting with Fabriq/Agentic Fabric.

  • High-level client: af_sdk.FabriqClient
  • DX layer: af_sdk.dx (ToolFabric, AgentFabric, MCPServer, Agent, and tool)

Install

pip install agentic-fabric-sdk

Quickstart

from af_sdk.fabriq_client import FabriqClient

TOKEN = "..."  # Bearer JWT for the Fabriq Gateway
BASE = "http://localhost:8000"

async def main():
    async with FabriqClient(base_url=BASE, auth_token=TOKEN) as af:
        agents = await af.list_agents()
        print(agents)

DX orchestration:

from af_sdk.dx import ToolFabric, AgentFabric, Agent, tool

slack = ToolFabric(provider="slack", base_url="http://localhost:8000", access_token=TOKEN, tenant_id=TENANT)
agents = AgentFabric(base_url="http://localhost:8000", access_token=TOKEN, tenant_id=TENANT)

@tool
def echo(x: str) -> str:
    return x

bot = Agent(
    system_prompt="demo",
    tools=[echo],
    agents=agents.get_agents(["summarizer"]),
    base_url="http://localhost:8000",
    access_token=TOKEN,
    tenant_id=TENANT,
    provider_fabrics={"slack": slack},
)
print(bot.run("Summarize my Slack messages"))

License

Apache-2.0

TESTPYPI_TOKEN: pypi-AgENdGVzdC5weXBpLm9yZwIkYzIzNmI5MjItNTQ5Zi00YjNkLTllMjEtOWJmNTBlMDA1NjEyAAIqWzMsImUwZGJmNzc3LWU0NzYtNDRhNS1iOTZhLTdlZjE2NDk1ZjgzZSJdAAAGIPNFPlD5VRyqJpJyQgRbV6bZOosd9urxrQUoZvzA-IfJ

PYPI TOKEN: pypi-AgEIcHlwaS5vcmcCJDQwMWExOTY1LTBjOWItNDQzYy1hYzU0LTdkNDRhYTQwMzIyYgACKlszLCIzODNlNDFkZi1iZmRiLTQ0Y2YtYTNhNi02ZjdiNzJiODRhNDkiXQAABiBq0j8Vd5thP5FffyS1GCazZWFeg-7727t8zCtRlcTYJg

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

agentic_fabric_sdk-0.1.1.tar.gz (26.8 kB view details)

Uploaded Source

Built Distribution

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

agentic_fabric_sdk-0.1.1-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

Details for the file agentic_fabric_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: agentic_fabric_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 26.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for agentic_fabric_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2ae80e30eecbfeebe35fc3d8d328b0f4c0d28218d09a2d2ac5d1786e87313ebc
MD5 fd26706e803e9d267af73fafea241b38
BLAKE2b-256 a5854cb2db9e183d343aaf907a4cf1fe4bbbc5ff73304a4f38863ac6936fcf07

See more details on using hashes here.

File details

Details for the file agentic_fabric_sdk-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for agentic_fabric_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bb824eb42264dcb0795912044e0e7025251daa4cb9314d392f38a3107df2869a
MD5 6ba4de243477efb6040825671bb2569d
BLAKE2b-256 30f3886c11772f48e65d93c6aa8d726f15632a0d84558d1263834d9620556e6a

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