attp-client 0.0.13__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)
@@ -34,7 +34,7 @@ class IMessageDTOV2(FixedBaseModel):
34
34
  tool_error_detail: str | None = None
35
35
 
36
36
  specialist_required: MessageEmergencyTypeEnum | None = None
37
- metadata: dict[str, Any] | None = None
37
+ meta: dict[str, str] | None = None # key, value (key is string, value is JSON string, None as value should be 'null' in JSON)
38
38
 
39
39
  def to_wrap(self) -> dict:
40
40
  w = self.model_dump()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: attp-client
3
- Version: 0.0.13
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
@@ -18,7 +18,7 @@ attp_client/interfaces/handshake/ready.py,sha256=0gEqwbvgRHkHb3FIn4YEyJ8LuzzP260
18
18
  attp_client/interfaces/inference/enums/message_data_type.py,sha256=v68IW8DMyb-ezGnyR6T5kPE70FPDZ14AvCP2mI-iLPo,397
19
19
  attp_client/interfaces/inference/enums/message_emergency_type.py,sha256=8s6PONMUdNzrxVLM5aTAicdKSk6BsRFLujVUsm5jopM,149
20
20
  attp_client/interfaces/inference/enums/message_type.py,sha256=joo6t9vLDeupEtfE1II_-oW6Y_c9zSAGe0bl32TqAlA,508
21
- attp_client/interfaces/inference/message.py,sha256=zoKf1yxRsbFqPlsDpO5zVFVgIqDAbc7xkbIcivao1HU,1637
21
+ attp_client/interfaces/inference/message.py,sha256=EARemMZJjGBGYCnYDMTmK01MIxtE83rzMpnZcF0V2wY,1724
22
22
  attp_client/interfaces/inference/tool.py,sha256=Oabb7w0HJtpyO-AcezmojdsJMGuLH4JHXft7h4mlyX8,134
23
23
  attp_client/interfaces/route_mappings.py,sha256=j6hEdkCP5xPpHS16EWmlkdTlnHa7z6e8ukbY-NolKcQ,416
24
24
  attp_client/misc/fixed_basemodel.py,sha256=0MTVmlTrA75Oxv0pVfLdXFTSp5AmBzgiNwvDiLFGF_w,1853
@@ -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.13.dist-info/METADATA,sha256=6Gcgn3JlgK2IjXSEsu02kgRDsd5cjHkleH-P2Me7NAk,7138
36
- attp_client-0.0.13.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
37
- attp_client-0.0.13.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,,