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 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
+ ]