fix: remove unnecessary fields from tools' inputSchema (#856)
This commit is contained in:
parent
c330fede90
commit
53e4410d99
1 changed files with 114 additions and 10 deletions
|
|
@ -169,6 +169,8 @@ async fn main() -> anyhow::Result<()> {
|
|||
}
|
||||
```
|
||||
|
||||
The generated tool `inputSchema` is derived from the fields of `T`. The type name and documentation on `T` are ignored; only field names, field types, and field documentation are used.
|
||||
|
||||
When you need custom server metadata or multiple capabilities (tools + prompts), use explicit `#[tool_handler]`:
|
||||
|
||||
```rust,ignore
|
||||
|
|
|
|||
Loading…
Reference in a new issue