Loading...
Loading...
Write, review, or integrate Apple's on-device FoundationModels framework (iOS 26.0+, macOS 26.0+). Use when building generative AI features, structured data extraction, tool calling, or streaming text generation natively on Apple Silicon devices.
npx skill4agent add qyl/apple-foundation-models-skill apple-foundation-modelsreferences/_index.mdSystemLanguageModel.default.availabilityLanguageModelSession@State@MainActoractorToolSendable@GenerableToolprewarm()LanguageModelSession.exceededContextWindowSizeLanguageModelSessionTaskToolthrowstry?.default.contentTaggingrespond(to:)streamResponse(to:)@Generable@GuideTooldescriptionArguments@Generablecall(arguments:)| Topic | Reference |
|---|---|
| Core Models & Availability | |
| Session & Transcript Lifecycle | |
Structured Output & | |
Expanding capabilities ( | |
| Temperature & Token Limits | |
| Real-time UI & Streams | |
| Context Overflow & Fallbacks | |
| Actor Isolation & Sendable | |
| Memory, Prewarming & Optimization | |
| Framework Terminology | |
SystemLanguageModel.default.availabilityLanguageModelSession@StateactorLanguageModelSession.GenerationError.exceededContextWindowSizedo/catch.exceededContextWindowSizeprewarm().taskrespond(to:)Tool.call(arguments:)try?@GenerablePartiallyGeneratedstreamResponsereferences/_index.mdreferences/system-language-model.md.default.contentTaggingreferences/session-lifecycle.mdreferences/guided-generation.md@Generable@Guidereferences/tool-calling.mdToolSendableToolExecutionDelegatereferences/generation-options.md.greedy.randomreferences/streaming.mdstreamResponse(to:)PartiallyGeneratedreferences/error-handling.mdreferences/concurrency.md@MainActorreferences/performance.mdprewarm()references/glossary.md