meshagent-agents 0.0.34__py3-none-any.whl → 0.0.35__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.
meshagent/agents/agent.py CHANGED
@@ -174,8 +174,7 @@ class SingleRoomAgent(Agent):
174
174
  installed = True
175
175
 
176
176
  schema_path = f".schemas/{requirement.name}.json"
177
-
178
-
177
+
179
178
  if await self._room.storage.exists(path=schema_path):
180
179
  # Schema is already in the room
181
180
  pass
meshagent/agents/chat.py CHANGED
@@ -15,6 +15,7 @@ import json
15
15
  from typing import Literal, Optional
16
16
  import base64
17
17
  from openai.types.responses import ResponseStreamEvent
18
+ from asyncio import CancelledError
18
19
 
19
20
  from opentelemetry import trace
20
21
 
@@ -310,6 +311,8 @@ class ChatBot(SingleRoomAgent):
310
311
  def done_processing_llm_events(task: asyncio.Task):
311
312
  try:
312
313
  task.result()
314
+ except CancelledError as e:
315
+ pass
313
316
  except Exception as e:
314
317
  logger.error("error sending delta", exc_info=e)
315
318
 
@@ -571,6 +574,8 @@ class ChatBot(SingleRoomAgent):
571
574
  self._message_channels.pop(message.from_participant_id)
572
575
  try:
573
576
  task.result()
577
+ except CancelledError as e:
578
+ pass
574
579
  except Exception as e:
575
580
  logger.error(f"The chat thread ended with an error {e}", exc_info=e)
576
581
 
@@ -39,7 +39,7 @@ class RemoteTaskRunnerServer[T:TaskRunner](WebhookServer):
39
39
 
40
40
  def on_message(message: RoomMessage):
41
41
  if message.type == "dismiss":
42
- logger.info(f"dismissed by {message.from_participant_id}")
42
+ logger.info(f"dismissed task runner by {message.from_participant_id}")
43
43
  dismissed.set_result(True)
44
44
 
45
45
  room.messaging.on("message", on_message)
@@ -81,7 +81,7 @@ class RemoteAgentServer[T:SingleRoomAgent](WebhookServer):
81
81
 
82
82
  async def _spawn(self, *, room_name: str, room_url: str, token: str, arguments: Optional[dict] = None):
83
83
 
84
- logger.info(f"room: {room_name} url: {room_url} token: {token} arguments: {arguments}")
84
+ logger.info(f"spawning agent on room: {room_name} url: {room_url} arguments: {arguments}")
85
85
  agent = self._create_agent(arguments=arguments)
86
86
 
87
87
  async def run():
@@ -91,7 +91,7 @@ class RemoteAgentServer[T:SingleRoomAgent](WebhookServer):
91
91
 
92
92
  def on_message(message: RoomMessage):
93
93
  if message.type == "dismiss":
94
- logger.info(f"dismissed by {message.from_participant_id}")
94
+ logger.info(f"dismissed agent by {message.from_participant_id}")
95
95
  dismissed.set_result(True)
96
96
 
97
97
  room.messaging.on("message", on_message)
@@ -1 +1 @@
1
- __version__ = "0.0.34"
1
+ __version__ = "0.0.35"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meshagent-agents
3
- Version: 0.0.34
3
+ Version: 0.0.35
4
4
  Summary: Agent Building Blocks for Meshagent
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Documentation, https://docs.meshagent.com
@@ -9,23 +9,22 @@ Project-URL: Source, https://www.meshagent.com
9
9
  Requires-Python: >=3.12
10
10
  Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
- Requires-Dist: pyjwt~=2.10.1
13
- Requires-Dist: pytest~=8.3.5
14
- Requires-Dist: pytest-asyncio~=0.26.0
15
- Requires-Dist: meshagent-api~=0.0.34
16
- Requires-Dist: meshagent-tools~=0.0.34
17
- Requires-Dist: meshagent-openai~=0.0.34
18
- Requires-Dist: pydantic~=2.11.1
19
- Requires-Dist: pydantic-ai~=0.0.48
12
+ Requires-Dist: pyjwt~=2.10
13
+ Requires-Dist: pytest~=8.3
14
+ Requires-Dist: pytest-asyncio~=0.26
15
+ Requires-Dist: meshagent-api~=0.0.35
16
+ Requires-Dist: meshagent-tools~=0.0.35
17
+ Requires-Dist: meshagent-openai~=0.0.35
18
+ Requires-Dist: pydantic~=2.11
20
19
  Requires-Dist: opentelemetry-distro~=0.54b1
21
20
  Provides-Extra: all
22
- Requires-Dist: meshagent-api[all]~=0.0.34; extra == "all"
21
+ Requires-Dist: meshagent-api[all]~=0.0.35; extra == "all"
23
22
  Requires-Dist: chonkie~=0.5.1; extra == "all"
24
23
  Requires-Dist: chonkie[semantic]~=0.5.1; extra == "all"
25
24
  Requires-Dist: chonkie[openai]~=0.5.1; extra == "all"
26
25
  Requires-Dist: aiosmtplib~=4.0.1; extra == "all"
27
26
  Provides-Extra: sync
28
- Requires-Dist: meshagent-api[sync]~=0.0.34; extra == "sync"
27
+ Requires-Dist: meshagent-api[sync]~=0.0.35; extra == "sync"
29
28
  Provides-Extra: mail
30
29
  Requires-Dist: aiosmtplib~=4.0.1; extra == "mail"
31
30
  Provides-Extra: rag
@@ -1,10 +1,10 @@
1
1
  meshagent/agents/__init__.py,sha256=S83622vDM9hWErcgfwZg8lJT2ncu00OEgnxoIbY3VcM,376
2
2
  meshagent/agents/adapter.py,sha256=_83Q2XiA8e6Xh37xYnJ9z75AbDWskR-mmKH-LLq6mpA,1318
3
- meshagent/agents/agent.py,sha256=b3Mr3nMpCxJLgy-TqyrdWHMqOSnHhPZocoe7U47rI6A,19419
4
- meshagent/agents/chat.py,sha256=Tu_9JWoTKRACu8IZEUaPKEisz_48kk4lKSz97CESVkM,24627
3
+ meshagent/agents/agent.py,sha256=b41t1XLG5QYxjlWrkf7EbR7ecVfwcTtXMe8p3N9_32Y,19419
4
+ meshagent/agents/chat.py,sha256=Fpk-3RCS6xo84Ycu_PdkpSkli_Lsbrur67tOwuTBe7c,24816
5
5
  meshagent/agents/context.py,sha256=6eFK7wizjzZmZyhbqwazlT_E_e_Cpb17Qa3tBk2BJzw,3804
6
6
  meshagent/agents/development.py,sha256=04VYL1Q_BWUTQeVuiVOpyjcs8bzUIX1eQ4VyTtjc5s0,926
7
- meshagent/agents/hosting.py,sha256=O_extmPJ9J6hKSD8dGED35F75PAbRJa0VEPC-67sLqc,4961
7
+ meshagent/agents/hosting.py,sha256=1vzr6aV_HPJGzGPkQdLgt4CqvDAgpHdBEmSym_0r3j8,4982
8
8
  meshagent/agents/indexer.py,sha256=Lz7hJvC7hbvnmiFQLEzmakw_1OPh93pp96iSwIv1fQc,19410
9
9
  meshagent/agents/listener.py,sha256=39u20ZwTNUVR0CRUOi4CTgBreg2ZPbrHQOohwjsfijg,5359
10
10
  meshagent/agents/mail.py,sha256=bDQdJphKJr0Sl1_XiVhdd1J7E2DBqbjvxvnIVxGt5UU,10951
@@ -14,7 +14,7 @@ meshagent/agents/pydantic.py,sha256=My9sv1A56unA0qVoPSH-mYtxcgl0AKyxFgyOM70pjLM,
14
14
  meshagent/agents/single_shot_writer.py,sha256=QsGvTIw1qtp8nGLfzuJwdZj6ucY4cW9rdecqNwv83FA,3355
15
15
  meshagent/agents/thread_schema.py,sha256=-KGAMNxQsVuXpvc0avV-OYHe2LMXpjTu5PyQ-1nBnyE,2667
16
16
  meshagent/agents/utils.py,sha256=upMbvG4KODZijeTO3IdW4GgzFPz4jXTzNhZBDmtroic,1431
17
- meshagent/agents/version.py,sha256=ws3BQQ_HUvFzVrPwfmrsx1ZpX_ij4MUX-YY3k_0qRB8,22
17
+ meshagent/agents/version.py,sha256=A_dNBiAz5rVHCK_jLK2zNNXHjlhj88e1lDhHddCsS6g,22
18
18
  meshagent/agents/worker.py,sha256=G2Q3UpUCQQ8GtPK5_LW4q8uDOyuJXJM_zdRPsx4puck,3260
19
19
  meshagent/agents/writer.py,sha256=2Nk52JcjdRz3EnGBO4EHnv49QzByWiije1LKMNuCAIo,2687
20
20
  meshagent/agents/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -23,8 +23,8 @@ meshagent/agents/schemas/gallery.py,sha256=fzAdlDrn_dJz4FDPkSTH9ir7QmRpV8wFjj6RT
23
23
  meshagent/agents/schemas/presentation.py,sha256=DreBXAU7Lx92NBPTlEOZq1gdaRs0OkZrJgPT5N7fYH4,1265
24
24
  meshagent/agents/schemas/schema.py,sha256=O52T5nUGRNQ8AsamZ_W_IQ8WRDqSBo3vWFDSQcC7Lcg,4473
25
25
  meshagent/agents/schemas/super_editor_document.py,sha256=lFpbZn_s_6hchimddzpnGneJ7LaB6dTN_AnLZsx2r9c,1469
26
- meshagent_agents-0.0.34.dist-info/licenses/LICENSE,sha256=eTt0SPW-sVNdkZe9PS_S8WfCIyLjRXRl7sUBWdlteFg,10254
27
- meshagent_agents-0.0.34.dist-info/METADATA,sha256=Fx7o0qeJobqf8f79Gm1a4psAEjx7RyiJm2_pLlmrAy4,1351
28
- meshagent_agents-0.0.34.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
29
- meshagent_agents-0.0.34.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
30
- meshagent_agents-0.0.34.dist-info/RECORD,,
26
+ meshagent_agents-0.0.35.dist-info/licenses/LICENSE,sha256=eTt0SPW-sVNdkZe9PS_S8WfCIyLjRXRl7sUBWdlteFg,10254
27
+ meshagent_agents-0.0.35.dist-info/METADATA,sha256=L2DCPlBxBPbuSeHFiLg6QZgnC9Q5hZpIbLiajJtxm4s,1308
28
+ meshagent_agents-0.0.35.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
29
+ meshagent_agents-0.0.35.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
30
+ meshagent_agents-0.0.35.dist-info/RECORD,,