rust-sdk/examples/servers/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
4t145 1f7f4d3055
refactor: refactor tool macros and router implementation (#261)
* refactor: refactor tool macros and router implementation

- Updated the `#[tool(tool_box)]` macro to `#[tool_router]` across various modules for consistency.
- Enhanced the `Calculator`, `Counter`, and `GenericService` structs to utilize `ToolRouter` for handling tool calls.
- Introduced `Parameters` struct for better parameter handling in tool functions.
- Added new methods for listing tools and calling tools in server handlers.
- Improved test cases to reflect changes in tool routing and parameter handling.
- Updated documentation and examples to align with the new router structure.

* fix: fix fmt and build error

* fix: fix test failure

* docs: documents for macros, fix ci

* fix: fix ci

* fix: fix wrongly replaced documents

* fix: remove useless file

* fix: change the parameter format for tool_router

* fix: update extract_doc_line to handle existing documentation and clean up unused code in server handler

* doc: update document for macro and examples

* doc: update readme and add contribute guide

* fix: fix type
2025-06-24 04:01:22 +08:00
..
common refactor: refactor tool macros and router implementation (#261) 2025-06-24 04:01:22 +08:00
html chore: add oauth2 support (#130) 2025-04-29 17:52:59 +08:00
complex_auth_sse.rs fix(examples): add servers in examples's readme (#229) 2025-05-26 21:00:49 +08:00
counter_hyper_streamable_http.rs feat: allow failable service creation in streamable HTTP tower service (#244) 2025-06-16 01:13:35 +08:00
counter_sse.rs fix(examples): add servers in examples's readme (#229) 2025-05-26 21:00:49 +08:00
counter_sse_directly.rs fix(examples): add servers in examples's readme (#229) 2025-05-26 21:00:49 +08:00
counter_stdio.rs fix(examples): add servers in examples's readme (#229) 2025-05-26 21:00:49 +08:00
counter_streamhttp.rs feat: allow failable service creation in streamable HTTP tower service (#244) 2025-06-16 01:13:35 +08:00
memory_stdio.rs fix(examples): add servers in examples's readme (#229) 2025-05-26 21:00:49 +08:00
simple_auth_sse.rs fix(examples): add servers in examples's readme (#229) 2025-05-26 21:00:49 +08:00