acp-sdk 0.6.0__py3-none-any.whl → 0.7.0__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/client/client.py +3 -3
- acp_sdk/models/models.py +1 -1
- acp_sdk/models/schemas.py +1 -1
- acp_sdk/server/app.py +1 -1
- acp_sdk/server/bundle.py +5 -5
- acp_sdk/server/session.py +1 -1
- {acp_sdk-0.6.0.dist-info → acp_sdk-0.7.0.dist-info}/METADATA +1 -1
- {acp_sdk-0.6.0.dist-info → acp_sdk-0.7.0.dist-info}/RECORD +9 -9
- {acp_sdk-0.6.0.dist-info → acp_sdk-0.7.0.dist-info}/WHEEL +0 -0
acp_sdk/client/client.py
CHANGED
@@ -127,7 +127,7 @@ class Client:
|
|
127
127
|
"/runs",
|
128
128
|
content=RunCreateRequest(
|
129
129
|
agent_name=agent,
|
130
|
-
|
130
|
+
input=self._unify_inputs(input),
|
131
131
|
mode=RunMode.SYNC,
|
132
132
|
session_id=self._session_id,
|
133
133
|
).model_dump_json(),
|
@@ -142,7 +142,7 @@ class Client:
|
|
142
142
|
"/runs",
|
143
143
|
content=RunCreateRequest(
|
144
144
|
agent_name=agent,
|
145
|
-
|
145
|
+
input=self._unify_inputs(input),
|
146
146
|
mode=RunMode.ASYNC,
|
147
147
|
session_id=self._session_id,
|
148
148
|
).model_dump_json(),
|
@@ -159,7 +159,7 @@ class Client:
|
|
159
159
|
"/runs",
|
160
160
|
content=RunCreateRequest(
|
161
161
|
agent_name=agent,
|
162
|
-
|
162
|
+
input=self._unify_inputs(input),
|
163
163
|
mode=RunMode.STREAM,
|
164
164
|
session_id=self._session_id,
|
165
165
|
).model_dump_json(),
|
acp_sdk/models/models.py
CHANGED
acp_sdk/models/schemas.py
CHANGED
acp_sdk/server/app.py
CHANGED
@@ -105,7 +105,7 @@ def create_app(*agents: Agent, run_limit: int = 1000, run_ttl: timedelta = timed
|
|
105
105
|
bundle = RunBundle(
|
106
106
|
agent=agent,
|
107
107
|
run=Run(agent_name=agent.name, session_id=session.id),
|
108
|
-
inputs=request.
|
108
|
+
inputs=request.input,
|
109
109
|
history=list(session.history()),
|
110
110
|
executor=executor,
|
111
111
|
)
|
acp_sdk/server/bundle.py
CHANGED
@@ -92,7 +92,7 @@ class RunBundle:
|
|
92
92
|
async def flush_message() -> None:
|
93
93
|
nonlocal in_message
|
94
94
|
if in_message:
|
95
|
-
await self.emit(MessageCompletedEvent(message=self.run.
|
95
|
+
await self.emit(MessageCompletedEvent(message=self.run.output[-1]))
|
96
96
|
in_message = False
|
97
97
|
|
98
98
|
try:
|
@@ -114,14 +114,14 @@ class RunBundle:
|
|
114
114
|
if isinstance(next, str):
|
115
115
|
next = MessagePart(content=next)
|
116
116
|
if not in_message:
|
117
|
-
self.run.
|
117
|
+
self.run.output.append(Message(parts=[]))
|
118
118
|
in_message = True
|
119
|
-
await self.emit(MessageCreatedEvent(message=self.run.
|
120
|
-
self.run.
|
119
|
+
await self.emit(MessageCreatedEvent(message=self.run.output[-1]))
|
120
|
+
self.run.output[-1].parts.append(next)
|
121
121
|
await self.emit(MessagePartEvent(part=next))
|
122
122
|
elif isinstance(next, Message):
|
123
123
|
await flush_message()
|
124
|
-
self.run.
|
124
|
+
self.run.output.append(next)
|
125
125
|
await self.emit(MessageCreatedEvent(message=next))
|
126
126
|
for part in next.parts:
|
127
127
|
await self.emit(MessagePartEvent(part=part))
|
acp_sdk/server/session.py
CHANGED
@@ -3,23 +3,23 @@ acp_sdk/instrumentation.py,sha256=JqSyvILN3sGAfOZrmckQq4-M_4_5alyPn95DK0o5lfA,16
|
|
3
3
|
acp_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
acp_sdk/version.py,sha256=Niy83rgvigB4hL_rR-O4ySvI7dj6xnqkyOe_JTymi9s,73
|
5
5
|
acp_sdk/client/__init__.py,sha256=Bca1DORrswxzZsrR2aUFpATuNG2xNSmYvF1Z2WJaVbc,51
|
6
|
-
acp_sdk/client/client.py,sha256=
|
6
|
+
acp_sdk/client/client.py,sha256=YXMumOuJ-tbcI1f0TvxXGMc14OLak4a0GKAcksNFqvU,9307
|
7
7
|
acp_sdk/models/__init__.py,sha256=numSDBDT1QHx7n_Y3Deb5VOvKWcUBxbOEaMwQBSRHxc,151
|
8
8
|
acp_sdk/models/errors.py,sha256=rEyaMVvQuBi7fwWe_d0PGGySYsD3FZTluQ-SkC0yhAs,444
|
9
|
-
acp_sdk/models/models.py,sha256=
|
10
|
-
acp_sdk/models/schemas.py,sha256=
|
9
|
+
acp_sdk/models/models.py,sha256=rQpc5eFSyDK_ALBXSjg6dTRNA6B0UFY3ssECY_1oIDc,6538
|
10
|
+
acp_sdk/models/schemas.py,sha256=OQ2bEfwFFZ1D9mhpgzfPBCcnPNvbl4qRfCWChH2wCro,644
|
11
11
|
acp_sdk/server/__init__.py,sha256=mxBBBFaZuMEUENRMLwp1XZkuLeT9QghcFmNvjnqvAAU,377
|
12
12
|
acp_sdk/server/agent.py,sha256=DhcPDPDL9jpDST40K_bInvDXfpF1cwxIhqXzu8z0blU,6203
|
13
|
-
acp_sdk/server/app.py,sha256=
|
14
|
-
acp_sdk/server/bundle.py,sha256=
|
13
|
+
acp_sdk/server/app.py,sha256=MouFtRxl7_n-zrNe22sPD39ZYFlFxVOVYNdnxrbU7qk,6600
|
14
|
+
acp_sdk/server/bundle.py,sha256=FcIiexkf_4tkSALIwCD-nR6fJMWnhAkArxqrA-l6I6w,6559
|
15
15
|
acp_sdk/server/context.py,sha256=MgnLV6qcDIhc_0BjW7r4Jj1tHts4ZuwpdTGIBnz2Mgo,1036
|
16
16
|
acp_sdk/server/errors.py,sha256=GSO8yYIqEeX8Y4Lz86ks35dMTHiQiXuOrLYYx0eXsbI,2110
|
17
17
|
acp_sdk/server/logging.py,sha256=Oc8yZigCsuDnHHPsarRzu0RX3NKaLEgpELM2yovGKDI,411
|
18
18
|
acp_sdk/server/server.py,sha256=6mIVyURgJvcZCPad1CV8TcgHC2mqyEFCGgGATGyP34Q,5548
|
19
|
-
acp_sdk/server/session.py,sha256=
|
19
|
+
acp_sdk/server/session.py,sha256=0zrjlz_mO8p5W9GilRABGUITb8GgvXwqilc7DHzqxT0,628
|
20
20
|
acp_sdk/server/telemetry.py,sha256=1BUxNg-xL_Vqgs27PDWNc3HikrQW2lidAtT_FKlp_Qk,1833
|
21
21
|
acp_sdk/server/types.py,sha256=teBNRWSks8XP1SCQKGEtbNWQahVD3RAOPnysTxcQPxI,292
|
22
22
|
acp_sdk/server/utils.py,sha256=EfrF9VCyVk3AM_ao-BIB9EzGbfTrh4V2Bz-VFr6f6Sg,351
|
23
|
-
acp_sdk-0.
|
24
|
-
acp_sdk-0.
|
25
|
-
acp_sdk-0.
|
23
|
+
acp_sdk-0.7.0.dist-info/METADATA,sha256=nCMjChAgoyoXFWQnrlyS49dmLX8KxL7mP9CxZHgGaaM,1654
|
24
|
+
acp_sdk-0.7.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
25
|
+
acp_sdk-0.7.0.dist-info/RECORD,,
|
File without changes
|