什么是 foundation-models-on-device?
用于设备上 LLM 的 Apple FoundationModels 框架 - iOS 26+ 中的文本生成、使用 @Generable 的引导生成、工具调用和快照流。 来源:affaan-m/everything-claude-code。
用于设备上 LLM 的 Apple FoundationModels 框架 - iOS 26+ 中的文本生成、使用 @Generable 的引导生成、工具调用和快照流。
通过命令行快速安装 foundation-models-on-device AI 技能到你的开发环境
来源:affaan-m/everything-claude-code。
Patterns for integrating Apple's on-device language model into apps using the FoundationModels framework. Covers text generation, structured output with @Generable, custom tool calling, and snapshot streaming — all running on-device for privacy and offline support.
Stream structured responses for real-time UI with PartiallyGenerated types:
| On-device execution | Privacy — no data leaves the device; works offline | | 4,096 token limit | On-device model constraint; chunk large data across sessions | | Snapshot streaming (not deltas) | Structured output friendly; each snapshot is a complete partial state |
用于设备上 LLM 的 Apple FoundationModels 框架 - iOS 26+ 中的文本生成、使用 @Generable 的引导生成、工具调用和快照流。 来源:affaan-m/everything-claude-code。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/affaan-m/everything-claude-code --skill foundation-models-on-device用于设备上 LLM 的 Apple FoundationModels 框架 - iOS 26+ 中的文本生成、使用 @Generable 的引导生成、工具调用和快照流。 来源:affaan-m/everything-claude-code。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/affaan-m/everything-claude-code --skill foundation-models-on-device 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/affaan-m/everything-claude-code