Skip to content

Commit 857743c

Browse files
committed
docs: add tool handler middleware section to the readme
1 parent 9824083 commit 857743c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,12 @@ initialization.
523523
Add the `Hooks` to the server at the time of creation using the
524524
`server.WithHooks` option.
525525

526+
### Tool Handler Middleware
527+
528+
Add middleware to tool call handlers using the `server.WithToolHandlerMiddleware` option. Middlewares can be registered on server creation and are applied on every tool call.
529+
530+
A recovery middleware option is available to recover from panics in a tool call and can be added to the server with the `server.WithRecovery` option.
531+
526532
## Contributing
527533

528534
<details>

0 commit comments

Comments
 (0)