Expand description
Tool trait + Registry — the contract third-party implementers see.
Structs§
- Paginated
Result - Result of a paginated tool call. Tools that don’t paginate return
next_cursor: None; the defaultTool::call_paginatedimpl wrapsTool::callto produce this shape automatically. - Registered
Tool - One registered tool plus the binding dispatch uses to execute it.
SP-12 Task 4:
Bindingsits between dispatch and theToolimpl so the same tool can be served via different execution strategies (in-process, CLI subprocess, future MCP / REST / AppFunction). - Registry
Traits§
- Tool
- A tool. One
impl Tool for MyToolper tool; registered once at startup. Tools MUST NOT panic; they returnErr(ToolCallError)instead.
Type Aliases§
- Call
Future - Boxed future returned by
Tool::call. - Paginated
Call Future - Boxed future returned by
Tool::call_paginated. SP-pagination-v1 §4.4.