fyodorov-llm-agents 0.4.10__py3-none-any.whl → 0.4.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.
- fyodorov_llm_agents/tools/mcp_tool_service.py +7 -1
- {fyodorov_llm_agents-0.4.10.dist-info → fyodorov_llm_agents-0.4.11.dist-info}/METADATA +1 -1
- {fyodorov_llm_agents-0.4.10.dist-info → fyodorov_llm_agents-0.4.11.dist-info}/RECORD +5 -5
- {fyodorov_llm_agents-0.4.10.dist-info → fyodorov_llm_agents-0.4.11.dist-info}/WHEEL +0 -0
- {fyodorov_llm_agents-0.4.10.dist-info → fyodorov_llm_agents-0.4.11.dist-info}/top_level.txt +0 -0
@@ -6,10 +6,13 @@ class MCPTool():
|
|
6
6
|
|
7
7
|
@staticmethod
|
8
8
|
def create_or_update_in_db(access_token: str, tool: ToolModel, user_id: str) -> str:
|
9
|
+
print(f"Creating or updating tool with handle {tool.handle} for user {user_id}")
|
9
10
|
tool_w_id = MCPTool.get_by_name_and_user_id(access_token, tool.handle, user_id)
|
10
11
|
if tool_w_id:
|
12
|
+
print(f"Tool with handle {tool.handle} already exists, updating it.")
|
11
13
|
return MCPTool.update_in_db(access_token, tool_w_id.id, tool)
|
12
14
|
else:
|
15
|
+
print(f"Tool with handle {tool.handle} does not exist, creating it.")
|
13
16
|
return MCPTool.create_in_db(access_token, tool, user_id)
|
14
17
|
|
15
18
|
@staticmethod
|
@@ -75,8 +78,11 @@ class MCPTool():
|
|
75
78
|
try:
|
76
79
|
supabase = get_supabase(access_token)
|
77
80
|
result = supabase.table('mcp_tools').select('*').eq('user_id', user_id).eq('handle', handle).limit(1).execute()
|
78
|
-
if not result or not result.data or len(result.data) == 0:
|
81
|
+
if not result or not result.data or len(result.data) == 0: # If no tools found for this user check for public tools with same name
|
79
82
|
print(f"No tool found with the given handle {handle} and user ID {user_id}: {result}")
|
83
|
+
result = supabase.table('mcp_tools').select('*').eq('handle', handle).eq('public', True).limit(1).execute()
|
84
|
+
if not result or not result.data or len(result.data) == 0:
|
85
|
+
print(f"No public tool found with the given handle {handle}: {result}")
|
80
86
|
return None
|
81
87
|
tool_dict = result.data[0]
|
82
88
|
tool = ToolModel(**tool_dict)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: fyodorov_llm_agents
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.11
|
4
4
|
Summary: LLM agents for the Fyodorov AI suite
|
5
5
|
Author-email: Daniel Ransom <02masseur.alibis@icloud.com>
|
6
6
|
Project-URL: Homepage, https://github.com/FyodorovAI/fyodorov-llm-agents
|
@@ -8,9 +8,9 @@ fyodorov_llm_agents/models/llm_service.py,sha256=35bS0RFXJhJUSjge-v4u5cftn_MT-Cm
|
|
8
8
|
fyodorov_llm_agents/providers/provider_model.py,sha256=OyCK6WMRhyElsp88gILg0wso-OPHI7f55gEeypsJ7O0,957
|
9
9
|
fyodorov_llm_agents/providers/provider_service.py,sha256=GST-NLV8aLPsvapQEvgT_qHGYu7IpS5Xsut60XFmD-g,5865
|
10
10
|
fyodorov_llm_agents/tools/mcp_tool_model.py,sha256=nGdPmqSkA7hqDUTPbNCZAHNSVJCgVOs5dzJfPntLidI,5110
|
11
|
-
fyodorov_llm_agents/tools/mcp_tool_service.py,sha256=
|
11
|
+
fyodorov_llm_agents/tools/mcp_tool_service.py,sha256=rjsC1LBvIFZh3RsK1EESdPA9G7HrmQPkHnXBewSc_uY,6728
|
12
12
|
fyodorov_llm_agents/tools/tool.py,sha256=HyOk0X_3XE23sa8J-8UZx657tJ0sxwZWMbA4OPxXU6E,7940
|
13
|
-
fyodorov_llm_agents-0.4.
|
14
|
-
fyodorov_llm_agents-0.4.
|
15
|
-
fyodorov_llm_agents-0.4.
|
16
|
-
fyodorov_llm_agents-0.4.
|
13
|
+
fyodorov_llm_agents-0.4.11.dist-info/METADATA,sha256=cHHHwrJAnpNRewvDZsLB42x7szTj0vWXQ6uy8QuVPqo,551
|
14
|
+
fyodorov_llm_agents-0.4.11.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
15
|
+
fyodorov_llm_agents-0.4.11.dist-info/top_level.txt,sha256=4QOslsBp8Gh7ng25DceA7fHp4KguTIdAxwURz97gH-g,20
|
16
|
+
fyodorov_llm_agents-0.4.11.dist-info/RECORD,,
|
File without changes
|
File without changes
|