@pai/client
Transport-agnostic AgentClient and Thread.
HTTP apps use createPaiHttpClient(), which wraps this facade. React wraps that.
| API | Purpose |
|---|---|
AgentClient / Thread | send, watch, files, commands |
| Client tools | Serialized frontend-defined tools |
| Errors | ThreadBusyError and related |
Do not import @pai/client in the browser unless you are writing a custom transport.