From 70dc03250c87408a6ea87ada136c29c29605fb17 Mon Sep 17 00:00:00 2001 From: David Weedon Date: Thu, 9 Oct 2025 15:59:34 -0500 Subject: [PATCH] fix - loosen overly strict ClientToolCall arguments type --- chatkit/agents.py | 3 ++- pyproject.toml | 2 +- uv.lock | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/chatkit/agents.py b/chatkit/agents.py index 349904a..38543d1 100644 --- a/chatkit/agents.py +++ b/chatkit/agents.py @@ -5,6 +5,7 @@ from inspect import cleandoc from typing import ( Annotated, + Any, AsyncGenerator, Awaitable, Generic, @@ -84,7 +85,7 @@ class ClientToolCall(BaseModel): """ name: str - arguments: dict[str, str] + arguments: dict[str, Any] class _QueueCompleteSentinel: ... diff --git a/pyproject.toml b/pyproject.toml index 939160d..6e49ace 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openai-chatkit" -version = "1.0.1" +version = "1.0.2" description = "A ChatKit backend SDK." readme = "README.md" requires-python = ">=3.10" diff --git a/uv.lock b/uv.lock index 39c64c5..a6177d6 100644 --- a/uv.lock +++ b/uv.lock @@ -819,7 +819,7 @@ wheels = [ [[package]] name = "openai-chatkit" -version = "1.0.1" +version = "1.0.2" source = { virtual = "." } dependencies = [ { name = "openai" },