brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
api-client-operationsGuides DocsGPT native answer and attachment APIs, SSE and reconnect behavior, OpenAI-compatible clients, structured output, multimodal input, idempotency, and MCP routing.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill to call DocsGPT from a client, choose native versus OpenAI-compatible endpoints, parse streams, recover connections, upload attachments, or validate ASGI/MCP exposure.
/mcp: read streaming, events, and MCP.| Need | Surface |
|---|---|
| simple blocking answer with DocsGPT fields | POST /api/answer |
| native answer deltas, sources, thoughts, tool results, attachments | POST /stream |
| OpenAI SDK/client compatibility | POST /v1/chat/completions |
| agent listing for an API key | GET /v1/models |
| upload turn-specific file | POST /api/store_attachment, then poll /api/task_status |
| per-user realtime notifications | GET /api/events |
| resume interrupted native answer | GET /api/messages/<message_id>/events |
| MCP server | /mcp on the full ASGI app |
Native endpoints support DocsGPT-specific prompt passthrough, explicit conversation reuse, attachment ids, and visibility. /v1 is best when a client already speaks Chat Completions.
api_key loads the bound agent configuration.agent_id can resolve an authorized agent.Do not assume request fields override an API-key-owned agent. Use the same owner context for attachment upload and answer.
Read-only deployment checks:
python scripts/api_smoke.py --base-url http://localhost:7091
Authenticated model listing:
DOCSGPT_API_KEY=... python scripts/api_smoke.py \
--base-url http://localhost:7091 \
--token-env DOCSGPT_API_KEY \
--require-models
--question performs a real non-streaming agent run and persists a hidden conversation; use it only against a test agent/deployment.
To test DocsGPT outbound OpenAI-compatible provider wiring without a cloud call, run:
python scripts/mock_openai_server.py --port 8090
Point a disposable DocsGPT model/provider configuration at http://127.0.0.1:8090/v1. The mock handles model listing and streaming/non-streaming chat completions with deterministic content. It is not a security or load-test server.
429; reset state on backlog.truncated and refetch current resources.Idempotency-Key only where supported: /v1 non-streaming and agent webhooks have specific replay semantics.