Closed Bug 2067777 Opened 3 months ago Closed 2 months ago

[wpt-sync] Sync PR 62252 - [Prompt API] Support caller-supplied tool-call history - blink layer CL

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox157 fixed)

RESOLVED FIXED
157 Branch
Tracking Status
firefox157 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 62252 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/62252
Details from upstream follow.

Frank Li <frankli@microsoft.com> wrote:

[Prompt API] Support caller-supplied tool-call history - blink layer CL

Allow structured tool calls in initial prompts and append() input.
Convert tool-call arguments into Mojo dictionary values while enforcing
role and serialization constraints.

Update the Echo backend to advertise the capability and serialize
historical tool calls for web-test observation. Add WPT coverage for
initial history, append and recreation, argument conversion, invalid
roles, serialization failures, and unavailable capability.

Test: autoninja -C out/debug_x64 blink_tests
Test: third_party\blink\tools\run_web_tests.bat -t debug_x64 --no-retry-failures virtual/ai_tool_use/external/wpt/ai/language-model/language-model-tool-use.tentative.https.window.js

Bug: 422803232
Change-Id: I838f8aa0ec9d5591d9946ee1c1be1d82b70cb610
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8285949
Reviewed-by: Jingyun Liu \<jingyun@google.com>
Reviewed-by: Mike Wasserman \<msw@chromium.org>
Commit-Queue: Frank Li \<frankli@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1687877}

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 106 tests and 1 subtests

Status Summary

Firefox

OK : 1[GitHub] 102[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 45[GitHub] 183[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
TIMEOUT: 1
ERROR : 4
NOTRUN : 7

Chrome

TIMEOUT: 2
NOTRUN : 44

Safari

OK : 1
FAIL : 45

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch
You need to log in before you can comment on or make changes to this bug.