meshagent-agents 0.0.10__py3-none-any.whl → 0.0.14__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.

Potentially problematic release.


This version of meshagent-agents might be problematic. Click here for more details.

meshagent/agents/agent.py CHANGED
@@ -17,7 +17,7 @@ import asyncio
17
17
  from typing import Optional, Dict, Callable, Coroutine
18
18
 
19
19
  logger = logging.getLogger("agent")
20
- logger.setLevel(logging.INFO)
20
+
21
21
 
22
22
  class AgentException(RoomException):
23
23
  pass
meshagent/agents/chat.py CHANGED
@@ -13,9 +13,7 @@ import datetime
13
13
  import json
14
14
  from openai.types.responses import ResponseStreamEvent
15
15
 
16
- logging.basicConfig()
17
16
  logger = logging.getLogger("chat")
18
- logger.setLevel(logging.INFO)
19
17
 
20
18
 
21
19
  # todo: thread should stop when participant stops?
@@ -166,7 +164,6 @@ class ChatBot(SingleRoomAgent):
166
164
  return await self.room.sync.open(path=path)
167
165
 
168
166
  async def close_thread(self, *, path: str):
169
-
170
167
  return await self.room.sync.close(path=path)
171
168
 
172
169
 
@@ -362,14 +359,16 @@ class ChatBot(SingleRoomAgent):
362
359
 
363
360
 
364
361
  finally:
365
-
366
- self.room.developer.log_nowait(type="chatbot.thread.ended", data={ "path" : path })
367
-
362
+
363
+
368
364
  llm_messages.close()
369
365
 
370
- if thread != None:
371
- await self.close_thread(path=path)
372
-
366
+ if self.room != None:
367
+ self.room.developer.log_nowait(type="chatbot.thread.ended", data={ "path" : path })
368
+
369
+ if thread != None:
370
+ await self.close_thread(path=path)
371
+
373
372
 
374
373
  def _get_message_channel(self, participant_id: str) -> Chan[RoomMessage]:
375
374
  if participant_id not in self._message_channels:
@@ -13,7 +13,7 @@ from typing import Callable, Optional
13
13
  from .agent import TaskRunner
14
14
 
15
15
  logger = logging.getLogger("hosting")
16
- logger.setLevel(logging.INFO)
16
+
17
17
 
18
18
 
19
19
  class RemoteTaskRunnerServer[T:TaskRunner](WebhookServer):
@@ -41,7 +41,7 @@ def _async_debounce(wait):
41
41
  return decorator
42
42
 
43
43
  logger = logging.getLogger("indexer")
44
- logger.setLevel(logging.INFO)
44
+
45
45
 
46
46
  class Chunk:
47
47
  def __init__(self, *, text: str, start: int, end: int):
@@ -11,7 +11,7 @@ from meshagent.api.websocket_protocol import WebSocketClientProtocol
11
11
  from typing import Optional
12
12
 
13
13
  logger = logging.getLogger(__name__)
14
- logger.setLevel(logging.INFO)
14
+
15
15
 
16
16
  from meshagent.agents.agent import TaskRunner, AgentChatContext, AgentCallContext
17
17
 
@@ -122,9 +122,9 @@ def reasoning_schema(*, description: str, elements: Optional[list[ElementType]]
122
122
 
123
123
  from meshagent.api.schema_util import prompt_schema
124
124
  import logging
125
- logging.basicConfig()
125
+
126
126
  logger = logging.getLogger("planning_agent")
127
- logger.setLevel(logging.INFO)
127
+
128
128
 
129
129
 
130
130
  class PlanningWriter(Writer):
@@ -18,7 +18,7 @@ from typing import Sequence
18
18
  import pydantic_ai
19
19
 
20
20
  logger = logging.getLogger("pydantic_agent")
21
- logger.setLevel(logging.INFO)
21
+
22
22
 
23
23
 
24
24
  def get_pydantic_ai_tool(*, room: RoomClient, tool: Tool, response_adapter: ToolResponseAdapter) -> pydantic_ai.tools.Tool:
@@ -8,9 +8,9 @@ from typing import Optional
8
8
  from meshagent.api import Requirement
9
9
 
10
10
  import logging
11
- logging.basicConfig()
11
+
12
12
  logger = logging.getLogger("planning_agent")
13
- logger.setLevel(logging.INFO)
13
+
14
14
 
15
15
 
16
16
  class SingleShotWriter(Writer):
@@ -1 +1 @@
1
- __version__ = "0.0.10"
1
+ __version__ = "0.0.14"
@@ -9,9 +9,8 @@ import json
9
9
 
10
10
  import logging
11
11
 
12
- logging.basicConfig()
13
12
  logger = logging.getLogger("chat")
14
- logger.setLevel(logging.INFO)
13
+
15
14
 
16
15
 
17
16
  # todo: thread should stop when participant stops?
@@ -8,9 +8,8 @@ import asyncio
8
8
  import logging
9
9
  from meshagent.agents.hosting import TaskRunner
10
10
 
11
- logging.basicConfig()
12
11
  logger = logging.getLogger("writer_agent")
13
- logger.setLevel(logging.INFO)
12
+
14
13
 
15
14
  class WriterContext:
16
15
  def __init__(self, room: RoomClient, document: Document, call_context: AgentCallContext, path: str):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meshagent-agents
3
- Version: 0.0.10
3
+ Version: 0.0.14
4
4
  Summary: Agent Building Blocks for Meshagent
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Documentation, https://meshagent.com
@@ -12,9 +12,9 @@ License-File: LICENSE
12
12
  Requires-Dist: pyjwt~=2.10.1
13
13
  Requires-Dist: pytest~=8.3.5
14
14
  Requires-Dist: pytest-asyncio~=0.26.0
15
- Requires-Dist: meshagent-api~=0.0.10
16
- Requires-Dist: meshagent-tools~=0.0.10
17
- Requires-Dist: meshagent-openai~=0.0.10
15
+ Requires-Dist: meshagent-api~=0.0.14
16
+ Requires-Dist: meshagent-tools~=0.0.14
17
+ Requires-Dist: meshagent-openai~=0.0.14
18
18
  Requires-Dist: pydantic~=2.11.1
19
19
  Requires-Dist: pydantic-ai~=0.0.48
20
20
  Requires-Dist: chonkie~=0.5.1
@@ -0,0 +1,23 @@
1
+ meshagent/agents/__init__.py,sha256=S83622vDM9hWErcgfwZg8lJT2ncu00OEgnxoIbY3VcM,376
2
+ meshagent/agents/adapter.py,sha256=_83Q2XiA8e6Xh37xYnJ9z75AbDWskR-mmKH-LLq6mpA,1318
3
+ meshagent/agents/agent.py,sha256=4U9R2hcOaXhIF1kaWCDf3P2haHuO-oA6nU6wqUTSVe8,19060
4
+ meshagent/agents/chat.py,sha256=FISGGEDbz13I03oJxqMoxkZmbHBEsoId6M_5H0St4jY,17957
5
+ meshagent/agents/context.py,sha256=6eFK7wizjzZmZyhbqwazlT_E_e_Cpb17Qa3tBk2BJzw,3804
6
+ meshagent/agents/development.py,sha256=04VYL1Q_BWUTQeVuiVOpyjcs8bzUIX1eQ4VyTtjc5s0,926
7
+ meshagent/agents/hosting.py,sha256=8DNBJ2RqFBlM_FXGwgvdos5tPPIxWdW1f8W2k-Z5Olw,4935
8
+ meshagent/agents/indexer.py,sha256=ajZ6OfpShYiBUdzxBUQU5dhLykD96srmgXt5r88uPMc,19409
9
+ meshagent/agents/listener.py,sha256=T205pkkkJyOEDjKpSTrsA1XToGLWfwje_84SQu5V-vM,5359
10
+ meshagent/agents/planning.py,sha256=g7_yudDDmUR1OKnvGgZEQQ8_fdnl5PhmFZw3Pbdft5A,22908
11
+ meshagent/agents/prompt.py,sha256=sidiyLLC6Lr9KO3cUTKttd2oROlcizle_4iKoaNrfhA,1864
12
+ meshagent/agents/pydantic.py,sha256=My9sv1A56unA0qVoPSH-mYtxcgl0AKyxFgyOM70pjLM,6062
13
+ meshagent/agents/single_shot_writer.py,sha256=QsGvTIw1qtp8nGLfzuJwdZj6ucY4cW9rdecqNwv83FA,3355
14
+ meshagent/agents/thread_schema.py,sha256=mmm1p7A6Eux98xsNXwGSNq_DjkMn3hsyaWsplc6akCM,2575
15
+ meshagent/agents/utils.py,sha256=Vjl1CR_K7VbTl0RRBnswfxxndhl8oJMDdOxPlOsC9Fk,1443
16
+ meshagent/agents/version.py,sha256=ir5OUyuOjI03Cve_ImDXlHepAUFYUvPzr6NsW5WU7ho,22
17
+ meshagent/agents/worker.py,sha256=3y7D59ea7c09bwMFAjw1SUspAxe1Gzsta7lzsoyJgKA,3901
18
+ meshagent/agents/writer.py,sha256=2Nk52JcjdRz3EnGBO4EHnv49QzByWiije1LKMNuCAIo,2687
19
+ meshagent_agents-0.0.14.dist-info/licenses/LICENSE,sha256=eTt0SPW-sVNdkZe9PS_S8WfCIyLjRXRl7sUBWdlteFg,10254
20
+ meshagent_agents-0.0.14.dist-info/METADATA,sha256=EaU85nV3Yqo4uZhWGcLguV9k3j1ZP62lofCtdu015XY,777
21
+ meshagent_agents-0.0.14.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
22
+ meshagent_agents-0.0.14.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
23
+ meshagent_agents-0.0.14.dist-info/RECORD,,
@@ -1,23 +0,0 @@
1
- meshagent/agents/__init__.py,sha256=S83622vDM9hWErcgfwZg8lJT2ncu00OEgnxoIbY3VcM,376
2
- meshagent/agents/adapter.py,sha256=_83Q2XiA8e6Xh37xYnJ9z75AbDWskR-mmKH-LLq6mpA,1318
3
- meshagent/agents/agent.py,sha256=yQWgzv2k9tHsGwTPbU3AkE58q0_nURYLd2wMjI4o6og,19089
4
- meshagent/agents/chat.py,sha256=7BfNM976_VXm5s5OgKu2bxZdrstqifrs9mpGax5OPDY,17938
5
- meshagent/agents/context.py,sha256=6eFK7wizjzZmZyhbqwazlT_E_e_Cpb17Qa3tBk2BJzw,3804
6
- meshagent/agents/development.py,sha256=04VYL1Q_BWUTQeVuiVOpyjcs8bzUIX1eQ4VyTtjc5s0,926
7
- meshagent/agents/hosting.py,sha256=YsEHjFcikzPSedGQ9ZqsffblC8A-L6kgKBp85FcN8-I,4964
8
- meshagent/agents/indexer.py,sha256=P25QsxNh8B26wZSVs9t5wWS7xd3FF7ocXXq4PQvscus,19438
9
- meshagent/agents/listener.py,sha256=kKFaWPmvmk1aCAlI55AAU3-QnOWCSZbf621xZz10rbs,5388
10
- meshagent/agents/planning.py,sha256=GLP97e_u7NmG1HjsucPpZndqiFPYVTEAYDdu1dQu5Go,22958
11
- meshagent/agents/prompt.py,sha256=sidiyLLC6Lr9KO3cUTKttd2oROlcizle_4iKoaNrfhA,1864
12
- meshagent/agents/pydantic.py,sha256=BXALTyj8O9vV-eY5ejiJoYIY4zVl9AKetsqGUxixbiY,6091
13
- meshagent/agents/single_shot_writer.py,sha256=CJ7KgekR6JUSbYZ8OdYmhBPPjEWDYNtbIjR4g1wkWAA,3405
14
- meshagent/agents/thread_schema.py,sha256=mmm1p7A6Eux98xsNXwGSNq_DjkMn3hsyaWsplc6akCM,2575
15
- meshagent/agents/utils.py,sha256=Vjl1CR_K7VbTl0RRBnswfxxndhl8oJMDdOxPlOsC9Fk,1443
16
- meshagent/agents/version.py,sha256=LFz870IUmDnNaRKCPtUWH5KfC_p8W1BKvQfJgR-6IFM,22
17
- meshagent/agents/worker.py,sha256=Te3uK5y31cvtVajf9gFuMT0a-PKkMXBSWEEv01MnKcI,3952
18
- meshagent/agents/writer.py,sha256=Ff8RVxdpFNKmo6zxaGkuFMz8MIKumdM0FIXX_6lbZ6Q,2738
19
- meshagent_agents-0.0.10.dist-info/licenses/LICENSE,sha256=eTt0SPW-sVNdkZe9PS_S8WfCIyLjRXRl7sUBWdlteFg,10254
20
- meshagent_agents-0.0.10.dist-info/METADATA,sha256=OAu3_kVGz6SKHFaq72j2dPu3Ay1PdTSuswZE4siYJH8,777
21
- meshagent_agents-0.0.10.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
22
- meshagent_agents-0.0.10.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
23
- meshagent_agents-0.0.10.dist-info/RECORD,,