All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Support
Future
forclust::messages::AsyncTool
byclust::attributes::clust_tool
. - Support enum for argument of
clust::attributes::clust_tool
.
- Add the Claude 3.5 Sonnet model:
claude-3-5-sonnet-20240307
. <- (#4) - Add the tool use support.
- Add a tool use example.
- Remove old function calling API.
0.8.0 - 2024-04-04
- Add builder pattern for
clust::messages::MessagesRequestBody
:clust::messages::MessagesRequestBodyBuilder
. - Add
clust::attributes
for attribute macros.
- Rename builder methods of
clust::ClientBuilder
.
0.7.0 - 2024-04-03
- Support function calling.
- Add the attribute macro
clust::clust_macros::clust_tool
to use function calling easily viaclust::messages::Tool
orclust::messages::AsyncTool
.
- Remove type aliases for
std::result::Result
and explicitly specify generics.
0.6.0 - 2024-03-24
- Add text flattening method for
Content
:Content::flatten_into_text()
. <- (#1) - Add image source flattening method for
Content
:Content::flatten_into_image_source()
. - Add assistant message creation method for
MessagesResponseBody
:MessagesResponseBody::create_message()
. - Add builder pattern for
Client
:ClientBuilder
. - Add an example to create a message with vision.
- Add an example to converse with the assistant.
- Rename
StreamChunk
toMessageChunk
. - Rename
Content::MultipleBlock
toContent::MultipleBlocks
. - Improve initialization and conversion methods for
Content
andMessage
.
- Fix default value of the
role
field in theMessagesResponseBody
fromRole::user
toRole::assistant
.
0.5.0 - 2024-03-18
- Improve crate dependencies.
- Abolish the feature flag:
tokio_stream
.
0.4.0 - 2024-03-15
- Support streaming API with
tokio
backend by optional.
0.3.0 - 2024-03-14
- Add the Claude 3 Haiku model:
claude-3-haiku-20240307
.
0.2.0 - 2024-03-13
- Add the
Streaming Messages
API.
- Improve type annotation of the
type
field in theMessagesRespponseBody
.
0.1.0 - 2024-03-12
- Add the
Create a Message
API.