go-sdk/examples/server/middleware
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonathan Amsterdam 0bb1a42b53
examples/server/middleware: log tool result (#400)
Log the result of a tool call in the middleware.

This example now fully demonstrates that receiving middleware can
effectively wrap a ToolHandler. That means that one reason for ToolFor
is moot: you don't need to get your hands on the returned ToolHandler in
order to wrap it.
2025-09-03 11:34:02 -04:00
..
main.go examples/server/middleware: log tool result (#400) 2025-09-03 11:34:02 -04:00