From e9eeffa1d64f987f5b65471b002bb9c4d032acbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?bar=C4=B1=C5=9F?= <137426514+byigitt@users.noreply.github.com> Date: Thu, 18 Dec 2025 18:05:48 +0300 Subject: [PATCH] docs: fix typos --- README.md | 2 +- tools.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 12d4910f..2137dca8 100644 --- a/README.md +++ b/README.md @@ -660,7 +660,7 @@ will result in the client terminating the connection and retrying without receiv We set a [TCP socket keep-alive](https://tldp.org/HOWTO/TCP-Keepalive-HOWTO/overview.html) option in order to reduce the impact of idle connection timeouts on some networks. -This can be [overriden](#Configuring-the-HTTP-client) by passing a `http_client` option to the client. +This can be [overridden](#Configuring-the-HTTP-client) by passing a `http_client` option to the client. ## Default Headers diff --git a/tools.md b/tools.md index 9e5470a8..69520e21 100644 --- a/tools.md +++ b/tools.md @@ -47,11 +47,11 @@ The `@beta_tool` decorator will inspect the function arguments and the docstring } ``` -If you want to implement calling the tool yourself, you can then pass the to the API like so: +If you want to implement calling the tool yourself, you can then pass it to the API like so: ```python message = client.beta.messages.create( - tools=[get_weather.to_dict()], + tools=[sum.to_dict()], # ... max_tokens=1024, model="claude-sonnet-4-5-20250929", @@ -63,7 +63,7 @@ or you can use our [tool runner](#tool-runner)! ## Tool runner -We provide a `client.beta.messages.tool_runner()` method that can automatically call tools defined with `@beta_tool()`. This method returns a `BetaToolRunner` class that is an iterator where each iteration yields a new `BetaMessage` instance from an API call, iteration will stop when there no tool call content blocks. +We provide a `client.beta.messages.tool_runner()` method that can automatically call tools defined with `@beta_tool()`. This method returns a `BetaToolRunner` class that is an iterator where each iteration yields a new `BetaMessage` instance from an API call, iteration will stop when there are no tool call content blocks. ```py runner = client.beta.messages.tool_runner(