Repository navigation
Conversation
POST /agents/:name/ask runs a Workers AI tool-calling loop over the Code Mode runtime, shows other agents' answer-producing runs as unverified examples, records them in Codemode-Examples trailers, and indexes its own answer-producing run. Adds AI and EXAMPLES bindings, GET /agents/:name/examples, and scripts/walkthrough.mjs for the michelle/matthew demo.
feat(example): add ask endpoint with code memory retrieval
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#5 (the
askendpoint with code memory retrieval) was stacked ondemo-prep. It merged intodemo-prepafterdemo-prephad already merged intomainvia #3, so its changes never reachedmain. This PR carries them over unchanged: the diff is #5's commit only.What lands
POST /agents/:name/ask: a Workers AI tool-calling loop (glm-5.3-flash) over the lava lamp wall.Codemode-Examplestrailer.GET /agents/:name/examples?question=…: whataskwould retrieve. The walkthrough polls it.examples/agent/scripts/walkthrough.mjs: the michelle → matthew demo driver.AIandEXAMPLESbindings incloudflare.config.tsandwrangler.jsonc, plus README docs.Verified in #5: typecheck, tests, and
cf build/cf deploy --dry-run/wrangler deploy --dry-run. Not yet run against Cloudflare.