attp-client 0.0.14__py3-none-any.whl → 0.0.15__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.
attp_client/client.py CHANGED
@@ -132,7 +132,7 @@ class ATTPClient:
132
132
  if not message.correlation_id:
133
133
  await self.session.send_error(IErr(
134
134
  detail={"message": "Correlation ID was missing in the message.", "code": "MissingCorrelationId"},
135
- ))
135
+ ), route=message.route_id)
136
136
  return
137
137
 
138
138
  print("TOOL CALLBACK MESSAGE:", message.payload)
@@ -141,14 +141,14 @@ class ATTPClient:
141
141
  except ValueError as e:
142
142
  await self.session.send_error(IErr(
143
143
  detail={"message": str(e), "code": "InvalidPayload"},
144
- ))
144
+ ), correlation_id=message.correlation_id, route=message.route_id)
145
145
  return
146
146
 
147
147
  catalog = next((c for c in self.catalogs if c.id == envelope.tool_id), None)
148
148
  if not catalog:
149
149
  await self.session.send_error(IErr(
150
150
  detail={"message": f"Catalog with id {envelope.tool_id} not found.", "code": "NotFoundError"},
151
- ))
151
+ ), route=message.route_id, correlation_id=message.correlation_id)
152
152
  return
153
153
 
154
154
  response = await catalog.handle_callback(envelope)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: attp-client
3
- Version: 0.0.14
3
+ Version: 0.0.15
4
4
  Summary: A python-sdk client for interacting with AgentHub's ATTP protocol (Agent Tool Transport Protocol)
5
5
  License: MIT
6
6
  Author: Ascender Team
@@ -1,6 +1,6 @@
1
1
  attp_client/__init__.py,sha256=25qGMUU_W8juBuW9N6318vWoqALrPQSp3ECHHkNzUcg,2749
2
2
  attp_client/catalog.py,sha256=TLQvNKx3GtEYcyqWCJuvF6soZXeebKn6wfQNcvV4cX0,4921
3
- attp_client/client.py,sha256=UeKyGTmgp9SG2iyGGhSzj4b9nuN8nZhES0pQ6O7XWw0,7643
3
+ attp_client/client.py,sha256=OORSb47I8KbUuf23vwZgN1qgIUVqVMgVSP_bvcclLJQ,7793
4
4
  attp_client/consts.py,sha256=6UZyqWddycOp-TKW5yvb0JW2fdfcS-J2xFVVNfuJQbU,18
5
5
  attp_client/errors/attp_exception.py,sha256=HePYyYMknS4t6tMrwU-p9L_LPdj1i7chntrlM53ueK4,347
6
6
  attp_client/errors/correlated_rpc_exception.py,sha256=GivYlF0rC4zxbEt5sMxc1cO-iGxIuiEjTy7knN_iur4,591
@@ -32,6 +32,6 @@ attp_client/utils/envelopizer.py,sha256=wnFEnEEDGx8eW-UYlhpTeOTyLLXnjBYw3-BOHWG-
32
32
  attp_client/utils/route_mapper.py,sha256=uJNhKp6ipCSUxoiZS0Liix2lHOgUAnJM0kfgXWAh9RQ,554
33
33
  attp_client/utils/serializer.py,sha256=O1tWYbQS9jC9aus-ISKtliKCgGmOEIb9hxykVrmMKGY,636
34
34
  attp_client/utils/trigger_callable.py,sha256=F5z0JJcSW7UU0Ss4rbCluBM4uhge__27X3p1faMfqmE,271
35
- attp_client-0.0.14.dist-info/METADATA,sha256=YWkkMsh_i6UzBbX1d7P_RB3hWMMUDJ_f5c8ucGMRIwM,7138
36
- attp_client-0.0.14.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
37
- attp_client-0.0.14.dist-info/RECORD,,
35
+ attp_client-0.0.15.dist-info/METADATA,sha256=dAib2hOKghOm_DrexfzcSqJbiaFNO9Kp6H8HMICW5-k,7138
36
+ attp_client-0.0.15.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
37
+ attp_client-0.0.15.dist-info/RECORD,,