Skip to content

Commit 0ac76a8

Browse files
committed
Update changelog
1 parent 3c2c85b commit 0ac76a8

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
* Added a `ChatSnowflake()` class to interact with [Snowflake Cortex LLM](https://docs.snowflake.com/en/user-guide/snowflake-cortex/llm-functions). (#54)
1515
* Added a `ChatAuto()` class, allowing for configuration of chat providers and models via environment variables. (#38, thanks @mconflitti-pbc)
16+
* Added a `ToolResult()` class which allow for: (1) control how results get formatted when sent to the model and (2) yield additional content to the user (i.e., the downstream consumer of a `.stream()` or `.chat()`) for display when the tool is called. (#69)
17+
* Added a `on_request` parameter to `.register_tool()`. When tool is requested, this callback executes, and the result is yielded to the user. (#69)
18+
* Added a `Chat.on_tool_request()` method for registering a default tool request handler. (#69)
19+
20+
21+
### Changes
22+
23+
* By default, tool results are formatted as a JSON string when sent to the model. (#69)
1624

1725
### Improvements
1826

tests/test_provider_anthropic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def test_anthropic_image_tool(test_images_dir):
104104

105105
def get_picture():
106106
"Returns an image"
107+
# Local copy of https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png
107108
with open(test_images_dir / "dice.png", "rb") as image:
108109
bytez = image.read()
109110
res = [

0 commit comments

Comments
 (0)