Examples
Annotated, runnable examples for building on proto with @protolabsai/sdk.
- SDK Sub-Agent Examples — Define and dispatch sub-agents programmatically
- SDK Hook Examples — Intercept and react to tool calls and lifecycle events
- SDK Tool Examples — Register custom tools with an in-process MCP server
- Proxy Script Example — Route model traffic through a custom proxy