Skip to content

docs: SDKs group (TypeScript + Python) with Build with the agent, and the Agent API reference - #67

Open
adamelk wants to merge 1 commit into
mainfrom
docs/sdk-agent
Open

adamelk wants to merge 1 commit into
mainfrom
docs/sdk-agent

Conversation

@adamelk

@adamelk adamelk commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

What

  • SDKs group (Reference tab, now right after API): Overview, TypeScript SDK (was "Node.js SDK"), Python SDK.
    • Both language pages follow the same sections: Install · Set up the client · Build with the agent · Specifications · Browser agents · Credits · Errors.
    • Each has a full runnable agent walkthrough: create → stream → build next → status, then send/stop and a method table.
    • Overview: install CodeGroup, a client-setup CodeGroup and a short agent CodeGroup (TypeScript/Python tabs), a language table, and an operation table.
    • Slugs are unchanged (architect-agent/sdks/node etc.), so the parity baseline and existing links keep working. Only titles change.
  • Agent API group: agent-api/overview (flow, endpoints, access, billing, limits, errors) plus one page per operation: create project, send message, events (SSE contract + resume with cursor), build, status, stop.
  • OpenAPI: the six /agent/projects... operations with schemas, request/response examples for every status, and cURL samples (Agent tag).
  • Checks: check-node-examples.mjs / check-python-examples.py mock the agent routes, and each now asserts the walkthrough calls every one. --source-root coverage also reads routes/agent_api.ts.
  • llms.txt: lists the new pages. I trimmed a few long descriptions to stay under 16 KB (16,381 bytes).

Backend: arjunpredev/predev-app#2671 · SDK: predotdev/predev-api#2

Before merging

The guides target predev-api 1.2.0, which is not published yet (SDK PR above). CI pins stay at predev-api==1.1.0 / "predev-api": "1.1.0", so check:node and check:python will fail on client.agent until:

  1. 1.2.0 is published (push tag v1.2.0 on predev-api after its PR merges), then
  2. bump package.json + lockfile (npm install -D predev-api@1.2.0) and the pip pin in .github/workflows/docs-ci.yml.

Verified locally

  • node scripts/check-docs.mjs: passed (110 pages, 20 REST ops, 426 schema-checked OpenAPI examples)
  • node scripts/check-node-examples.mjs with a local 1.2.0 build: passed (21 mocked requests, 8 agent)
  • python scripts/check-python-examples.py with a local 1.2.0 install: passed
  • check-docs.mjs --source-root against the backend branch: all six agent routes match. One pre-existing gap is unrelated to this PR: GET /browser-agent-screenshot is undocumented.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PwA31qPkrcHj7kogbsmWS4

…ith the agent", and the Agent API REST reference

- SDKs nav group moves next to API in Reference. The Node page is now the
  TypeScript SDK; both language pages follow Install / Set up the client /
  Build with the agent / Specifications / Browser agents / Credits / Errors,
  with a full create -> stream -> build next -> status walkthrough.
  Overview has TypeScript/Python CodeGroups and a language table. Page
  slugs are unchanged (parity baseline and existing links).
- New Agent API group: overview + one page per operation (create, send,
  events SSE, build, status, stop), and the six operations, their schemas
  and examples in api-reference/openapi.json.
- Example checkers mock the /agent/projects routes and assert the walkthrough
  hits each one; source coverage reads routes/agent_api.ts.
- llms.txt lists the new pages (trimmed elsewhere to stay under 16 KB).

The guides target predev-api 1.2.0, which is not published yet. The CI
pins stay at 1.1.0 until then; check:node and check:python pass locally
against the 1.2.0 build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PwA31qPkrcHj7kogbsmWS4

This branch has not been deployed

No deployments
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