Skip to content

Include generated docs in local circuit prompt#73

Open
SimplyRayYZL wants to merge 2 commits into
tscircuit:mainfrom
SimplyRayYZL:include-generated-docs-in-prompt
Open

Include generated docs in local circuit prompt#73
SimplyRayYZL wants to merge 2 commits into
tscircuit:mainfrom
SimplyRayYZL:include-generated-docs-in-prompt

Conversation

@SimplyRayYZL
Copy link
Copy Markdown

@SimplyRayYZL SimplyRayYZL commented May 20, 2026

Summary

  • Loads the generated tscircuit docs feed from https://docs.tscircuit.com/ai.txt alongside the props docs.
  • Inserts the generated docs into the local circuit system prompt.
  • Keeps prompt creation resilient if the optional generated docs endpoint is unavailable.
  • Adds mocked-fetch coverage for inclusion and fallback behavior.
  • Keeps OpenAI-dependent prompt tests deterministic by honoring injected clients.

Validation

  • bun test --timeout 50000
  • bun x tsc --noEmit
  • bun run build
  • GitHub Actions: Bun Test and Type Check passing on 68690bb

/claim #45
Closes #45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use the new auto generated docs in the system prompt

2 participants