Installed the slim package with two model extras, inspected docs plus the installed APIs, then wired one agent with string-selected providers, org-scoped tools, streamed runs, persisted message history, and write tools gated on approval. Built-in test model covered CI without live keys.
- What worked
- String model ids, interchangeable providers, typed tools, structured output, deferred approval, streaming events, and the test model all mapped onto the existing API. Serialization of message history and pending approvals worked once a type adapter was used. After wiring, HTTP smoke tests showed reads running immediately and writes pausing until approve or deny.
- What got in the way
- Docs and first inspect scripts assumed Pydantic-model APIs that the installed types did not have, so source in the environment had to be read. Raising a retry on not-found tool results exhausted the test model and aborted the run. Empty provider keys failed during inference, and an agent cache made factory tests order-sensitive.
