pygeai 0.2.7b40__py3-none-any.whl → 0.2.7b41__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.
- pygeai/proxy/managers.py +14 -2
- {pygeai-0.2.7b40.dist-info → pygeai-0.2.7b41.dist-info}/METADATA +1 -1
- {pygeai-0.2.7b40.dist-info → pygeai-0.2.7b41.dist-info}/RECORD +7 -7
- {pygeai-0.2.7b40.dist-info → pygeai-0.2.7b41.dist-info}/WHEEL +0 -0
- {pygeai-0.2.7b40.dist-info → pygeai-0.2.7b41.dist-info}/entry_points.txt +0 -0
- {pygeai-0.2.7b40.dist-info → pygeai-0.2.7b41.dist-info}/licenses/LICENSE +0 -0
- {pygeai-0.2.7b40.dist-info → pygeai-0.2.7b41.dist-info}/top_level.txt +0 -0
pygeai/proxy/managers.py
CHANGED
|
@@ -76,16 +76,28 @@ class ServerManager:
|
|
|
76
76
|
alias = self.settings.get_current_alias()
|
|
77
77
|
client = ProxyClient(self.settings.get_api_key(alias), self.settings.get_base_url(alias), self.settings.get_proxy_id(alias))
|
|
78
78
|
Console.write_stdout(f"Registering proxy {self.settings.get_proxy_id(alias)} with name {self.settings.get_proxy_name(alias)} and description {self.settings.get_proxy_description(alias)}")
|
|
79
|
-
client.register(proxy_data=ToolProxyData(
|
|
79
|
+
result = client.register(proxy_data=ToolProxyData(
|
|
80
80
|
id=self.settings.get_proxy_id(alias),
|
|
81
81
|
name=self.settings.get_proxy_name(alias),
|
|
82
82
|
description=self.settings.get_proxy_description(alias),
|
|
83
83
|
affinity=self.settings.get_proxy_affinity(alias),
|
|
84
84
|
tools=list(self.tools.values())
|
|
85
85
|
))
|
|
86
|
-
Console.write_stdout("
|
|
86
|
+
Console.write_stdout("----------------------------------")
|
|
87
|
+
Console.write_stdout(f"Proxy registered successfully:")
|
|
88
|
+
if isinstance(result, dict) and isinstance(result.get("Messages"), list):
|
|
89
|
+
for message in result["Messages"]:
|
|
90
|
+
description = message.get("Description", "")
|
|
91
|
+
message_type = message.get("Type", None)
|
|
92
|
+
|
|
93
|
+
if message_type == 1:
|
|
94
|
+
Console.write_stderr(description)
|
|
95
|
+
elif message_type == 2:
|
|
96
|
+
Console.write_stdout(description)
|
|
97
|
+
Console.write_stdout("----------------------------------")
|
|
87
98
|
return client
|
|
88
99
|
except (ConnectionError, MaxRetryError):
|
|
100
|
+
Console.write_exception(f"Error registering proxy {self.settings.get_proxy_id(alias)}:")
|
|
89
101
|
raise
|
|
90
102
|
|
|
91
103
|
async def execute_tool(
|
|
@@ -186,7 +186,7 @@ pygeai/organization/limits/mappers.py,sha256=nINHaXOnZLnpc39PG3xf_7HX6tS9_-cT-H5
|
|
|
186
186
|
pygeai/proxy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
187
187
|
pygeai/proxy/clients.py,sha256=YPRUS3JAbEXgIGZ_dg8VwEXLxvG_hl51o70uudqjYB0,7857
|
|
188
188
|
pygeai/proxy/config.py,sha256=41fACnnhB21OhnohVPW4sbM8aZbAAEgGo7-dUaM_fpM,5057
|
|
189
|
-
pygeai/proxy/managers.py,sha256=
|
|
189
|
+
pygeai/proxy/managers.py,sha256=KS1gAcNPg-G5TA-iwCC2J5ohp17fmKHKpniG2dxikyc,10892
|
|
190
190
|
pygeai/proxy/servers.py,sha256=c1Z94aXXSlWBcbffc6O1xKwI0aKAacGR3-SI9aeQUFk,11169
|
|
191
191
|
pygeai/proxy/tool.py,sha256=BB6G5cg0768qz1tARB1pL0wBhSKr8SeWVGna0hfGmzg,2245
|
|
192
192
|
pygeai/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -475,9 +475,9 @@ pygeai/vendor/a2a/utils/helpers.py,sha256=6Tbd8SVfXvdNEk6WYmLOjrAxkzFf1aIg8dkFfB
|
|
|
475
475
|
pygeai/vendor/a2a/utils/message.py,sha256=gc_EKO69CJ4HkR76IFgsy-kENJz1dn7CfSgWJWvt-gs,2197
|
|
476
476
|
pygeai/vendor/a2a/utils/task.py,sha256=BYRA_L1HpoUGJAVlyHML0lCM9Awhf2Ovjj7oPFXKbh0,1647
|
|
477
477
|
pygeai/vendor/a2a/utils/telemetry.py,sha256=VvSp1Ztqaobkmq9-3sNhhPEilJS32-JTSfKzegkj6FU,10861
|
|
478
|
-
pygeai-0.2.
|
|
479
|
-
pygeai-0.2.
|
|
480
|
-
pygeai-0.2.
|
|
481
|
-
pygeai-0.2.
|
|
482
|
-
pygeai-0.2.
|
|
483
|
-
pygeai-0.2.
|
|
478
|
+
pygeai-0.2.7b41.dist-info/licenses/LICENSE,sha256=eHfqo7-AWS8cMq0cg03lq7owsLeCmZA-xS5L0kuHnl8,1474
|
|
479
|
+
pygeai-0.2.7b41.dist-info/METADATA,sha256=kpkiLrQNfptTDXaQ21oRLCTgUO-vDTzU8CqYTStgQIg,6883
|
|
480
|
+
pygeai-0.2.7b41.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
481
|
+
pygeai-0.2.7b41.dist-info/entry_points.txt,sha256=OAmwuXVCQBTCE3HeVegVd37hbhCcp9TPahvdrCuMYWw,178
|
|
482
|
+
pygeai-0.2.7b41.dist-info/top_level.txt,sha256=bJFwp2tURmCfB94yXDF7ylvdSJXFDDJsyUOb-7PJgwc,7
|
|
483
|
+
pygeai-0.2.7b41.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|