Repository navigation
feat(server): dashboards call your data tools while they are built - #1678
Draft
Aditya-thesys wants to merge 15 commits into
Draft
Aditya-thesys wants to merge 15 commits into
Aditya-thesys wants to merge 15 commits into
Conversation
The SDK sends the dashboard's data tools as function tools. When OpenUI Cloud answers with tool calls, the SDK runs them on your server and posts the results back, until generation starts. Errors, unknown tools and timeouts go back to the model as tool results. Set probe: false to turn this off.
When the model calls create_script, the SDK runs that saved script by name through OpenUI Cloud, as a dashboard runs its scripts, with your tools, and sends back its output or error. The build's draft_id from the first tool-call reply goes back with every later request. No round limit: OpenUI Cloud decides when the model stops asking for tools.
Create and edit post to the dashboard route, OpenAI chat completions in and out: a reply with tool_calls is run and posted back with its draft_id; a reply that ends with stop carries the tool response for your agent's model.
…eate/edit take longer
… progress (onProgress)
…; OpenUI Cloud adds create_script; no probe option
… are internal; tool-round naming
- defineDashboard({ reasoningEffort }) sends reasoning_effort with every round
- the interpreter's draft runs (create_script) are an internal runDraft, not a
symbol on the public execute; the public interpreter is execute only
- tools/probe.ts is tools/tool-round.ts (runToolRound); a tool-call reply with
no artifact_id is an invalid_response
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
The dashboard route always runs its tool loop, so requests no longer send tools; the data tools go in the config block. Data tools run through the interpreter's own timeout and abort handling. Removed checks for things OpenUI Cloud always sends, and the wrapper that ignored errors thrown by onProgress.
This branch was previously deployed
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 server SDK side of the dashboard agent (spec: thesysdev/muse#672; server: thesysdev/coda#1110, thesysdev/muse#673).
What it does
create()andedit()build onPOST /v1/dashboard/chat/completions. When the model asks for data, the SDK runs your data tools and sends back only the new results with the dashboard'sartifact_id, round after round, until the dashboard starts. The string they return is unchanged.create_scriptis handled for you: when the model saves a data script, the SDK runs it through/v1/app/execute(a draft run of the build in progress) against your tools and returns its output to the model.onProgressoncreate/editreports each tool call, each script the model checks, and the dashboard starting;describeDashboardProgressturns a step into a short label.defineDashboard({ reasoningEffort })sendsreasoning_effortwith every round.Release
create/editnow call your tools during the build and take longer.Tested