github shcherbak-ai/contextgem v0.20.0

latest release: v0.21.0
8 hours ago

Added

  • Auto-generate tool schemas from @register_tool decorated functions. Pass functions directly to tools=[...] — schemas are built automatically from type hints and docstrings. Explicit OpenAI-compatible schema dicts remain supported for full backward compatibility.
  • Added docstring-parser dependency for extracting tool parameter descriptions from Sphinx/reST, Google, and NumPy style docstrings.

Fixed

  • Deterministic tool schema generation: required field ordering in auto-generated schemas is now sorted, preventing non-deterministic output from frozenset iteration across Python process invocations.
  • Pinned onnxruntime<1.24.0 for Python 3.10, as onnxruntime 1.24+ dropped Python 3.10 wheels. Python 3.11+ is unaffected and uses the latest version.

Changed

  • Upgraded pinned dependency versions: litellm==1.81.14, openai==2.21.0, genai-prices==0.0.54. Versions remain pinned to maintain stability and avoid occasional breaking changes and API inconsistencies observed in previous unpinned releases.

Docs

  • Added dedicated "Chat with Tools" documentation page with examples for auto-schema generation, supported type hints, TypedDict usage, custom schema overrides, and tool configuration options.
  • Simplified quickstart tools example using the new @register_tool function-passing syntax.
  • Updated CONTRIBUTING.md with AI assistant guidance and Fabric commands.

Don't miss a new contextgem release

NewReleases is sending notifications on new releases.