Plain tool loops
No framework? Wrap your model client and your tools, and every Viewport package works with a hand-written loop.
A tool loop on the Anthropic or OpenAI API is a few dozen lines, and Viewport fits it without a framework. Wrap the model client for tests, wrap tools for approvals, and ask Context for the tools to send.
| Package | With a plain tool loop | Guide |
|---|---|---|
| Evals On npm and PyPI | Wraps the Anthropic or OpenAI client, so every model call is recorded and replayed. | Evals guide |
| HITL On npm and PyPI | Wraps any function as a gated tool. | HITL guide |
| Context On npm and PyPI | Hands your loop the prompt and tools for the skills that are loaded. | Context guide |
Each guide carries code that runs in that package's repository, in TypeScript and Python where the framework has both. None of them is on npm/PyPI yet; install from source.