attp-client 0.0.13__tar.gz → 0.0.15__tar.gz

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.
Files changed (37) hide show
  1. {attp_client-0.0.13 → attp_client-0.0.15}/PKG-INFO +1 -1
  2. {attp_client-0.0.13 → attp_client-0.0.15}/pyproject.toml +1 -1
  3. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/client.py +3 -3
  4. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/interfaces/inference/message.py +1 -1
  5. {attp_client-0.0.13 → attp_client-0.0.15}/README.md +0 -0
  6. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/__init__.py +0 -0
  7. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/catalog.py +0 -0
  8. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/consts.py +0 -0
  9. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/errors/attp_exception.py +0 -0
  10. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/errors/correlated_rpc_exception.py +0 -0
  11. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/errors/dead_session.py +0 -0
  12. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/errors/not_found.py +0 -0
  13. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/errors/serialization_error.py +0 -0
  14. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/errors/unauthenticated_error.py +0 -0
  15. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/inference.py +0 -0
  16. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/interfaces/catalogs/catalog.py +0 -0
  17. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/interfaces/catalogs/tools/envelope.py +0 -0
  18. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/interfaces/error.py +0 -0
  19. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/interfaces/handshake/auth.py +0 -0
  20. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/interfaces/handshake/hello.py +0 -0
  21. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/interfaces/handshake/ready.py +0 -0
  22. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/interfaces/inference/enums/message_data_type.py +0 -0
  23. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/interfaces/inference/enums/message_emergency_type.py +0 -0
  24. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/interfaces/inference/enums/message_type.py +0 -0
  25. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/interfaces/inference/tool.py +0 -0
  26. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/interfaces/route_mappings.py +0 -0
  27. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/misc/fixed_basemodel.py +0 -0
  28. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/misc/serializable.py +0 -0
  29. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/router.py +0 -0
  30. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/session.py +0 -0
  31. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/tools.py +0 -0
  32. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/types/route_mapping.py +0 -0
  33. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/utils/context_awaiter.py +0 -0
  34. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/utils/envelopizer.py +0 -0
  35. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/utils/route_mapper.py +0 -0
  36. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/utils/serializer.py +0 -0
  37. {attp_client-0.0.13 → attp_client-0.0.15}/src/attp_client/utils/trigger_callable.py +0 -0
@@ -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
  [project]
2
2
  name = "attp-client"
3
- version = "0.0.13"
3
+ version = "0.0.15"
4
4
  description = "A python-sdk client for interacting with AgentHub's ATTP protocol (Agent Tool Transport Protocol)"
5
5
  authors = [
6
6
  {name = "Ascender Team"}
@@ -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()
File without changes