fix: improve playground bot flow#2381
Conversation
PR Reviewer Guide 🔍(Review updated until commit d8d1fbe)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
a9b2f45 to
11dfb7b
Compare
|
Persistent review updated to latest commit d8d1fbe |
PR Code Suggestions ✨No code suggestions found for the PR. |
Description
This PR updates the Web Studio surface into the Playground workflow and improves the bot/chat inspection path.
Backend scope is intentionally limited to
bot/vikingbot: it exposes the already-running automatic OpenViking memory lookup through the existing string-basedtool_call/tool_resultevent stream, and reduces the built-inopenviking_searchdefault result limit from 20 to 10. The PR does not changeopenvikingretrieval logic, bot API event payload shape, tool execution contracts, identity binding, provenance, or trace data.Related Issue
N/A
Type of Change
Changes Made
openviking_searchtool call/result using the existing stream contract, so the UI shows tool arguments, raw result, and clickableviking://refs.tool_result.successor retrieval trace payloads.openviking_searchdefault result limit from 20 to 10.Testing
Validation performed:
git diff --checkpnpm -C web-studio exec tsc --noEmitpython3 -m py_compile bot/vikingbot/agent/loop.py bot/vikingbot/agent/tools/ov_file.pyChecklist
Screenshots (if applicable)
N/A
Additional Notes
Relative to
main, backend changes are limited tobot/vikingbot/agent/loop.pyandbot/vikingbot/agent/tools/ov_file.py. There is noopenvikingdirectory diff in the final PR.