- Fixed inconsistency in storing messages in
Anthropic.Request
- Prevent to add system message when no
Anthropic.Tools.ToolBehaviour
is registered.
- Removed GenServer from
Anthropic.Config
. It will be created fromApplication.get_env
or from the supplied options. - Added Mox to test environment.
- Increased test coverage.
- Changed the tool field type to MapSet
- Better system function concatenation with tools description
- Moved List.reverse from messages to Jason.Encoder implementation.
- Added tools handling. Now you can register tools that the AI can call, and these calls are automaticaly captured.
- The way Messages.content was being generated
- Moved Response parsing to Request module.
- Replaced
Anthropic.add_image/2
withAnthropic.add_user_image/2
- Included telemetry
- Added threatment of nil
api_key
- Removed guard that would not allow assistant message to be added to request
- Process response with Jason.decode.
- Added type annotations to documentatio
- Added support for image content