Skip to content

Releases: jackmpcollins/magentic

v0.1.2

21 Jul 07:41
Compare
Choose a tag to compare

Main Changes

  • Handle pydantic models as dictionaries values in DictFunctionSchema.serialize_args
  • Exclude unset parameters when creating FunctionCall in FunctionCallFunctionSchema.parse_args
  • Add FunctionCall.__eq__ method
  • Increase test coverage

Commits

  • 506d689 poetry update - address aiohttp CVE
  • feac090 Update README: improve first example, add more explanation
  • dab90cf poetry add jupyter --group examples
  • 992e65e poetry add pytest-cov
  • a05f057 Test FunctionCallFunctionSchema serialize_args, and FunctionCall
  • ed8e9d9 Test AnyFunctionSchema serialize_args
  • 606cb30 Test DictFunctionSchema serialize_args
  • ae6218e Test OrderedDict works with parse_args
  • 82c1d41 Tidy function_schemas creation in Model.complete

Full Changelog: v0.1.1...v0.1.2

v0.1.1

17 Jul 06:29
Compare
Choose a tag to compare

Main Changes

  • Improve handling of dict return types
  • Increase test coverage

Commits

  • 9953f3c Add DictFunctionSchema to improve handling dict return type
  • 9ac454f Handle Any in is_origin_subclass. Add tests for this
  • 8316213 Handle missing type hints in FunctionCallFunctionSchema. Extend tests for this.
  • 90e98f5 Add test cases for AnyFunctionSchema
  • 77e08ed Add magnetic as known-first-party for ruff
  • 03eac45 Add name_type function. Add docstrings to typing.py
  • 0cee18f Use pydantic.create_model in FunctionCallFunctionSchema to fix warning
  • 2726f78 Fix type hint for FunctionResultMessage.from_function_call
  • c0cf2d5 Disambiguate return_type variable in PromptFunction init
  • ec0e114 Fix FunctionCall example type annotations in readme

Full Changelog: v0.1.0...v0.1.1

v0.1.0

15 Jul 07:32
Compare
Choose a tag to compare

Initial release