agentquay-sdk 0.3.0__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.
- agentquay/__init__.py +55 -0
- agentquay/bridge_bin/agentquay-darwin-amd64 +0 -0
- agentquay/bridge_bin/agentquay-darwin-arm64 +0 -0
- agentquay/bridge_bin/agentquay-linux-amd64 +0 -0
- agentquay/bridge_bin/agentquay-windows-amd64.exe +0 -0
- agentquay/client.py +733 -0
- agentquay/confirm.py +130 -0
- agentquay/decorators.py +74 -0
- agentquay/errors.py +63 -0
- agentquay/py.typed +0 -0
- agentquay/schema.py +130 -0
- agentquay/spawn.py +250 -0
- agentquay/tokens.py +75 -0
- agentquay_sdk-0.3.0.dist-info/METADATA +124 -0
- agentquay_sdk-0.3.0.dist-info/RECORD +18 -0
- agentquay_sdk-0.3.0.dist-info/WHEEL +5 -0
- agentquay_sdk-0.3.0.dist-info/licenses/LICENSE +202 -0
- agentquay_sdk-0.3.0.dist-info/top_level.txt +1 -0
agentquay/__init__.py
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"""AgentQuay Python SDK.
|
|
2
|
+
|
|
3
|
+
让 AI Agent 通过标准 MCP 协议发现并调用你的桌面应用方法。
|
|
4
|
+
|
|
5
|
+
快速开始::
|
|
6
|
+
|
|
7
|
+
from agentquay import AgentQuayClient, agent_tool
|
|
8
|
+
|
|
9
|
+
class MusicController:
|
|
10
|
+
@agent_tool("search", description="搜索音乐库")
|
|
11
|
+
def search(self, keyword: str) -> list[dict]:
|
|
12
|
+
return [{"id": "1", "title": "七里香", "artist": "周杰伦"}]
|
|
13
|
+
|
|
14
|
+
async def main():
|
|
15
|
+
client = AgentQuayClient(app_id="music-app", app_name="Music Player")
|
|
16
|
+
client.register_tools(MusicController())
|
|
17
|
+
await client.connect()
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
from .client import AgentQuayClient, LaunchInfo, default_launch_info
|
|
21
|
+
from .decorators import agent_tool
|
|
22
|
+
from .errors import (
|
|
23
|
+
AgentQuayError,
|
|
24
|
+
AuthFailedError,
|
|
25
|
+
BridgeConnectionError,
|
|
26
|
+
BridgeSpawnError,
|
|
27
|
+
BridgeUnavailableError,
|
|
28
|
+
ConfirmationError,
|
|
29
|
+
InvokeTimeoutError,
|
|
30
|
+
ProtocolError,
|
|
31
|
+
RegistrationError,
|
|
32
|
+
ReplacedError,
|
|
33
|
+
ToolCallError,
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
__version__ = "0.3.0"
|
|
37
|
+
|
|
38
|
+
__all__ = [
|
|
39
|
+
"AgentQuayClient",
|
|
40
|
+
"agent_tool",
|
|
41
|
+
"LaunchInfo",
|
|
42
|
+
"default_launch_info",
|
|
43
|
+
"AgentQuayError",
|
|
44
|
+
"BridgeConnectionError",
|
|
45
|
+
"BridgeUnavailableError",
|
|
46
|
+
"BridgeSpawnError",
|
|
47
|
+
"RegistrationError",
|
|
48
|
+
"AuthFailedError",
|
|
49
|
+
"ProtocolError",
|
|
50
|
+
"ReplacedError",
|
|
51
|
+
"ConfirmationError",
|
|
52
|
+
"InvokeTimeoutError",
|
|
53
|
+
"ToolCallError",
|
|
54
|
+
"__version__",
|
|
55
|
+
]
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|