Skip to content

Include generated tscircuit docs in local prompt#56

Open
helmutkocksmann wants to merge 6 commits into
tscircuit:mainfrom
helmutkocksmann:main
Open

Include generated tscircuit docs in local prompt#56
helmutkocksmann wants to merge 6 commits into
tscircuit:mainfrom
helmutkocksmann:main

Conversation

@helmutkocksmann
Copy link
Copy Markdown

Closes #45.

/claim #45

Summary:

  • fetch https://docs.tscircuit.com/ai.txt when building the local circuit system prompt
  • place generated docs before the hand-written API overview so they take precedence
  • keep the prompt usable if the optional generated docs fetch fails
  • add a mocked-fetch regression test for the generated docs section

Verification:

  • npm exec --yes bun@1.2.13 -- test tests/prompt-templates/create-local-circuit-prompt.test.ts
  • ./node_modules/.bin/tsc --noEmit
  • npm exec --yes bun@1.2.13 -- 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.

use the new auto generated docs in the system prompt

1 participant