agentic-fabriq-sdk 0.1.19__py3-none-any.whl → 0.1.20__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_sdk/fabriq_client.py CHANGED
@@ -166,8 +166,9 @@ class FabriqClient:
166
166
  ) -> Dict[str, Any]:
167
167
  """Invoke a tool using its connection ID (preferred method).
168
168
 
169
- This uses the connection_id (like 'slacker', 'gurt') to automatically
170
- find and invoke the correct tool with the right credentials.
169
+ This directly uses the connection_id (like 'slacker', 'gurt') to invoke
170
+ the tool without needing to look up UUIDs. This is the most efficient
171
+ and reliable way to invoke tools.
171
172
 
172
173
  Args:
173
174
  connection_id: Connection identifier (e.g., 'slacker', 'gurt')
@@ -183,33 +184,20 @@ class FabriqClient:
183
184
  parameters={"channel": "test", "text": "Hello!"})
184
185
  result = await client.invoke_connection("gurt", method="list_files")
185
186
  """
186
- # This uses the tool invocation with connection_id in context
187
- # which is supported by current production servers
187
+ # Use the direct connection-based invoke endpoint
188
+ # This matches what the CLI uses and is more efficient
188
189
  body = {
189
190
  "method": method,
190
191
  "parameters": parameters or {},
191
- "context": {"connection_id": connection_id}
192
192
  }
193
193
 
194
- # First, get the connection to find the tool name
195
- connections_resp = await self._http.get("/user-connections", headers=self._extra_headers)
196
- connections = connections_resp.json()
197
-
198
- connection = next((c for c in connections if c.get("connection_id") == connection_id), None)
199
- if not connection:
200
- raise ValueError(f"Connection '{connection_id}' not found")
201
-
202
- tool_name = connection.get("tool")
203
-
204
- # Look up the tool by name to get its UUID
205
- result = await self.invoke_tool(
206
- tool_name,
207
- method=method,
208
- parameters=parameters,
209
- connection_id=connection_id
194
+ # Call the connection-based invoke endpoint
195
+ r = await self._http.post(
196
+ f"/tools/connections/{connection_id}/invoke",
197
+ json=body,
198
+ headers=self._extra_headers
210
199
  )
211
-
212
- return result
200
+ return r.json()
213
201
 
214
202
  # -----------------
215
203
  # MCP Servers
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentic-fabriq-sdk
3
- Version: 0.1.19
3
+ Version: 0.1.20
4
4
  Summary: Agentic Fabriq SDK: high-level client, CLI tool, DX helpers, and auth for AI agents
5
5
  License: Apache-2.0
6
6
  Keywords: fabriq,agentic-fabriq,sdk,ai,agents,agentic,fabric,cli
@@ -27,7 +27,7 @@ af_sdk/dx/decorators.py,sha256=o_EmvE_8pp2vTgMJMgfTy5SXG_24yabuKdoytah02Hk,1294
27
27
  af_sdk/dx/runtime.py,sha256=5oowtdWtTr12odBz6pXKexSVKf2smfQDw71-jBDKr8A,2471
28
28
  af_sdk/events.py,sha256=onz1wWwATpm71HFfcEJLhvXBDSmE0M9RC92lMS-Sd3k,22609
29
29
  af_sdk/exceptions.py,sha256=ZVjjBeq17CGK69N2OTkVTjPXqXSI_gA7cZk9rCvARcI,4381
30
- af_sdk/fabriq_client.py,sha256=jYimCc310_1kt3MbFdvHQOH0gja6jh8pniwu17okH4o,11567
30
+ af_sdk/fabriq_client.py,sha256=28N7EdrwbF7KQLlAZd71J_fMm3tpBOykOjOJYgVfLtc,11068
31
31
  af_sdk/models/__init__.py,sha256=nSjgNEyYILZ6WIQF-oG5IT0CWV7JGuE0xNLw8sHPshM,707
32
32
  af_sdk/models/audit.py,sha256=_wRahNV7M7ftc2AHFf7J3WzIJ5cUyZhFn_lZX9NITp8,1476
33
33
  af_sdk/models/types.py,sha256=DPrl7XuFSYRrc8el8OX-ZNcZrIZwl8rTR9cH01uZFaU,5106
@@ -35,7 +35,7 @@ af_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
35
  af_sdk/transport/__init__.py,sha256=HsOc6MmlxIS-PSYC_-6E36-dZYyT_auZeoXvGzVAqeg,104
36
36
  af_sdk/transport/http.py,sha256=QB3eqQbwug95QHf5PG_714NKtlTjV9PzVTo8izJCylc,13203
37
37
  af_sdk/vault.py,sha256=QVNGigIw8ND5sVXt05gvUY222b5-i9EbzLWNsDGdOU4,17926
38
- agentic_fabriq_sdk-0.1.19.dist-info/METADATA,sha256=pyoPnROyDWvxMf9JbXScRIXSlLGl7xiAQfEtDYeUwTE,3658
39
- agentic_fabriq_sdk-0.1.19.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
40
- agentic_fabriq_sdk-0.1.19.dist-info/entry_points.txt,sha256=XUO2EaJhUtUS5pwVIkhemC-nEeFbKgXXLW97gQCCGm8,41
41
- agentic_fabriq_sdk-0.1.19.dist-info/RECORD,,
38
+ agentic_fabriq_sdk-0.1.20.dist-info/METADATA,sha256=GJrxalPJGwut6ESMie-4mDlBw-HWsS_plSXrS9W6Jus,3658
39
+ agentic_fabriq_sdk-0.1.20.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
40
+ agentic_fabriq_sdk-0.1.20.dist-info/entry_points.txt,sha256=XUO2EaJhUtUS5pwVIkhemC-nEeFbKgXXLW97gQCCGm8,41
41
+ agentic_fabriq_sdk-0.1.20.dist-info/RECORD,,