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, andtool)
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
Release history Release notifications | RSS feed
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.0.tar.gz
(25.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentic_fabric_sdk-0.1.0.tar.gz.
File metadata
- Download URL: agentic_fabric_sdk-0.1.0.tar.gz
- Upload date:
- Size: 25.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42bf7dc6a6c2a63e39faaf8479a4a7f28b8603aa281bb6ab5ab37222a52777fb
|
|
| MD5 |
6ee2a0f1176a4dd89405b7d61b7cc97a
|
|
| BLAKE2b-256 |
9bfbf563e3162fdc921e3ccd088ae6afc5ef533a84a7db5654b659bf1b5daa5e
|
File details
Details for the file agentic_fabric_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agentic_fabric_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 33.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f58bd8613c2242cf059c1d7e574a7ab6f8417dd5f38ce1626c4b7f142835832
|
|
| MD5 |
aa59e597e1c84796cca1a3fdeefe4646
|
|
| BLAKE2b-256 |
5fa864b298cb9d6a8307043ec962bbf2c9a7d2a7963d10efe61f3e9bbf8e4d48
|