Skip to main content

Module proxy

Module proxy 

Source
Expand description

ToolProxy — wraps a runtime’s tool dispatch so every call passes through the effect ledger.

Adapter authors register their tools by name once, then invoke through the proxy. The proxy hashes args, mints an idempotency key, runs the tool, hashes the result, appends to the ledger, returns the result.

Structs§

ToolProxy
Holds tool registrations + the ledger + the secret. Send + Sync via inner Mutex; cheap to clone().

Traits§

ToolHandler
A dispatchable tool. Synchronous for the v1 proxy; the SDKs wrap this in tokio::task::spawn_blocking for async use.