Migrate Cloud Agent docs and SDK examples to API V4 - #207
Open
gregpr07 wants to merge 1 commit into
Open
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Member
Author
Full production documentation matrixRan a second, exhaustive production pass against the code patterns underlying the updated Agent docs. Results
Verified live:
Total test spend was approximately $0.523. The production API key was entered through a hidden prompt, was not written to disk, and a repository scan confirmed it is absent from the branch. Intentional boundaries:
No additional docs or SDK failures were found, so this pass requires no follow-up commit. |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
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.
Summary
cacheScript, oruseOwnKeyrequest flagsllms.txt/llms-full.txtcontext and point new agent integrations at V4modeloptional in the TypeScript request typeProduction verification
Tested with the published/local V4 Python and TypeScript clients:
outputSchema,cacheScript, anduseOwnKeyfields with HTTP 422The supplied test API key was used only at runtime and is not stored in this branch.
Tests
151 passed;pnpm typecheck;pnpm build43 passed, 22 skipped;uv buildmintlify openapi-checkgit diff --checkFull Mintlify validation has the same two pre-existing failures on clean
main:cloud/guides/x402.mdxopen-source/supported-models.mdxPython
pyrightalso retains the existing missing-import errors for the optionaleth_accountx402 dependencies.Summary by cubic
Migrated Cloud Agent docs and SDK examples to API V4 and aligned both SDKs with V4 runs, sessions, workspaces, and events. Adds session purge, makes run
modeloptional, and syncs the V4 OpenAPI, model list, and pricing.New Features
browser-use-node: exportRunCreateRequest;modelis optional (defaults tominimax-m3); addSessions.purge(sessionId); tests for model omission and purge.browser-use-python: addSessions.purge()(sync/async); sync model enum (kimi-k3,claude-opus-5,claude-fable-5); reduce workspace name max length to 100; tests updated./api-v4/*docs routing and refreshllms*.txt.Migration
runs.create()+runs.waitForCompletion()/wait_for_completion()(replace v3run()).output_schema/outputSchema.cacheScript/useOwnKey; BYOK is set in the dashboard and selected automatically.browser.readyevent; pollruns.events()withafterfor incremental updates.sessions.sendMessage()/send_message(); attach uploads per turn viaattachedFileIds/attached_file_ids.Written for commit 262a434. Summary will update on new commits.