You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
First SDK run (docs namespace + call.search): what worked and what confused me
#140
What worked out of the box:createVapiClient() with no wallet, account or init - the whole docs namespace ran immediately (docs.search, docs.read, docs.ask), and call.search("weather") returned 10 listings with no credentials and no payment. Clean install, one dependency, no build errors.
The first thing that confused me: the sdk.md examples assign docs.search / docs.read / docs.ask without reading any fields, and the return shapes are not documented anywhere - docs.read returns { url, markdown }, docs.ask returns { answer, sources }. I logged the raw result lengths first and misread [object Object] as a failure. A one-line note of the return shapes next to those examples would remove the only speed bump I hit.
One more observation: docs.ask answered "the new docs site has no assistant" and returned nearest sections instead - worth a line in the docs that ask is retrieval, not an assistant.
Happy to send these two doc fixes as pull requests if useful.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Environment: Ubuntu 24.04 (headless VPS), Node.js 22.23.4,
vapi-network0.17.5 from npm.What worked out of the box:
createVapiClient()with no wallet, account or init - the wholedocsnamespace ran immediately (docs.search,docs.read,docs.ask), andcall.search("weather")returned 10 listings with no credentials and no payment. Clean install, one dependency, no build errors.The first thing that confused me: the
sdk.mdexamples assigndocs.search/docs.read/docs.askwithout reading any fields, and the return shapes are not documented anywhere -docs.readreturns{ url, markdown },docs.askreturns{ answer, sources }. I logged the raw result lengths first and misread[object Object]as a failure. A one-line note of the return shapes next to those examples would remove the only speed bump I hit.One more observation:
docs.askanswered "the new docs site has no assistant" and returned nearest sections instead - worth a line in the docs thataskis retrieval, not an assistant.Happy to send these two doc fixes as pull requests if useful.
All reactions