Skip to main content

Module registry

Module registry 

Source
Expand description

Tool trait + Registry — the contract third-party implementers see.

Structs§

PaginatedResult
Result of a paginated tool call. Tools that don’t paginate return next_cursor: None; the default Tool::call_paginated impl wraps Tool::call to produce this shape automatically.
RegisteredTool
One registered tool plus the binding dispatch uses to execute it. SP-12 Task 4: Binding sits between dispatch and the Tool impl 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 MyTool per tool; registered once at startup. Tools MUST NOT panic; they return Err(ToolCallError) instead.

Type Aliases§

CallFuture
Boxed future returned by Tool::call.
PaginatedCallFuture
Boxed future returned by Tool::call_paginated. SP-pagination-v1 §4.4.