glaip-sdk 0.6.5__py3-none-any.whl → 0.6.5b2__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.
glaip_sdk/client/tools.py CHANGED
@@ -562,14 +562,12 @@ class ToolClient(BaseClient):
562
562
  ) -> Tool:
563
563
  """Find tool by name and update, or create if not found."""
564
564
  existing = self.find_tools(name)
565
- name_lower = name.lower()
566
- exact_matches = [tool for tool in existing if tool.name and tool.name.lower() == name_lower]
567
565
 
568
- if len(exact_matches) == 1:
566
+ if len(existing) == 1:
569
567
  logger.info("Updating existing tool: %s", name)
570
- return self._do_tool_upsert_update(exact_matches[0].id, name, code, description, framework, **kwargs)
568
+ return self._do_tool_upsert_update(existing[0].id, name, code, description, framework, **kwargs)
571
569
 
572
- if len(exact_matches) > 1:
570
+ if len(existing) > 1:
573
571
  raise ValueError(f"Multiple tools found with name '{name}'")
574
572
 
575
573
  # Create new tool - code is required
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: glaip-sdk
3
- Version: 0.6.5
3
+ Version: 0.6.5b2
4
4
  Summary: Python SDK for GL AIP (GDP Labs AI Agent Package) - Simplified CLI Design
5
5
  License: MIT
6
6
  Author: Raymond Christopher
@@ -10,6 +10,8 @@ Classifier: License :: OSI Approved :: MIT License
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: 3.11
12
12
  Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
14
+ Provides-Extra: local
13
15
  Requires-Dist: click (>=8.2.0,<8.3.0)
14
16
  Requires-Dist: gllm-core-binary (>=0.1.0)
15
17
  Requires-Dist: gllm-tools-binary (>=0.1.3)
@@ -68,7 +68,7 @@ glaip_sdk/client/main.py,sha256=RTREAOgGouYm4lFKkpNBQ9dmxalnBsIpSSaQLWVFSmU,9054
68
68
  glaip_sdk/client/mcps.py,sha256=gFRuLOGeh6ieIhR4PeD6yNVT6NhvUMTqPq9iuu1vkAY,13019
69
69
  glaip_sdk/client/run_rendering.py,sha256=ubBO-NzyZoYRELNwxVvrQFRGQVJCuLfqqJNiXrBZDoQ,14223
70
70
  glaip_sdk/client/shared.py,sha256=esHlsR0LEfL-pFDaWebQjKKOLl09jsRY-2pllBUn4nU,522
71
- glaip_sdk/client/tools.py,sha256=kK0rBwX1e_5AlGQRjlO6rNz6gDlohhXWdlxN9AwotdE,22585
71
+ glaip_sdk/client/tools.py,sha256=RR7345wECqPtofDXPW12VOnLtus554tXleL0YHQy82U,22435
72
72
  glaip_sdk/client/validators.py,sha256=ioF9VCs-LG2yLkaRDd7Hff74lojDZZ0_Q3CiLbdm1RY,8381
73
73
  glaip_sdk/config/constants.py,sha256=Y03c6op0e7K0jTQ8bmWXhWAqsnjWxkAhWniq8Z0iEKY,1081
74
74
  glaip_sdk/exceptions.py,sha256=iAChFClkytXRBLP0vZq1_YjoZxA9i4m4bW1gDLiGR1g,2321
@@ -139,7 +139,7 @@ glaip_sdk/utils/runtime_config.py,sha256=Y6frWR_PjD3CV2Jl3AqKxhhsJCkrxSuX27jw0-2
139
139
  glaip_sdk/utils/serialization.py,sha256=z-qpvWLSBrGK3wbUclcA1UIKLXJedTnMSwPdq-FF4lo,13308
140
140
  glaip_sdk/utils/sync.py,sha256=3VKqs1UfNGWSobgRXohBKP7mMMzdUW3SU0bJQ1uxOgw,4872
141
141
  glaip_sdk/utils/validation.py,sha256=hB_k3lvHdIFUiSwHStrC0Eqnhx0OG2UvwqASeem0HuQ,6859
142
- glaip_sdk-0.6.5.dist-info/METADATA,sha256=jIDXm5ZML8Y1VLmGm5BdqYOJsdwgW-UMCPhuLw7ix2k,7128
143
- glaip_sdk-0.6.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
144
- glaip_sdk-0.6.5.dist-info/entry_points.txt,sha256=EGs8NO8J1fdFMWA3CsF7sKBEvtHb_fujdCoNPhfMouE,47
145
- glaip_sdk-0.6.5.dist-info/RECORD,,
142
+ glaip_sdk-0.6.5b2.dist-info/METADATA,sha256=ZwtSeafybHuwx0o3942LF1Pz1o_RdQhXygmZO30JyuE,7203
143
+ glaip_sdk-0.6.5b2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
144
+ glaip_sdk-0.6.5b2.dist-info/entry_points.txt,sha256=EGs8NO8J1fdFMWA3CsF7sKBEvtHb_fujdCoNPhfMouE,47
145
+ glaip_sdk-0.6.5b2.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.0
2
+ Generator: poetry-core 2.1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any