docs(openrouter-typescript-sdk): sync with openrouter-web changes - #101
docs(openrouter-typescript-sdk): sync with openrouter-web changes#101devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Original prompt from Automation
|
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Summary
Three docs-from-code PRs landed in openrouter-web documenting new
@openrouter/agent0.8.0 public surface that the skill didn't cover:strictFinalResponse?: booleanoncallModel. Default is now tolerant: after at least one completed tool round, an empty finaloutputis retried once and then resolves with empty text instead of throwing.strictFinalResponse: truerestores the pre-0.8.0 throw.@openrouter/mcppackage:createMCPTools({ url, auth })→{ tools, close() }, spreadable intocallModel({ tools })alongside localtool()definitions.status: 'awaiting_client_tools'for unresolved manual tools, optionalversionfield withserializeConversationState()/deserializeConversationState()(InvalidStateError,UnsupportedStateVersionError), andsource: 'client' | 'mcp'onToolExecutionResult/ streamingtool.result.The last one also makes existing skill content wrong:
ToolExecutionResult.resultis no longer unconditionally "validated againstoutputSchema" — that only holds forsource === 'client'; MCP results areunknown. Corrected that line and added the install line, a "Final response behavior" subsection, manual-tool/state notes, and a "Remote MCP Tools" section. README's user-facing summary was still accurate.Link to Devin session: https://openrouter.devinenterprise.com/sessions/d563e5e98e9a4de79adbfc5f46009bd2