Repository navigation
test(codemode): the Workers AI e2e tools state their result shape - #3501
Closed
mattzcarey wants to merge 1 commit into
Closed
mattzcarey wants to merge 1 commit into
mattzcarey wants to merge 1 commit into
Conversation
…ult's shape, so the model doesn't spend its five steps guessing it; an empty reply says so
Member
Author
|
Replaced by #3503, which carries this change with the rest of its unit, integrated and tested together. |
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.
The nightly's "Workers AI: codemode Playwright" job is red on
llm-codemode.spec.ts"LLM combines tools from both namespaces", and the failure prints nothing.The suite's arithmetic tools had no
outputSchema, so the types the model writes against saidAddNumbersOutput = unknown. The model passed the result ofaddNumbers({ result: 15 }) tomultiplyas if it were a number and got a tool error. It then spent steps finding the shape. In about 3 of 8 runs it used all five steps on tool calls and the reply had no text. The assertion's message is the reply, so the failure was empty too.addNumbers,multiplyanddividenow declareoutputSchema: { result: number }, so the generated types say so.Measured against Workers AI locally: 12 of 12 replies answered after the change, against 5 of 8 before. The LLM suite passes 8/8 and the mock suite 21/21.
Tests only, no changeset.