acp-sdk 0.0.5__py3-none-any.whl → 0.0.6__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/client/sse.py CHANGED
@@ -137,6 +137,9 @@ async def sse_client(
137
137
  yield read_stream, write_stream
138
138
  finally:
139
139
  tg.cancel_scope.cancel()
140
+ except Exception as ex:
141
+ logger.error(f"Error in post_writer: {ex}")
142
+ raise
140
143
  finally:
141
144
  await read_stream_writer.aclose()
142
145
  await write_stream.aclose()
@@ -96,7 +96,7 @@ class AgentManager:
96
96
  return
97
97
 
98
98
  async def run_agent(
99
- self, name: str, input: dict[str, Any], context: "Context"
99
+ self, name: str, input: dict[str, Any], *, context: "Context"
100
100
  ) -> Any:
101
101
  """Run an agent by name with input."""
102
102
  agent = self.get_agent(name)
@@ -104,7 +104,7 @@ class AgentManager:
104
104
  raise AgentError(f"Unknown agent: {name}")
105
105
 
106
106
  try:
107
- output = await agent.run_fn(agent.input.model_validate(input), context)
107
+ output = await agent.run_fn(agent.input.model_validate(input), ctx=context) # type: ignore
108
108
  return output.model_dump()
109
109
  except Exception as e:
110
110
  raise AgentError(f"Error running agent {name}: {e}") from e
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: acp-sdk
3
- Version: 0.0.5
3
+ Version: 0.0.6
4
4
  Summary: Agent Communication Protocol SDK
5
5
  Project-URL: Homepage, https://github.com/i-am-bee/beeai
6
6
  Project-URL: Repository, https://github.com/i-am-bee/beeai
@@ -7,7 +7,7 @@ acp/cli/cli.py,sha256=Ons4CnJUooOmTq51hjRoHoJpw97t8-yGLvvzNnNqjXg,13900
7
7
  acp/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  acp/client/__main__.py,sha256=3fMDbCiR5B5BAPPeVnMkCrQVX5BdqkIMFW8QbAtpQcc,2265
9
9
  acp/client/session.py,sha256=jBiOQCYfhhE7p-zmhoSRYpv-pOYlqHRdoJJr2rEci9M,11506
10
- acp/client/sse.py,sha256=YrLgqt09j2G1O1ndQ6-X_FD3kWjn8_7yijaZ-FBQ-Gs,6535
10
+ acp/client/sse.py,sha256=pFIabPUMz21DHVeZLPdja4A7yDExWzmE5Py4OqU9Uw8,6641
11
11
  acp/client/stdio.py,sha256=f4Q8pmXCHr14tMfyjWuMQ5AoT2F6rvnY_gcqLaa4BvY,4686
12
12
  acp/server/__init__.py,sha256=Y0b-MWN_eAL9rOye8OxUt9UUZguWBix4yEdJScXbYNU,95
13
13
  acp/server/__main__.py,sha256=Rf4EUZuiP6AqgMbsw9CvyA4nUmJcKTq1h54GWLAndNY,1328
@@ -21,7 +21,7 @@ acp/server/highlevel/context.py,sha256=1vEoiNhJQ4khbS1Ln5FAFj6rqPsXfiUB47-nDzYK0
21
21
  acp/server/highlevel/exceptions.py,sha256=FQhduu4gNAGIfpW9Twx4LsN8UR2KONdxmubZDbXNDKg,506
22
22
  acp/server/highlevel/server.py,sha256=t82jPgqCm7YZfcxIaeCkLDXVXxUgpPRJJ2e6MtA2baA,24239
23
23
  acp/server/highlevel/agents/__init__.py,sha256=iahXO9_-1Fm0_6HcaFwcgiHTvY3v83GAVzWvVaTFOog,155
24
- acp/server/highlevel/agents/agent_manager.py,sha256=FYRXE-RFWWlkbci8GfF1XS_n5CouGXSdvCw0jBbfcHo,3767
24
+ acp/server/highlevel/agents/agent_manager.py,sha256=ZW5-h07xWwAjJAG1bNLiO4daOqi9QNmD59rj_C2Iabs,3790
25
25
  acp/server/highlevel/agents/base.py,sha256=Ets5AYbkB8gsRVMKaNjVRBonw6sOtAqmxIAti6emlNE,700
26
26
  acp/server/highlevel/agents/templates.py,sha256=gDfWrsO6UjRLAGaJQYxv_KTp0or5a8SBQvXCYjb4oww,761
27
27
  acp/server/highlevel/prompts/__init__.py,sha256=4BsMxoYolpoxg74xkkkzCFL8vvdkLVJ5cIPNs1ND1Jo,99
@@ -50,8 +50,8 @@ acp/shared/memory.py,sha256=RHEnuOVDkT8LrviEvUS5JGl0qs55DA0jcsiuOg82wa8,2802
50
50
  acp/shared/progress.py,sha256=enn_ZLnIPGS8107_rh7JgKvZXcXBUEv9STZdn84wIw0,1033
51
51
  acp/shared/session.py,sha256=VI60P5ecaYQtdllMHpd6uZ3yggTxyGVYRaCKXfpIsm8,15784
52
52
  acp/shared/version.py,sha256=si_GMtVN2H0Y3Rn4QNf8u2V0kZRTzzlMHuCWqDDDK1s,106
53
- acp_sdk-0.0.5.dist-info/METADATA,sha256=hW9vaZ2xe2134yAnjqt_UMm3u7oAGwFIIcTgYqzgcEw,1932
54
- acp_sdk-0.0.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
55
- acp_sdk-0.0.5.dist-info/entry_points.txt,sha256=zJgYH5TTBxQ1oBzEg-0RfEk09Te1W2LkqbyoLpFe9CA,42
56
- acp_sdk-0.0.5.dist-info/licenses/LICENSE,sha256=aLcXJ7ZsI7zZmq4n0iIQ6KYB3EJMtRJGLr7n514PE30,1100
57
- acp_sdk-0.0.5.dist-info/RECORD,,
53
+ acp_sdk-0.0.6.dist-info/METADATA,sha256=UJY8A57Jc5LEV3LfalIZW8JZ1wZwGrJA6Lw8dgDsWcY,1932
54
+ acp_sdk-0.0.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
55
+ acp_sdk-0.0.6.dist-info/entry_points.txt,sha256=zJgYH5TTBxQ1oBzEg-0RfEk09Te1W2LkqbyoLpFe9CA,42
56
+ acp_sdk-0.0.6.dist-info/licenses/LICENSE,sha256=aLcXJ7ZsI7zZmq4n0iIQ6KYB3EJMtRJGLr7n514PE30,1100
57
+ acp_sdk-0.0.6.dist-info/RECORD,,