acp-sdk 0.8.2__py3-none-any.whl → 0.8.3__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.
acp_sdk/models/models.py CHANGED
@@ -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:
@@ -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>
@@ -8,7 +8,7 @@ acp_sdk/client/types.py,sha256=_H6zYt-2OHOOYRtssRnbDIiwmgsl2-KIXc9lb-mJLFA,133
8
8
  acp_sdk/client/utils.py,sha256=2jhJyrPJmVFRoDJh0q_JMqOMlC3IxCh-6HXed-PIZS8,924
9
9
  acp_sdk/models/__init__.py,sha256=numSDBDT1QHx7n_Y3Deb5VOvKWcUBxbOEaMwQBSRHxc,151
10
10
  acp_sdk/models/errors.py,sha256=rEyaMVvQuBi7fwWe_d0PGGySYsD3FZTluQ-SkC0yhAs,444
11
- acp_sdk/models/models.py,sha256=6OEkTMdMsl3_IbiFmFG2ChEqY_KYTf3Bi_MW5p168GQ,7183
11
+ acp_sdk/models/models.py,sha256=aRKbg-17HtxQE9fkI8-lWrOL7D6iUsLr7hipkh857yg,7318
12
12
  acp_sdk/models/schemas.py,sha256=_ah7_zHsQJGxDXvnzsBvASdRsQHVphFQ7Sum6A04iRw,759
13
13
  acp_sdk/server/__init__.py,sha256=mxBBBFaZuMEUENRMLwp1XZkuLeT9QghcFmNvjnqvAAU,377
14
14
  acp_sdk/server/agent.py,sha256=wvwpi83osmW7zQWxVnzyVMXIvzOswAfhKWHscVIldhA,6245
@@ -22,6 +22,6 @@ acp_sdk/server/session.py,sha256=ekz1o6Sy1tQZlpaoS_VgbvFuUQh2qpiHG71mvBdvhgc,662
22
22
  acp_sdk/server/telemetry.py,sha256=1BUxNg-xL_Vqgs27PDWNc3HikrQW2lidAtT_FKlp_Qk,1833
23
23
  acp_sdk/server/types.py,sha256=teBNRWSks8XP1SCQKGEtbNWQahVD3RAOPnysTxcQPxI,292
24
24
  acp_sdk/server/utils.py,sha256=BhZKBNaLgczX6aYjxYva-6VI1bKmHtYQ5YDA5LrwF50,1831
25
- acp_sdk-0.8.2.dist-info/METADATA,sha256=fxSOTWcXIKK34252Vvn0leWfb9Gr9cwQw_LOh7vLGZw,1651
26
- acp_sdk-0.8.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
- acp_sdk-0.8.2.dist-info/RECORD,,
25
+ acp_sdk-0.8.3.dist-info/METADATA,sha256=Ytt81jup9-tzo-xCw3vKch0NiNWDmNKjatwzQiHwM-4,1651
26
+ acp_sdk-0.8.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
+ acp_sdk-0.8.3.dist-info/RECORD,,