Skip to content

docs(sdk): document the docs namespace return shapes - #139

Open
genozc wants to merge 1 commit into
vAPI-Network:mainfrom
genozc:docs/sdk-namespace-return-shapes
Open

genozc wants to merge 1 commit into
vAPI-Network:mainfrom
genozc:docs/sdk-namespace-return-shapes

Conversation

@genozc

@genozc genozc commented Dec 3, 2026

Copy link
Copy Markdown

One line on what was wrong: the sdk.md examples assign docs.search / docs.read / docs.ask without reading fields and never show the return shapes, so the first run looks like an empty result.

Documents the verified shapes (search -> { results: [{title, url, excerpt}] }, read -> { url, markdown }, ask -> { answer, sources }), checked live against client 0.17.5 on Ubuntu 24.04 / Node 22.23.4.

The examples assign docs.search / docs.read / docs.ask without reading
fields and never show what comes back, so the first run reads as an
empty result. Document the verified shapes: search -> { results:
[{title, url, excerpt}] }, read -> { url, markdown }, ask -> { answer,
sources }.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant