sunholo 0.143.9__py3-none-any.whl → 0.143.11__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.
@@ -1037,13 +1037,44 @@ if __name__ == "__main__":
1037
1037
  try:
1038
1038
  # Handle different MCP methods
1039
1039
  if method == "tools/list":
1040
- # Get the server and call list_tools handler
1041
- server = self.vac_mcp_server.get_server()
1042
- tools = await server._request_handlers["tools/list"]()
1040
+ # Create mock tools list based on VACMCPServer capabilities
1041
+ tools = [
1042
+ {
1043
+ "name": "vac_stream",
1044
+ "description": "Stream responses from a Sunholo VAC (Virtual Agent Computer)",
1045
+ "inputSchema": {
1046
+ "type": "object",
1047
+ "properties": {
1048
+ "vector_name": {"type": "string", "description": "Name of the VAC to interact with"},
1049
+ "user_input": {"type": "string", "description": "The user's question or input"},
1050
+ "chat_history": {"type": "array", "description": "Previous conversation history", "default": []},
1051
+ "stream_wait_time": {"type": "number", "description": "Time to wait between stream chunks", "default": 7},
1052
+ "stream_timeout": {"type": "number", "description": "Maximum time to wait for response", "default": 120}
1053
+ },
1054
+ "required": ["vector_name", "user_input"]
1055
+ }
1056
+ }
1057
+ ]
1058
+
1059
+ # Add vac_query tool if interpreter is available
1060
+ if self.vac_mcp_server.vac_interpreter:
1061
+ tools.append({
1062
+ "name": "vac_query",
1063
+ "description": "Query a Sunholo VAC (non-streaming)",
1064
+ "inputSchema": {
1065
+ "type": "object",
1066
+ "properties": {
1067
+ "vector_name": {"type": "string", "description": "Name of the VAC to interact with"},
1068
+ "user_input": {"type": "string", "description": "The user's question or input"},
1069
+ "chat_history": {"type": "array", "description": "Previous conversation history", "default": []}
1070
+ },
1071
+ "required": ["vector_name", "user_input"]
1072
+ }
1073
+ })
1043
1074
 
1044
1075
  return {
1045
1076
  "jsonrpc": "2.0",
1046
- "result": {"tools": [tool.model_dump() for tool in tools]},
1077
+ "result": {"tools": tools},
1047
1078
  "id": request_id
1048
1079
  }
1049
1080
 
@@ -1055,8 +1086,13 @@ if __name__ == "__main__":
1055
1086
  if not tool_name:
1056
1087
  raise ValueError("Missing tool name")
1057
1088
 
1058
- server = self.vac_mcp_server.get_server()
1059
- result = await server._request_handlers["tools/call"](tool_name, arguments)
1089
+ # Call the appropriate handler method
1090
+ if tool_name == "vac_stream":
1091
+ result = await self.vac_mcp_server._handle_vac_stream(arguments)
1092
+ elif tool_name == "vac_query" and self.vac_mcp_server.vac_interpreter:
1093
+ result = await self.vac_mcp_server._handle_vac_query(arguments)
1094
+ else:
1095
+ raise ValueError(f"Unknown tool: {tool_name}")
1060
1096
 
1061
1097
  return {
1062
1098
  "jsonrpc": "2.0",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sunholo
3
- Version: 0.143.9
3
+ Version: 0.143.11
4
4
  Summary: AI DevOps - a package to help deploy GenAI to the Cloud.
5
5
  Author-email: Holosun ApS <multivac@sunholo.com>
6
6
  License: Apache License, Version 2.0
@@ -18,7 +18,7 @@ sunholo/agents/fastapi/base.py,sha256=W-cyF8ZDUH40rc-c-Apw3-_8IIi2e4Y9qRtnoVnsc1
18
18
  sunholo/agents/fastapi/qna_routes.py,sha256=lKHkXPmwltu9EH3RMwmD153-J6pE7kWQ4BhBlV3to-s,3864
19
19
  sunholo/agents/flask/__init__.py,sha256=dEoByI3gDNUOjpX1uVKP7uPjhfFHJubbiaAv3xLopnk,63
20
20
  sunholo/agents/flask/base.py,sha256=vnpxFEOnCmt9humqj-jYPLfJcdwzsop9NorgkJ-tSaU,1756
21
- sunholo/agents/flask/vac_routes.py,sha256=WfE9ga_EZq_dpW4S5aYyj7i8r59VO5FpDFdtVtqKVKI,53604
21
+ sunholo/agents/flask/vac_routes.py,sha256=_JDSUUOCA4JajE-uRMX_qaPKtRxKtnABLOqRbq0SfWc,56254
22
22
  sunholo/archive/__init__.py,sha256=qNHWm5rGPVOlxZBZCpA1wTYPbalizRT7f8X4rs2t290,31
23
23
  sunholo/archive/archive.py,sha256=PxVfDtO2_2ZEEbnhXSCbXLdeoHoQVImo4y3Jr2XkCFY,1204
24
24
  sunholo/auth/__init__.py,sha256=TeP-OY0XGxYV_8AQcVGoh35bvyWhNUcMRfhuD5l44Sk,91
@@ -175,9 +175,9 @@ sunholo/vertex/init.py,sha256=1OQwcPBKZYBTDPdyU7IM4X4OmiXLdsNV30C-fee2scQ,2875
175
175
  sunholo/vertex/memory_tools.py,sha256=tBZxqVZ4InTmdBvLlOYwoSEWu4-kGquc-gxDwZCC4FA,7667
176
176
  sunholo/vertex/safety.py,sha256=S9PgQT1O_BQAkcqauWncRJaydiP8Q_Jzmu9gxYfy1VA,2482
177
177
  sunholo/vertex/type_dict_to_json.py,sha256=uTzL4o9tJRao4u-gJOFcACgWGkBOtqACmb6ihvCErL8,4694
178
- sunholo-0.143.9.dist-info/licenses/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
179
- sunholo-0.143.9.dist-info/METADATA,sha256=6kw6sOw6kpW1voU10qdRDCRp82VXiZX57ul2z3ghuSI,18413
180
- sunholo-0.143.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
181
- sunholo-0.143.9.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
182
- sunholo-0.143.9.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
183
- sunholo-0.143.9.dist-info/RECORD,,
178
+ sunholo-0.143.11.dist-info/licenses/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
179
+ sunholo-0.143.11.dist-info/METADATA,sha256=6MqCj5YhbDavQOK_5Qt6_VG3DXgnGv_Q0TMt0jTq30s,18414
180
+ sunholo-0.143.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
181
+ sunholo-0.143.11.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
182
+ sunholo-0.143.11.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
183
+ sunholo-0.143.11.dist-info/RECORD,,