acp-sdk 0.8.2__tar.gz → 0.8.3__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 (48) hide show
  1. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/PKG-INFO +1 -1
  2. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/pyproject.toml +1 -1
  3. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/models/models.py +5 -3
  4. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/tests/unit/models/test_models.py +21 -1
  5. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/.gitignore +0 -0
  6. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/.python-version +0 -0
  7. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/README.md +0 -0
  8. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/docs/.gitignore +0 -0
  9. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/docs/Makefile +0 -0
  10. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/docs/conf.py +0 -0
  11. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/docs/index.rst +0 -0
  12. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/docs/make.bat +0 -0
  13. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/pytest.ini +0 -0
  14. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/__init__.py +0 -0
  15. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/client/__init__.py +0 -0
  16. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/client/client.py +0 -0
  17. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/client/types.py +0 -0
  18. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/client/utils.py +0 -0
  19. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/instrumentation.py +0 -0
  20. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/models/__init__.py +0 -0
  21. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/models/errors.py +0 -0
  22. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/models/schemas.py +0 -0
  23. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/py.typed +0 -0
  24. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/server/__init__.py +0 -0
  25. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/server/agent.py +0 -0
  26. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/server/app.py +0 -0
  27. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/server/bundle.py +0 -0
  28. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/server/context.py +0 -0
  29. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/server/errors.py +0 -0
  30. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/server/logging.py +0 -0
  31. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/server/server.py +0 -0
  32. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/server/session.py +0 -0
  33. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/server/telemetry.py +0 -0
  34. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/server/types.py +0 -0
  35. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/server/utils.py +0 -0
  36. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/src/acp_sdk/version.py +0 -0
  37. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/tests/conftest.py +0 -0
  38. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/tests/e2e/__init__.py +0 -0
  39. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/tests/e2e/config.py +0 -0
  40. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/tests/e2e/fixtures/__init__.py +0 -0
  41. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/tests/e2e/fixtures/client.py +0 -0
  42. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/tests/e2e/fixtures/server.py +0 -0
  43. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/tests/e2e/test_suites/__init__.py +0 -0
  44. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/tests/e2e/test_suites/test_discovery.py +0 -0
  45. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/tests/e2e/test_suites/test_runs.py +0 -0
  46. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/tests/unit/client/test_client.py +0 -0
  47. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/tests/unit/client/test_utils.py +0 -0
  48. {acp_sdk-0.8.2 → acp_sdk-0.8.3}/tests/unit/models/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: acp-sdk
3
- Version: 0.8.2
3
+ Version: 0.8.3
4
4
  Summary: Agent Communication Protocol SDK
5
5
  Author: IBM Corp.
6
6
  Maintainer-email: Tomas Pilar <thomas7pilar@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "acp-sdk"
3
- version = "0.8.2"
3
+ version = "0.8.3"
4
4
  description = "Agent Communication Protocol SDK"
5
5
  license = "Apache-2.0"
6
6
  readme = "README.md"
@@ -95,7 +95,7 @@ class Artifact(MessagePart):
95
95
 
96
96
  class Message(BaseModel):
97
97
  parts: list[MessagePart]
98
- created_at: datetime = Field(default_factory=lambda: datetime.now(timezone.utc))
98
+ created_at: datetime | None = Field(default_factory=lambda: datetime.now(timezone.utc))
99
99
  completed_at: datetime | None = Field(default_factory=lambda: datetime.now(timezone.utc))
100
100
 
101
101
  def __add__(self, other: "Message") -> "Message":
@@ -103,8 +103,10 @@ class Message(BaseModel):
103
103
  raise TypeError(f"Cannot concatenate Message with {type(other).__name__}")
104
104
  return Message(
105
105
  parts=self.parts + other.parts,
106
- created_at=min(self.created_at, other.created_at),
107
- completed_at=max(self.completed_at, other.completed_at),
106
+ created_at=min(self.created_at, other.created_at) if self.created_at and other.created_at else None,
107
+ completed_at=max(self.completed_at, other.completed_at)
108
+ if self.completed_at and other.completed_at
109
+ else None,
108
110
  )
109
111
 
110
112
  def __str__(self) -> str:
@@ -26,7 +26,27 @@ timestamp = "2021-09-09T22:02:47.89Z"
26
26
  created_at=timestamp,
27
27
  completed_at=timestamp,
28
28
  ),
29
- )
29
+ ),
30
+ (
31
+ Message(
32
+ parts=[MessagePart(content_type="text/plain", content="Foo")],
33
+ created_at=None,
34
+ completed_at=timestamp,
35
+ ),
36
+ Message(
37
+ parts=[MessagePart(content_type="text/plain", content="Bar")],
38
+ created_at=timestamp,
39
+ completed_at=None,
40
+ ),
41
+ Message(
42
+ parts=[
43
+ MessagePart(content_type="text/plain", content="Foo"),
44
+ MessagePart(content_type="text/plain", content="Bar"),
45
+ ],
46
+ created_at=None,
47
+ completed_at=None,
48
+ ),
49
+ ),
30
50
  ],
31
51
  )
32
52
  def test_message_add(first: Message, second: Message, result: Message) -> None:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes