meshagent-cli 0.0.32__tar.gz → 0.0.33__tar.gz
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-0.0.32 → meshagent_cli-0.0.33}/PKG-INFO +5 -5
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/chatbot.py +28 -2
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/services.py +1 -2
- meshagent_cli-0.0.33/meshagent/cli/version.py +1 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent_cli.egg-info/PKG-INFO +5 -5
- meshagent_cli-0.0.33/meshagent_cli.egg-info/requires.txt +8 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/pyproject.toml +4 -4
- meshagent_cli-0.0.32/meshagent/cli/version.py +0 -1
- meshagent_cli-0.0.32/meshagent_cli.egg-info/requires.txt +0 -8
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/README.md +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/__init__.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/agent.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/api_keys.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/async_typer.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/auth.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/auth_async.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/call.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/cli.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/cli_mcp.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/cli_secrets.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/developer.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/helper.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/messaging.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/participant_token.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/projects.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/sessions.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/storage.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/tty.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/voicebot.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent/cli/webhook.py +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent_cli.egg-info/SOURCES.txt +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent_cli.egg-info/dependency_links.txt +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent_cli.egg-info/entry_points.txt +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/meshagent_cli.egg-info/top_level.txt +0 -0
- {meshagent_cli-0.0.32 → meshagent_cli-0.0.33}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: meshagent-cli
|
|
3
|
-
Version: 0.0.
|
|
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.
|
|
14
|
-
Requires-Dist: meshagent-agents~=0.0.
|
|
15
|
-
Requires-Dist: meshagent-tools~=0.0.
|
|
16
|
-
Requires-Dist: meshagent-mcp~=0.0.
|
|
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
|
|
|
@@ -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
|
-
|
|
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
|
|
|
@@ -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
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.0.33"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: meshagent-cli
|
|
3
|
-
Version: 0.0.
|
|
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.
|
|
14
|
-
Requires-Dist: meshagent-agents~=0.0.
|
|
15
|
-
Requires-Dist: meshagent-tools~=0.0.
|
|
16
|
-
Requires-Dist: meshagent-mcp~=0.0.
|
|
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
|
|
|
@@ -11,10 +11,10 @@ keywords = []
|
|
|
11
11
|
dependencies = [
|
|
12
12
|
"typer~=0.15.3",
|
|
13
13
|
"pydantic-yaml~=1.4.0",
|
|
14
|
-
"meshagent-api~=0.0.
|
|
15
|
-
"meshagent-agents~=0.0.
|
|
16
|
-
"meshagent-tools~=0.0.
|
|
17
|
-
"meshagent-mcp~=0.0.
|
|
14
|
+
"meshagent-api~=0.0.33",
|
|
15
|
+
"meshagent-agents~=0.0.33",
|
|
16
|
+
"meshagent-tools~=0.0.33",
|
|
17
|
+
"meshagent-mcp~=0.0.33",
|
|
18
18
|
"supabase~=2.15.1",
|
|
19
19
|
"fastmcp~=2.8.1"
|
|
20
20
|
]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.32"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|