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

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.3.tar.gz (26.9 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.3-py3-none-any.whl (34.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentic_fabric_sdk-0.1.3.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.11 Darwin/24.6.0

File hashes

Hashes for agentic_fabric_sdk-0.1.3.tar.gz
Algorithm Hash digest
SHA256 05e3dd5d27df836aaced4d0cdab8039eb0ad431988d8dfed1e49c8cf71194fca
MD5 43a72593c228bdacc73d9987b63e8cac
BLAKE2b-256 1a285fe7425b36b53a3a0178862125c80a3db6c41c65c563a5f59335cbe2b58a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agentic_fabric_sdk-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 34.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.11 Darwin/24.6.0

File hashes

Hashes for agentic_fabric_sdk-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 985980aa84711abe9634d454a72f94964157308609a8a5b25e50cc1afe90a5bc
MD5 aeef4369c983af9283e05e26249f66e2
BLAKE2b-256 37411815d61512adca29f82c436f197dbe915db13b40b564c3d3d56519b1924f

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