meshagent-cli 0.0.32__py3-none-any.whl → 0.0.33__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-cli might be problematic. Click here for more details.

meshagent/cli/chatbot.py CHANGED
@@ -4,6 +4,7 @@ from rich import print
4
4
  from typing import Annotated, Optional
5
5
  import json
6
6
  import aiohttp
7
+ from meshagent.tools import Toolkit
7
8
  from meshagent.api import RoomClient, ParticipantToken, WebSocketClientProtocol, RoomException
8
9
  from meshagent.api.helpers import meshagent_base_url, websocket_room_url
9
10
  from meshagent.api.services import send_webhook
@@ -12,6 +13,11 @@ from meshagent.cli.helper import get_client, print_json_table, set_active_projec
12
13
  from meshagent.cli.helper import set_active_project, get_active_project, resolve_project_id, resolve_api_key
13
14
  from meshagent.agents.chat import ChatBot
14
15
  from meshagent.openai import OpenAIResponsesAdapter
16
+ from meshagent.openai.tools.responses_adapter import LocalShellTool
17
+
18
+
19
+ from meshagent.agents.chat import ChatBotThreadOpenAIImageGenerationTool
20
+
15
21
  from typing import List
16
22
 
17
23
  from meshagent.api import RequiredToolkit, RequiredSchema
@@ -29,7 +35,8 @@ async def make_call(
29
35
  agent_name: Annotated[str, typer.Option(..., help="Name of the agent to call")],
30
36
  rule: Annotated[List[str], typer.Option("--rule", "-r", help="a system rule")] = [],
31
37
  toolkit: Annotated[List[str], typer.Option("--toolkit", "-t", help="the name or url of a required toolkit")] = [],
32
- schema: Annotated[List[str], typer.Option("--schema", "-s", help="the name or url of a required schema")] = []
38
+ schema: Annotated[List[str], typer.Option("--schema", "-s", help="the name or url of a required schema")] = [],
39
+ image_generation: Annotated[Optional[str], typer.Option(..., help="Name of an image gen provider (openai)")] = None,
33
40
  ):
34
41
  account_client = await get_client()
35
42
  try:
@@ -54,6 +61,8 @@ async def make_call(
54
61
  ) as client:
55
62
 
56
63
  requirements = []
64
+
65
+ toolkits = []
57
66
 
58
67
  for t in toolkit:
59
68
  requirements.append(RequiredToolkit(name=t))
@@ -61,10 +70,27 @@ async def make_call(
61
70
  for t in schema:
62
71
  requirements.append(RequiredSchema(name=t))
63
72
 
64
- bot = ChatBot(
73
+ class CustomChatbot(ChatBot):
74
+
75
+ async def get_thread_toolkits(self, *, thread_context, participant):
76
+ toolkits = await super().get_thread_toolkits(thread_context=thread_context, participant=participant)
77
+
78
+ thread_toolkit = Toolkit(name="thread_toolkit", tools=[])
79
+ if image_generation != None:
80
+ if image_generation == "openai":
81
+ print("adding openai image gen to thread")
82
+ thread_toolkit.tools.append(ChatBotThreadOpenAIImageGenerationTool(thread_context=thread_context, partial_images=3))
83
+ else:
84
+ raise Exception("image-generation must be openai")
85
+ toolkits.append(thread_toolkit)
86
+ return toolkits
87
+
88
+
89
+ bot = CustomChatbot(
65
90
  llm_adapter=OpenAIResponsesAdapter(),
66
91
  name=agent_name,
67
92
  requires=requirements,
93
+ toolkits=toolkits,
68
94
  rules=rule if len(rule) > 0 else None
69
95
  )
70
96
 
meshagent/cli/services.py CHANGED
@@ -14,8 +14,7 @@ from meshagent.cli import async_typer
14
14
  from meshagent.cli.helper import get_client, print_json_table, resolve_project_id, resolve_api_key
15
15
  from meshagent.api import ParticipantToken, RoomClient, WebSocketClientProtocol, websocket_protocol, websocket_room_url, meshagent_base_url
16
16
  # Pydantic basemodels
17
- from meshagent.api.accounts_client import Service, Port
18
- from meshagent.cloud.accounts import Services
17
+ from meshagent.api.accounts_client import Service, Port, Services
19
18
 
20
19
  app = async_typer.AsyncTyper()
21
20
 
meshagent/cli/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.0.32"
1
+ __version__ = "0.0.33"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meshagent-cli
3
- Version: 0.0.32
3
+ Version: 0.0.33
4
4
  Summary: CLI for Meshagent
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Documentation, https://docs.meshagent.com
@@ -10,10 +10,10 @@ Requires-Python: >=3.12
10
10
  Description-Content-Type: text/markdown
11
11
  Requires-Dist: typer~=0.15.3
12
12
  Requires-Dist: pydantic-yaml~=1.4.0
13
- Requires-Dist: meshagent-api~=0.0.32
14
- Requires-Dist: meshagent-agents~=0.0.32
15
- Requires-Dist: meshagent-tools~=0.0.32
16
- Requires-Dist: meshagent-mcp~=0.0.32
13
+ Requires-Dist: meshagent-api~=0.0.33
14
+ Requires-Dist: meshagent-agents~=0.0.33
15
+ Requires-Dist: meshagent-tools~=0.0.33
16
+ Requires-Dist: meshagent-mcp~=0.0.33
17
17
  Requires-Dist: supabase~=2.15.1
18
18
  Requires-Dist: fastmcp~=2.8.1
19
19
 
@@ -5,7 +5,7 @@ meshagent/cli/async_typer.py,sha256=GCeSefBDbpd-V4V8LrvHGUTBMth3HspVMfFa-HUZ0cg,
5
5
  meshagent/cli/auth.py,sha256=pZQwYTNWQOWTqpyDrkQLNKuidH-wn9GNE5yEJoxn3-g,767
6
6
  meshagent/cli/auth_async.py,sha256=LArKxTxQAPmItv0JaGkW3Ybutl6MVmb6_EeSjI18IbI,4001
7
7
  meshagent/cli/call.py,sha256=-6Bf5PCVcsuLMgDpG1g3GiY3S5rgs_-CWgWX4C6AXwg,4739
8
- meshagent/cli/chatbot.py,sha256=ylW_jSvY1OWDs7LPsyEIz8-x_BaInnIgmpcQZqwOdmg,3016
8
+ meshagent/cli/chatbot.py,sha256=4RLapVFIcNY7E6XI0ni9yxnaPoSjEOUBHrxu6L3Xrww,4299
9
9
  meshagent/cli/cli.py,sha256=jogOzdPS1u6TXURLq85x9vZDuiwcJ8Brn7joC8GymlE,2128
10
10
  meshagent/cli/cli_mcp.py,sha256=p5xSw62wlZ4DNslMbdygSKwvPQTfYSsMFx0bY_m9S4o,9584
11
11
  meshagent/cli/cli_secrets.py,sha256=U0kdzN3zt7JIqzdRLynAjxdvAsI0enesBd_m7TeXjnQ,13629
@@ -14,15 +14,15 @@ meshagent/cli/helper.py,sha256=hcY6C5BqGnYmwFVIG7nS9NPIZXbdpOoEna-t0mYmHGY,4632
14
14
  meshagent/cli/messaging.py,sha256=cU6LIK6gwOveLo_x2x3iWW5rC4MhDpwp2hvehAkvybI,6068
15
15
  meshagent/cli/participant_token.py,sha256=uCGmlUgNOfarYGkDZpzreXwnv9AJrM76tu5Lt690vYU,1456
16
16
  meshagent/cli/projects.py,sha256=EQfbO9_GQKkjlFcaSHQfIxqIxsmFR3FbH5Fd17I5IPk,3305
17
- meshagent/cli/services.py,sha256=Vzax2He-MygHq-HVTyHBCDlRHUeW963tlrRezvUImuM,11277
17
+ meshagent/cli/services.py,sha256=pMAyLg0eEO33fhRiin5q0KbNVoTzQyT5wSDgvDqeRYM,11241
18
18
  meshagent/cli/sessions.py,sha256=WWvuztYqRfthSq6ztwL_eQ_sz9JRc33jcN6p7YyM_Fs,782
19
19
  meshagent/cli/storage.py,sha256=BsagaJfThrUWqXFyAk9IvQtUuDAMckE2mffZ_peozMo,33555
20
20
  meshagent/cli/tty.py,sha256=F1-ZKEl-kfKSFPvwsX8S99E9xbq7WyApbZGLs5_I-Bw,4081
21
- meshagent/cli/version.py,sha256=WKDnjJM7gYpD9fIwhK2qAZICJAT2ndquQ6VcOar074Y,23
21
+ meshagent/cli/version.py,sha256=AGWXI5DVsNfiiV5VgHNNK08ZPMOHqnJB3xLlEoyC3hg,23
22
22
  meshagent/cli/voicebot.py,sha256=KnWg1OeIPqxn-jfubs6G5FdnNLyJD64RzV4bSlhtv5s,3419
23
23
  meshagent/cli/webhook.py,sha256=KBl8U1TcOX3z2uoyH4YMuUuw0vSVX7xpRxYvzxI5c-Y,2811
24
- meshagent_cli-0.0.32.dist-info/METADATA,sha256=KeGDpUHa06uYgoBJ-2i2ibT9FwxT05RBoQJuxjFJu7s,635
25
- meshagent_cli-0.0.32.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
- meshagent_cli-0.0.32.dist-info/entry_points.txt,sha256=WRcGGN4vMtvC5Pgl3uRFqsJiQXNoHuLLa-TCSY3gAhQ,52
27
- meshagent_cli-0.0.32.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
28
- meshagent_cli-0.0.32.dist-info/RECORD,,
24
+ meshagent_cli-0.0.33.dist-info/METADATA,sha256=Nk8RMhD_rZHBJ9JME_atAXt3fhUHGadZ5-NpQk-HqGc,635
25
+ meshagent_cli-0.0.33.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
+ meshagent_cli-0.0.33.dist-info/entry_points.txt,sha256=WRcGGN4vMtvC5Pgl3uRFqsJiQXNoHuLLa-TCSY3gAhQ,52
27
+ meshagent_cli-0.0.33.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
28
+ meshagent_cli-0.0.33.dist-info/RECORD,,