agentic-fabriq-sdk 0.1.5__py3-none-any.whl → 0.1.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of agentic-fabriq-sdk might be problematic. Click here for more details.
- af_cli/__init__.py +8 -0
- af_cli/commands/__init__.py +3 -0
- af_cli/commands/agents.py +238 -0
- af_cli/commands/auth.py +390 -0
- af_cli/commands/config.py +102 -0
- af_cli/commands/mcp_servers.py +83 -0
- af_cli/commands/secrets.py +109 -0
- af_cli/commands/tools.py +474 -0
- af_cli/core/__init__.py +3 -0
- af_cli/core/client.py +127 -0
- af_cli/core/config.py +200 -0
- af_cli/core/oauth.py +506 -0
- af_cli/core/output.py +180 -0
- af_cli/core/token_storage.py +263 -0
- af_cli/main.py +187 -0
- {agentic_fabriq_sdk-0.1.5.dist-info → agentic_fabriq_sdk-0.1.7.dist-info}/METADATA +40 -10
- {agentic_fabriq_sdk-0.1.5.dist-info → agentic_fabriq_sdk-0.1.7.dist-info}/RECORD +19 -3
- agentic_fabriq_sdk-0.1.7.dist-info/entry_points.txt +3 -0
- {agentic_fabriq_sdk-0.1.5.dist-info → agentic_fabriq_sdk-0.1.7.dist-info}/WHEEL +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agentic-fabriq-sdk
|
|
3
|
-
Version: 0.1.
|
|
4
|
-
Summary: Agentic Fabriq SDK: high-level client, DX helpers, and auth for AI agents
|
|
3
|
+
Version: 0.1.7
|
|
4
|
+
Summary: Agentic Fabriq SDK: high-level client, CLI tool, DX helpers, and auth for AI agents
|
|
5
5
|
License: Apache-2.0
|
|
6
|
-
Keywords: fabriq,agentic-fabriq,sdk,ai,agents,agentic,fabric
|
|
6
|
+
Keywords: fabriq,agentic-fabriq,sdk,ai,agents,agentic,fabric,cli
|
|
7
7
|
Author: Agentic Fabriq Contributors
|
|
8
8
|
Author-email: contributors@agentic-fabriq.org
|
|
9
9
|
Requires-Python: >=3.11,<3.13
|
|
@@ -17,11 +17,14 @@ Classifier: Typing :: Typed
|
|
|
17
17
|
Requires-Dist: PyJWT (>=2.8.0)
|
|
18
18
|
Requires-Dist: aiohttp (>=3.9.0)
|
|
19
19
|
Requires-Dist: httpx (>=0.25)
|
|
20
|
+
Requires-Dist: keyring (>=25.0.0)
|
|
20
21
|
Requires-Dist: nats-py (>=2.4.0)
|
|
21
22
|
Requires-Dist: opentelemetry-api (>=1.20.0)
|
|
22
23
|
Requires-Dist: opentelemetry-instrumentation-httpx (>=0.41b0)
|
|
23
24
|
Requires-Dist: pydantic (>=2.4)
|
|
25
|
+
Requires-Dist: rich (>=13.7.0)
|
|
24
26
|
Requires-Dist: stevedore (>=5.1.0)
|
|
27
|
+
Requires-Dist: typer (>=0.9.0)
|
|
25
28
|
Requires-Dist: typing-extensions
|
|
26
29
|
Project-URL: Documentation, https://docs.agentic-fabric.org
|
|
27
30
|
Project-URL: Homepage, https://github.com/agentic-fabric/agentic-fabric
|
|
@@ -30,10 +33,12 @@ Description-Content-Type: text/markdown
|
|
|
30
33
|
|
|
31
34
|
# Agentic Fabriq SDK
|
|
32
35
|
|
|
33
|
-
`agentic-fabriq-sdk` provides a Python SDK for interacting with Agentic Fabriq.
|
|
36
|
+
`agentic-fabriq-sdk` provides a Python SDK and CLI tool for interacting with Agentic Fabriq.
|
|
34
37
|
|
|
35
|
-
|
|
36
|
-
-
|
|
38
|
+
**What's included:**
|
|
39
|
+
- 🐍 **Python SDK**: High-level client (`af_sdk.FabriqClient`) and DX layer
|
|
40
|
+
- 🛠️ **CLI Tool**: `afctl` command for authentication and management
|
|
41
|
+
- 🔐 **OAuth2/PKCE**: Secure browser-based authentication with token storage
|
|
37
42
|
|
|
38
43
|
## Install
|
|
39
44
|
|
|
@@ -41,13 +46,38 @@ Description-Content-Type: text/markdown
|
|
|
41
46
|
pip install agentic-fabriq-sdk
|
|
42
47
|
```
|
|
43
48
|
|
|
49
|
+
This installs both the Python library and the `afctl` CLI tool.
|
|
50
|
+
|
|
44
51
|
## Quickstart
|
|
45
52
|
|
|
53
|
+
### CLI Tool
|
|
54
|
+
|
|
55
|
+
Authenticate and manage your Agentic Fabriq resources:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
# Login with OAuth2 (browser opens automatically)
|
|
59
|
+
afctl auth login
|
|
60
|
+
|
|
61
|
+
# Check authentication status
|
|
62
|
+
afctl auth status
|
|
63
|
+
|
|
64
|
+
# List available tools
|
|
65
|
+
afctl tools list
|
|
66
|
+
|
|
67
|
+
# List agents
|
|
68
|
+
afctl agents list
|
|
69
|
+
|
|
70
|
+
# Get help
|
|
71
|
+
afctl --help
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Python SDK
|
|
75
|
+
|
|
46
76
|
```python
|
|
47
77
|
from af_sdk.fabriq_client import FabriqClient
|
|
48
78
|
|
|
49
79
|
TOKEN = "..." # Bearer JWT for the Fabriq Gateway
|
|
50
|
-
BASE = "
|
|
80
|
+
BASE = "https://dashboard.agenticfabriq.com"
|
|
51
81
|
|
|
52
82
|
async def main():
|
|
53
83
|
async with FabriqClient(base_url=BASE, auth_token=TOKEN) as af:
|
|
@@ -60,8 +90,8 @@ DX orchestration:
|
|
|
60
90
|
```python
|
|
61
91
|
from af_sdk.dx import ToolFabric, AgentFabric, Agent, tool
|
|
62
92
|
|
|
63
|
-
slack = ToolFabric(provider="slack", base_url="
|
|
64
|
-
agents = AgentFabric(base_url="
|
|
93
|
+
slack = ToolFabric(provider="slack", base_url="https://dashboard.agenticfabriq.com", access_token=TOKEN, tenant_id=TENANT)
|
|
94
|
+
agents = AgentFabric(base_url="https://dashboard.agenticfabriq.com", access_token=TOKEN, tenant_id=TENANT)
|
|
65
95
|
|
|
66
96
|
@tool
|
|
67
97
|
def echo(x: str) -> str:
|
|
@@ -71,7 +101,7 @@ bot = Agent(
|
|
|
71
101
|
system_prompt="demo",
|
|
72
102
|
tools=[echo],
|
|
73
103
|
agents=agents.get_agents(["summarizer"]),
|
|
74
|
-
base_url="
|
|
104
|
+
base_url="https://dashboard.agenticfabriq.com",
|
|
75
105
|
access_token=TOKEN,
|
|
76
106
|
tenant_id=TENANT,
|
|
77
107
|
provider_fabrics={"slack": slack},
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
af_cli/__init__.py,sha256=F2T4x4H3VIdmTjHRyV5DkaRvbZcdHYzAWD2hxtTplE4,188
|
|
2
|
+
af_cli/commands/__init__.py,sha256=Qngm2Yks6oTKazlxCZA_tIAHXwHoU6Oc7Pw5BGkA7W4,49
|
|
3
|
+
af_cli/commands/agents.py,sha256=EBAZgY5YbcR6npN0m7n1YB3WUTnW050Dd6FfORn0TtQ,8433
|
|
4
|
+
af_cli/commands/auth.py,sha256=EuVIuTzpQ6eC6Tq9rdBF83HpfN-Jb4O0Ep_CLwhorUo,12071
|
|
5
|
+
af_cli/commands/config.py,sha256=vKTYc9noPNQQe4rhS2V9def1kzDtjB14ptWKJpdxUlQ,2559
|
|
6
|
+
af_cli/commands/mcp_servers.py,sha256=kr2MskqtwdA1434_9oEyEydlZ5Ycq8a1Vt5wSC0AqRE,2420
|
|
7
|
+
af_cli/commands/secrets.py,sha256=_XvtST9G7US_0MqHywSqRdp2FXUr76OTiD-SH4WXoJU,3472
|
|
8
|
+
af_cli/commands/tools.py,sha256=uqmH2TDhEdOhxCeOaWJIN1NeWjBIIYGVBJdVK-WfGEA,19269
|
|
9
|
+
af_cli/core/__init__.py,sha256=cQ0H7rGfaMISQPhoNe4Xfu_EKU2TqRVt2OMI7tPea5U,51
|
|
10
|
+
af_cli/core/client.py,sha256=BELf6889BOzOWP6kCk4hSY4DolIATB0YNpui38l7EaI,3939
|
|
11
|
+
af_cli/core/config.py,sha256=zTrbZTtBZqG5Ktsbomr1w4u9uKdyc1nUieXIZLYsvIk,7355
|
|
12
|
+
af_cli/core/oauth.py,sha256=sCzo97TZyx8sLmo0GYv53P3zoABK6htRCivHhRpPRdI,18162
|
|
13
|
+
af_cli/core/output.py,sha256=tL5z7M-tLu2M1Yl8O4M7OPP7iQivC1b_YUUB468Od5Y,4811
|
|
14
|
+
af_cli/core/token_storage.py,sha256=WhOQLx5_9pn2lAlFX01Y5DmWO7B9BJYfEkASCsBQwaI,7738
|
|
15
|
+
af_cli/main.py,sha256=EdZk87HkL8jJwqn5flrbz3ecMIBy6XbrUxvvMAC7Koc,5168
|
|
1
16
|
af_sdk/__init__.py,sha256=gZ7nGfDRMJzPiIFrfcKytYt0cyVVPorOQaWq5X3fL0M,1262
|
|
2
17
|
af_sdk/auth/__init__.py,sha256=WUtbNo1KS6Jm-2ssCo21mwBmMKRxT2HtjnfXZeIKSQg,703
|
|
3
18
|
af_sdk/auth/dpop.py,sha256=s0uiyxxuzsVQNtSexji1htJoxrALwlf1P9507xa-M3Y,1285
|
|
@@ -19,6 +34,7 @@ af_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
19
34
|
af_sdk/transport/__init__.py,sha256=HsOc6MmlxIS-PSYC_-6E36-dZYyT_auZeoXvGzVAqeg,104
|
|
20
35
|
af_sdk/transport/http.py,sha256=QB3eqQbwug95QHf5PG_714NKtlTjV9PzVTo8izJCylc,13203
|
|
21
36
|
af_sdk/vault.py,sha256=QVNGigIw8ND5sVXt05gvUY222b5-i9EbzLWNsDGdOU4,17926
|
|
22
|
-
agentic_fabriq_sdk-0.1.
|
|
23
|
-
agentic_fabriq_sdk-0.1.
|
|
24
|
-
agentic_fabriq_sdk-0.1.
|
|
37
|
+
agentic_fabriq_sdk-0.1.7.dist-info/METADATA,sha256=-L-GX-wJY4MyMlnMiNaRV2DZy_wwTUDK0ghFGdvztOs,3164
|
|
38
|
+
agentic_fabriq_sdk-0.1.7.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
39
|
+
agentic_fabriq_sdk-0.1.7.dist-info/entry_points.txt,sha256=XUO2EaJhUtUS5pwVIkhemC-nEeFbKgXXLW97gQCCGm8,41
|
|
40
|
+
agentic_fabriq_sdk-0.1.7.dist-info/RECORD,,
|
|
File without changes
|