Skip to content

Use generated docs in local circuit prompt#54

Open
arbazkhan971 wants to merge 1 commit into
tscircuit:mainfrom
arbazkhan971:arbaz/generated-docs-context
Open

Use generated docs in local circuit prompt#54
arbazkhan971 wants to merge 1 commit into
tscircuit:mainfrom
arbazkhan971:arbaz/generated-docs-context

Conversation

@arbazkhan971
Copy link
Copy Markdown

Summary

  • Fetch https://docs.tscircuit.com/ai.txt and include it in the local circuit system prompt before the existing hand-written API overview.
  • Keep the generated docs fetch optional so prompt creation still works if that endpoint is temporarily unavailable.
  • Add a mocked-fetch regression test for the generated docs section.
  • Skip OpenAI-backed tests when OPENAI_API_KEY is not configured, so fork PR CI can run the non-AI suite without secrets.

/claim #45

Testing

  • bun run format
  • bun test --timeout 50000
  • bunx tsc --noEmit
  • bun run build

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.

1 participant