You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
packages/runtime/src/ai-sdk-backend.ts is 4,874 lines mixing provider adapter, tool schema building, prompt assembly, tool call settlement, streaming projection, and image overflow recovery in a single file.
I’d like to take the remaining tool-schema-builder slice of #3909, against current main after #4779.
Plan:
extract tool-mode validation, availability projection, AI SDK provider/function schema binding, and Code Mode nested-schema validation from ai-sdk-turn.ts into tool-schema-builder.ts;
keep tool execution and settlement in AiSdkTurn and ToolRuntime;
add focused direct tests for direct/Code Mode surfaces, provider-native versus function bindings, nesting eligibility, diagnostics, and input validation;
preserve existing behavior and introduce no new dependency cycles.
#4779 has already reduced ai-sdk-backend.ts below 2,000 lines and extracted several major responsibilities, so this PR will use Refs #3909 and will not claim to close the entire tracking issue.
Activity
jackeyfaker77 commentedon Sep 4, 2026
I’d like to take the remaining tool-schema-builder slice of #3909, against current
mainafter #4779.Plan:
ai-sdk-turn.tsintotool-schema-builder.ts;AiSdkTurnandToolRuntime;#4779 has already reduced
ai-sdk-backend.tsbelow 2,000 lines and extracted several major responsibilities, so this PR will useRefs #3909and will not claim to close the entire tracking issue.中文对照:
我想认领 #3909 中尚未完成的 tool-schema-builder 小切片,基于 #4779 合并后的最新
main。计划:
ai-sdk-turn.ts中抽出工具模式校验、可用工具投影、AI SDK provider/function schema 绑定,以及 Code Mode 嵌套工具参数校验;AiSdkTurn和ToolRuntime负责;Astro-Han commentedon Sep 17, 2026
Closing this as an issue for now: the direction has not been confirmed by a maintainer, and the tracker only keeps proposals that already have an agreed scope. Please continue it in GitHub Discussions (https://github.com/apache/maka/discussions); once the shape and acceptance criteria are settled there, open an issue with that scope and it will be picked up.
docs: verify the runtime core docs against main (#3522) (#6054)