machine-thinking 0.0.7__tar.gz → 0.0.8__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: machine-thinking
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary: Calling the API of 'Thinking-Machines Lab' models without dependencies.
5
5
  Author-email: Machina Ratiocinatrix <machina.ratio@gmail.com>, Alexander Fedotov <alex.fedotov@aol.com>
6
6
  Project-URL: Homepage, https://github.com/machina-ratiocinatrix/machine-thinking
@@ -3,7 +3,7 @@ requires = ["setuptools>=67.0"]
3
3
  build-backend = "setuptools.build_meta"
4
4
  [project]
5
5
  name = "machine-thinking"
6
- version = "0.0.7"
6
+ version = "0.0.8"
7
7
  authors = [
8
8
  {name="Machina Ratiocinatrix", email="machina.ratio@gmail.com"},
9
9
  {name="Alexander Fedotov", email="alex.fedotov@aol.com"}
@@ -71,5 +71,6 @@ def message(messages=None, instructions=None, tools=None, **kwargs):
71
71
 
72
72
  return thoughts, text
73
73
 
74
+
74
75
  if __name__ == '__main__':
75
76
  ...
@@ -41,13 +41,12 @@ def get_function(func_name):
41
41
  return func
42
42
 
43
43
 
44
- def get_func_args(func_def):
44
+ def get_func_args(func_args_def):
45
45
  try:
46
- func_args_str = func_def.get('arguments')
47
- if isinstance(func_args_str, str):
48
- func_args = json.loads(func_args_str)
46
+ if isinstance(func_args_def, str):
47
+ func_args = json.loads(func_args_def)
49
48
  else:
50
- func_args = func_args_str
49
+ func_args = func_args_def
51
50
  except Exception as e:
52
51
  func_args = {}
53
52
  print(f"Error parsing tool arguments: {e}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: machine-thinking
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary: Calling the API of 'Thinking-Machines Lab' models without dependencies.
5
5
  Author-email: Machina Ratiocinatrix <machina.ratio@gmail.com>, Alexander Fedotov <alex.fedotov@aol.com>
6
6
  Project-URL: Homepage, https://github.com/machina-ratiocinatrix/machine-thinking