toolslm 0.3.27__tar.gz → 0.3.28__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: toolslm
3
- Version: 0.3.27
3
+ Version: 0.3.28
4
4
  Summary: Tools to make language models a bit easier to use
5
5
  Author-email: Jeremy Howard <j@fast.ai>
6
6
  License: Apache-2.0
@@ -0,0 +1 @@
1
+ __version__ = "0.3.28"
@@ -141,9 +141,11 @@ def get_schema(
141
141
  "Generate JSON schema for a class, function, or method"
142
142
  if isinstance(f, dict): return f
143
143
  if hasattr(f, '__call__') and not isinstance(f, type) and not inspect.isfunction(f) and not inspect.ismethod(f):
144
+ orig_doc = f.__doc__
144
145
  f = f.__call__
146
+ else: orig_doc = None
145
147
  schema = _get_nested_schema(f, evalable=evalable, skip_hidden=skip_hidden)
146
- desc = f.__doc__
148
+ desc = f.__doc__ or orig_doc
147
149
  assert desc, "Docstring missing!"
148
150
  d = docments(f, full=True)
149
151
  ret = d.pop('return')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: toolslm
3
- Version: 0.3.27
3
+ Version: 0.3.28
4
4
  Summary: Tools to make language models a bit easier to use
5
5
  Author-email: Jeremy Howard <j@fast.ai>
6
6
  License: Apache-2.0
@@ -1 +0,0 @@
1
- __version__ = "0.3.27"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes