{"abstract":[{"text":"Perform tasks with models that specialize in language understanding, structured output, and tool calling.","type":"text"}],"hierarchy":{"paths":[["doc:\/\/com.apple.documentation\/documentation\/technologies"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels"},"kind":"symbol","legalNotices":{"copyright":"Copyright &copy; 2026 Apple Inc. All rights reserved.","privacyPolicy":"https:\/\/www.apple.com\/privacy\/privacy-policy","termsOfUse":"https:\/\/www.apple.com\/legal\/internet-services\/terms\/site.html"},"metadata":{"availableLanguages":["de-DE","en-US","es-419","fr-FR","it-IT","ja-JP","ko-KR","pt-BR","zh-CN"],"externalID":"FoundationModels","images":[{"identifier":"foundation-models-framework-landing-PageImage-card.png","type":"card"}],"modules":[{"name":"Foundation Models"}],"navigatorTitle":[{"kind":"text","text":"Foundation Models"}],"platforms":[{"beta":false,"introducedAt":"26.0","name":"iOS"},{"beta":false,"introducedAt":"26.0","name":"iPadOS"},{"beta":false,"introducedAt":"26.0","name":"Mac Catalyst"},{"beta":false,"introducedAt":"26.0","name":"macOS"},{"beta":false,"introducedAt":"26.0","name":"visionOS"},{"beta":false,"introducedAt":"27.0","name":"watchOS"}],"role":"collection","roleHeading":"Framework","symbolKind":"module","title":"Foundation Models"},"primaryContentSections":[{"kind":"mentions","mentions":["doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/updating-prompts-for-new-model-versions"]},{"content":[{"anchor":"overview","level":2,"text":"Overview","type":"heading"},{"inlineContent":[{"text":"The Foundation Models framework provides access to any large language model, like","type":"text"},{"text":" ","type":"text"},{"text":"the on-device and Private Cloud Compute models designed for Apple","type":"text"},{"text":" ","type":"text"},{"text":"Intelligence. These models help you perform intelligent tasks specific to your use case.","type":"text"}],"type":"paragraph"},{"inlineContent":[{"identifier":"foundation-models-framework-hero","type":"image"}],"type":"paragraph"},{"inlineContent":[{"text":"On-device models excel at a diverse range of text generation tasks, like","type":"text"},{"text":" ","type":"text"},{"text":"summarization, entity extraction, text and image understanding, refinement,","type":"text"},{"text":" ","type":"text"},{"text":"dialog for games, generating creative content, and more. When you need more","type":"text"},{"text":" ","type":"text"},{"text":"reasoning capabilities and context size, use Private Cloud Compute","type":"text"},{"text":" ","type":"text"},{"text":"or any server model provider.","type":"text"}],"type":"paragraph"},{"inlineContent":[{"text":"The dynamic profile API provides the flexibility to select the best model configuration","type":"text"},{"text":" ","type":"text"},{"text":"for your task, and lets you build many useful abstractions, such as agents or skills.","type":"text"}],"type":"paragraph"},{"inlineContent":[{"text":"Generate entire Swift data structures with guided generation. With the ","type":"text"},{"code":"@Generable","type":"codeVoice"},{"text":"","type":"text"},{"text":" ","type":"text"},{"text":"macro, you can define custom data structures and the framework provides strong","type":"text"},{"text":" ","type":"text"},{"text":"guarantees that the model generates instances of your type.","type":"text"}],"type":"paragraph"},{"inlineContent":[{"text":"Use ","type":"text"},{"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/Tool","isActive":true,"type":"reference"},{"text":" to create custom tools that the model can call to assist with handling","type":"text"},{"text":" ","type":"text"},{"text":"your request. For example, the model can call a tool that searches a local or","type":"text"},{"text":" ","type":"text"},{"text":"online database for information, or calls a service in your app.","type":"text"}],"type":"paragraph"},{"inlineContent":[{"text":"To use Apple Foundation Models, people need a device that supports Apple","type":"text"},{"text":" ","type":"text"},{"text":"Intelligence. For a list of supported devices, see","type":"text"},{"text":" ","type":"text"},{"identifier":"https:\/\/www.apple.com\/apple-intelligence\/","isActive":true,"type":"reference"},{"text":".","type":"text"}],"type":"paragraph"},{"anchor":"Whats-new","level":3,"text":"What’s new","type":"heading"},{"items":["doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/adding-server-side-intelligence-with-private-cloud-compute","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/composing-dynamic-sessions-with-instructions-and-profiles","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/analyzing-images-with-multimodal-prompting","doc:\/\/com.apple.documentation\/videos\/play\/wwdc2026\/242","doc:\/\/com.apple.documentation\/videos\/play\/wwdc2026\/339","doc:\/\/com.apple.documentation\/videos\/play\/wwdc2026\/243"],"style":"compactGrid","type":"links"}],"kind":"content"}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"topicSections":[{"anchor":"Essentials","identifiers":["doc:\/\/com.apple.documentation\/documentation\/Updates\/FoundationModels","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/generating-content-and-performing-tasks-with-foundation-models","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/adding-intelligent-app-features-with-generative-models"],"title":"Essentials"},{"anchor":"Sessions-and-prompts","identifiers":["doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/prompting-an-on-device-foundation-model","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/managing-the-context-window","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/updating-prompts-for-new-model-versions","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelSession","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/Instructions","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/Prompt","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/GenerationOptions","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/ContextOptions"],"title":"Sessions and prompts"},{"anchor":"Session-transcripts","identifiers":["doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/transcripts"],"title":"Session transcripts"},{"anchor":"Prompt-attachments","identifiers":["doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/analyzing-images-with-multimodal-prompting","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/Attachment","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/ImageAttachmentContent","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/ImageReference"],"title":"Prompt attachments"},{"anchor":"Dynamic-profiles","identifiers":["doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/composing-dynamic-sessions-with-instructions-and-profiles","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/origami-crafting-a-dynamic-tutorial-for-apple-intelligence","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/DynamicInstructions","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/DynamicInstructionsForEach","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelSession\/DynamicProfile","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelSession\/DynamicProfileModifier","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelSession\/Profile"],"title":"Dynamic profiles"},{"anchor":"Structured-output","identifiers":["doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/generating-swift-data-structures-with-guided-generation","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/Generable(description:)","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/Guide(description:)","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/Generable","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/GenerationSchema","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/DynamicGenerationSchema","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/GeneratedContent","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/ConvertibleToGeneratedContent","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/ConvertibleFromGeneratedContent"],"title":"Structured output"},{"anchor":"Tools","identifiers":["doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/expanding-generation-with-tool-calling","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/generate-dynamic-game-content-with-guided-generation-and-tools","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/Tool"],"title":"Tools"},{"anchor":"System-language-model","identifiers":["doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/supporting-languages-and-locales-with-foundation-models","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/categorizing-and-organizing-data-with-content-tags","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/SystemLanguageModel","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelError"],"title":"System language model"},{"anchor":"Private-Cloud-Compute","identifiers":["doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/adding-server-side-intelligence-with-private-cloud-compute","doc:\/\/com.apple.documentation\/documentation\/BundleResources\/Entitlements\/com.apple.developer.private-cloud-compute","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/PrivateCloudComputeLanguageModel"],"title":"Private Cloud Compute"},{"anchor":"Custom-language-model-provider","identifiers":["doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/running-a-core-ai-model-in-a-foundation-models-session","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/optimizing-key-value-caching-in-language-model-sessions","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModel","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelCapabilities","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelExecutor","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelExecutorGenerationChannel","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelExecutorGenerationRequest"],"title":"Custom language model provider"},{"anchor":"Custom-session-properties","identifiers":["doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelSession\/SessionProperty","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/SessionPropertyKey","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/SessionPropertyValues","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/SessionPropertyEntry()"],"title":"Custom session properties"},{"anchor":"Safety","identifiers":["doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/improving-the-safety-of-generative-model-output"],"title":"Safety"},{"anchor":"Performance-and-evaluation","identifiers":["doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/evaluating-prompts-to-measure-performance-and-improve-model-responses","doc:\/\/com.apple.documentation\/documentation\/Evaluations\/evaluating-language-model-responses","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/analyzing-the-runtime-performance-of-your-foundation-models-app"],"title":"Performance and evaluation"},{"anchor":"Protocols","generated":true,"identifiers":["doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/DataAttachmentRepresentable","doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/DataEntryRepresentable"],"title":"Protocols"}],"variants":[{"paths":["\/documentation\/foundationmodels"],"traits":[{"interfaceLanguage":"swift"}]}],"references":{"A5CE0D3F-999F-4926-8EA3-8C9722481512":{"alt":null,"identifier":"A5CE0D3F-999F-4926-8EA3-8C9722481512","type":"image","variants":[{"traits":["1x"],"url":"https:\/\/devimages-cdn.apple.com\/wwdc-services\/images\/9B2E82C5-4DDF-4B9A-9459-328D8E297696\/A5CE0D3F-999F-4926-8EA3-8C9722481512\/10765_wide_250x141_1x.jpg"},{"traits":["2x"],"url":"https:\/\/devimages-cdn.apple.com\/wwdc-services\/images\/9B2E82C5-4DDF-4B9A-9459-328D8E297696\/A5CE0D3F-999F-4926-8EA3-8C9722481512\/10765_wide_250x141_2x.jpg"},{"traits":["3x"],"url":"https:\/\/devimages-cdn.apple.com\/wwdc-services\/images\/9B2E82C5-4DDF-4B9A-9459-328D8E297696\/A5CE0D3F-999F-4926-8EA3-8C9722481512\/10765_wide_250x141_3x.jpg"}]},"D9376DDA-DFF2-4347-984B-08875E34E198":{"alt":null,"identifier":"D9376DDA-DFF2-4347-984B-08875E34E198","type":"image","variants":[{"traits":["1x"],"url":"https:\/\/devimages-cdn.apple.com\/wwdc-services\/images\/9B2E82C5-4DDF-4B9A-9459-328D8E297696\/D9376DDA-DFF2-4347-984B-08875E34E198\/10886_wide_250x141_1x.jpg"},{"traits":["2x"],"url":"https:\/\/devimages-cdn.apple.com\/wwdc-services\/images\/9B2E82C5-4DDF-4B9A-9459-328D8E297696\/D9376DDA-DFF2-4347-984B-08875E34E198\/10886_wide_250x141_2x.jpg"},{"traits":["3x"],"url":"https:\/\/devimages-cdn.apple.com\/wwdc-services\/images\/9B2E82C5-4DDF-4B9A-9459-328D8E297696\/D9376DDA-DFF2-4347-984B-08875E34E198\/10886_wide_250x141_3x.jpg"}]},"DB6B2AC7-AAD3-4257-A5BF-7F26B1979390":{"alt":null,"identifier":"DB6B2AC7-AAD3-4257-A5BF-7F26B1979390","type":"image","variants":[{"traits":["1x"],"url":"https:\/\/devimages-cdn.apple.com\/wwdc-services\/images\/9B2E82C5-4DDF-4B9A-9459-328D8E297696\/DB6B2AC7-AAD3-4257-A5BF-7F26B1979390\/10766_wide_250x141_1x.jpg"},{"traits":["2x"],"url":"https:\/\/devimages-cdn.apple.com\/wwdc-services\/images\/9B2E82C5-4DDF-4B9A-9459-328D8E297696\/DB6B2AC7-AAD3-4257-A5BF-7F26B1979390\/10766_wide_250x141_2x.jpg"},{"traits":["3x"],"url":"https:\/\/devimages-cdn.apple.com\/wwdc-services\/images\/9B2E82C5-4DDF-4B9A-9459-328D8E297696\/DB6B2AC7-AAD3-4257-A5BF-7F26B1979390\/10766_wide_250x141_3x.jpg"}]},"adding-intelligent-app-features-with-generative-models-PageImage-card.png":{"alt":"A screenshot of an itinerary planning app.","identifier":"adding-intelligent-app-features-with-generative-models-PageImage-card.png","type":"image","variants":[{"traits":["2x","light"],"url":"\/images\/com.apple.foundationmodels\/adding-intelligent-app-features-with-generative-models-PageImage-card@2x.png"},{"traits":["2x","dark"],"url":"\/images\/com.apple.foundationmodels\/adding-intelligent-app-features-with-generative-models-PageImage-card~dark@2x.png"}]},"adding-server-side-intelligence-with-private-cloud-compute-PageImage-card.png":{"alt":"","identifier":"adding-server-side-intelligence-with-private-cloud-compute-PageImage-card.png","type":"image","variants":[{"traits":["2x","light"],"url":"\/images\/com.apple.foundationmodels\/adding-server-side-intelligence-with-private-cloud-compute-PageImage-card@2x.png"},{"traits":["2x","dark"],"url":"\/images\/com.apple.foundationmodels\/adding-server-side-intelligence-with-private-cloud-compute-PageImage-card~dark@2x.png"}]},"analyzing-images-with-multimodal-prompting-PageImage-card.png":{"alt":"","identifier":"analyzing-images-with-multimodal-prompting-PageImage-card.png","type":"image","variants":[{"traits":["2x","light"],"url":"\/images\/com.apple.foundationmodels\/analyzing-images-with-multimodal-prompting-PageImage-card@2x.png"},{"traits":["2x","dark"],"url":"\/images\/com.apple.foundationmodels\/analyzing-images-with-multimodal-prompting-PageImage-card~dark@2x.png"}]},"composing-dynamic-sessions-with-instructions-and-profiles-PageImage-card.png":{"alt":"","identifier":"composing-dynamic-sessions-with-instructions-and-profiles-PageImage-card.png","type":"image","variants":[{"traits":["2x","light"],"url":"\/images\/com.apple.foundationmodels\/composing-dynamic-sessions-with-instructions-and-profiles-PageImage-card@2x.png"},{"traits":["2x","dark"],"url":"\/images\/com.apple.foundationmodels\/composing-dynamic-sessions-with-instructions-and-profiles-PageImage-card~dark@2x.png"}]},"doc://com.apple.documentation/documentation/BundleResources/Entitlements/com.apple.developer.private-cloud-compute":{"abstract":[{"text":"A Boolean value that indicates whether the app can use Private Cloud Compute.","type":"text"}],"identifier":"doc:\/\/com.apple.documentation\/documentation\/BundleResources\/Entitlements\/com.apple.developer.private-cloud-compute","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"com.apple.developer.private-cloud-compute"}],"role":"symbol","title":"com.apple.developer.private-cloud-compute","type":"topic","url":"\/documentation\/bundleresources\/entitlements\/com.apple.developer.private-cloud-compute"},"doc://com.apple.documentation/documentation/Evaluations/evaluating-language-model-responses":{"abstract":[{"text":"Build an evaluation that runs your intelligence-powered feature against samples and scores each response.","type":"text"}],"identifier":"doc:\/\/com.apple.documentation\/documentation\/Evaluations\/evaluating-language-model-responses","kind":"article","role":"article","title":"Evaluating language model responses","type":"topic","url":"\/documentation\/evaluations\/evaluating-language-model-responses"},"doc://com.apple.documentation/documentation/Updates/FoundationModels":{"abstract":[{"text":"Learn about important changes to Foundation Models.","type":"text"}],"identifier":"doc:\/\/com.apple.documentation\/documentation\/Updates\/FoundationModels","kind":"article","role":"article","title":"Foundation Models updates","type":"topic","url":"\/documentation\/updates\/foundationmodels"},"doc://com.apple.documentation/documentation/technologies":{"abstract":[],"identifier":"doc:\/\/com.apple.documentation\/documentation\/technologies","kind":"technologies","role":"overview","title":"Technologies","type":"topic","url":"\/documentation\/technologies"},"doc://com.apple.documentation/videos/play/wwdc2026/242":{"abstract":[{"text":"Learn how to take your intelligence features further with Foundation Models framework primitives for dynamic context and agentic workflows. We’ll walk through engineering shared context, setting up privacy boundaries, and managing key value caching. Discover how to orchestrate smooth handoffs between local and server models.\n","type":"text"}],"identifier":"doc:\/\/com.apple.documentation\/videos\/play\/wwdc2026\/242","images":[{"identifier":"A5CE0D3F-999F-4926-8EA3-8C9722481512","type":"card"}],"kind":"article","role":"article","title":"Build agentic app experiences with the Foundation Models framework","type":"topic","url":"https:\/\/developer.apple.com\/videos\/play\/wwdc2026\/242"},"doc://com.apple.documentation/videos/play/wwdc2026/243":{"abstract":[{"text":"Explore the enhanced FoundationModels instrument in Xcode to inspect behavior and optimize the performance of agentic flows. Learn how to inspect prompts, analyze latency, and trace control flow in advanced use cases that leverage multiple LanguageModelSessions and profiles.","type":"text"}],"identifier":"doc:\/\/com.apple.documentation\/videos\/play\/wwdc2026\/243","images":[{"identifier":"DB6B2AC7-AAD3-4257-A5BF-7F26B1979390","type":"card"}],"kind":"article","role":"article","title":"Debug and profile agentic app experiences with Instruments","type":"topic","url":"https:\/\/developer.apple.com\/videos\/play\/wwdc2026\/243"},"doc://com.apple.documentation/videos/play/wwdc2026/339":{"abstract":[{"text":"Extend the Foundation Models framework by implementing a LanguageModelExecutor for new models. Explore how to interface with the LanguageModelSession’s transcript, manage session state effectively, and optimize KV cache utilization. Find out how to support custom segment types and unlock advanced capabilities for your generative AI features.","type":"text"}],"identifier":"doc:\/\/com.apple.documentation\/videos\/play\/wwdc2026\/339","images":[{"identifier":"D9376DDA-DFF2-4347-984B-08875E34E198","type":"card"}],"kind":"article","role":"article","title":"Bring an LLM provider to the Foundation Models framework","type":"topic","url":"https:\/\/developer.apple.com\/videos\/play\/wwdc2026\/339"},"doc://com.apple.foundationmodels/documentation/FoundationModels":{"abstract":[{"text":"Perform tasks with models that specialize in language understanding, structured output, and tool calling.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels","images":[{"identifier":"foundation-models-framework-landing-PageImage-card.png","type":"card"}],"kind":"symbol","navigatorTitle":[{"kind":"text","text":"Foundation Models"}],"role":"collection","title":"Foundation Models","type":"topic","url":"\/documentation\/foundationmodels"},"doc://com.apple.foundationmodels/documentation/FoundationModels/Attachment":{"abstract":[{"text":"An asset provided to the model.","type":"text"}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Attachment"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/Attachment","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Attachment"}],"role":"symbol","title":"Attachment","type":"topic","url":"\/documentation\/foundationmodels\/attachment"},"doc://com.apple.foundationmodels/documentation/FoundationModels/ContextOptions":{"abstract":[{"text":"Options that configure details that should appear in the prompt.","type":"text"}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"ContextOptions"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/ContextOptions","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"ContextOptions"}],"role":"symbol","title":"ContextOptions","type":"topic","url":"\/documentation\/foundationmodels\/contextoptions"},"doc://com.apple.foundationmodels/documentation/FoundationModels/ConvertibleFromGeneratedContent":{"abstract":[{"text":"A type that can be initialized from generated content.","type":"text"}],"fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"ConvertibleFromGeneratedContent"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/ConvertibleFromGeneratedContent","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"ConvertibleFromGeneratedContent"}],"role":"symbol","title":"ConvertibleFromGeneratedContent","type":"topic","url":"\/documentation\/foundationmodels\/convertiblefromgeneratedcontent"},"doc://com.apple.foundationmodels/documentation/FoundationModels/ConvertibleToGeneratedContent":{"abstract":[{"text":"A type that can be converted to generated content.","type":"text"}],"fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"ConvertibleToGeneratedContent"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/ConvertibleToGeneratedContent","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"ConvertibleToGeneratedContent"}],"role":"symbol","title":"ConvertibleToGeneratedContent","type":"topic","url":"\/documentation\/foundationmodels\/convertibletogeneratedcontent"},"doc://com.apple.foundationmodels/documentation/FoundationModels/DataAttachmentRepresentable":{"abstract":[{"text":"A type that you use as the content of a data attachment.","type":"text"}],"beta":true,"fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"DataAttachmentRepresentable"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/DataAttachmentRepresentable","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"DataAttachmentRepresentable"}],"role":"symbol","title":"DataAttachmentRepresentable","type":"topic","url":"\/documentation\/foundationmodels\/dataattachmentrepresentable"},"doc://com.apple.foundationmodels/documentation/FoundationModels/DataEntryRepresentable":{"abstract":[{"text":"A type that a model can produce and represent as a top-level transcript entry.","type":"text"}],"beta":true,"fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"DataEntryRepresentable"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/DataEntryRepresentable","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"DataEntryRepresentable"}],"role":"symbol","title":"DataEntryRepresentable","type":"topic","url":"\/documentation\/foundationmodels\/dataentryrepresentable"},"doc://com.apple.foundationmodels/documentation/FoundationModels/DynamicGenerationSchema":{"abstract":[{"text":"The dynamic counterpart to the generation schema type that you use to construct schemas at runtime.","type":"text"}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"DynamicGenerationSchema"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/DynamicGenerationSchema","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"DynamicGenerationSchema"}],"role":"symbol","title":"DynamicGenerationSchema","type":"topic","url":"\/documentation\/foundationmodels\/dynamicgenerationschema"},"doc://com.apple.foundationmodels/documentation/FoundationModels/DynamicInstructions":{"abstract":[{"text":"A type that represents dynamic instructions.","type":"text"}],"fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"DynamicInstructions"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/DynamicInstructions","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"DynamicInstructions"}],"role":"symbol","title":"DynamicInstructions","type":"topic","url":"\/documentation\/foundationmodels\/dynamicinstructions"},"doc://com.apple.foundationmodels/documentation/FoundationModels/DynamicInstructionsForEach":{"abstract":[{"text":"Dynamic instructions that produce content for each element of a collection.","type":"text"}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"DynamicInstructionsForEach"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/DynamicInstructionsForEach","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"DynamicInstructionsForEach"}],"role":"symbol","title":"DynamicInstructionsForEach","type":"topic","url":"\/documentation\/foundationmodels\/dynamicinstructionsforeach"},"doc://com.apple.foundationmodels/documentation/FoundationModels/Generable":{"abstract":[{"text":"A type that the model uses when responding to prompts.","type":"text"}],"fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"Generable"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/Generable","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Generable"}],"role":"symbol","title":"Generable","type":"topic","url":"\/documentation\/foundationmodels\/generable"},"doc://com.apple.foundationmodels/documentation/FoundationModels/Generable(description:)":{"abstract":[],"fragments":[{"kind":"keyword","text":"macro"},{"kind":"text","text":" "},{"kind":"identifier","text":"Generable"},{"kind":"text","text":"("},{"kind":"externalParam","text":"description"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":"?)"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/Generable(description:)","kind":"symbol","role":"symbol","title":"Generable(description:)","type":"topic","url":"\/documentation\/foundationmodels\/generable(description:)"},"doc://com.apple.foundationmodels/documentation/FoundationModels/GeneratedContent":{"abstract":[{"text":"A type that represents structured, generated content.","type":"text"}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"GeneratedContent"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/GeneratedContent","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"GeneratedContent"}],"role":"symbol","title":"GeneratedContent","type":"topic","url":"\/documentation\/foundationmodels\/generatedcontent"},"doc://com.apple.foundationmodels/documentation/FoundationModels/GenerationOptions":{"abstract":[{"text":"Options that control how the model generates its response to a prompt.","type":"text"}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"GenerationOptions"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/GenerationOptions","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"GenerationOptions"}],"role":"symbol","title":"GenerationOptions","type":"topic","url":"\/documentation\/foundationmodels\/generationoptions"},"doc://com.apple.foundationmodels/documentation/FoundationModels/GenerationSchema":{"abstract":[{"text":"A type that describes the properties of an object and any guides","type":"text"},{"text":" ","type":"text"},{"text":"on their values.","type":"text"}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"GenerationSchema"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/GenerationSchema","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"GenerationSchema"}],"role":"symbol","title":"GenerationSchema","type":"topic","url":"\/documentation\/foundationmodels\/generationschema"},"doc://com.apple.foundationmodels/documentation/FoundationModels/Guide(description:)":{"abstract":[],"fragments":[{"kind":"keyword","text":"macro"},{"kind":"text","text":" "},{"kind":"identifier","text":"Guide"},{"kind":"text","text":"("},{"kind":"externalParam","text":"description"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":")"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/Guide(description:)","kind":"symbol","role":"symbol","title":"Guide(description:)","type":"topic","url":"\/documentation\/foundationmodels\/guide(description:)"},"doc://com.apple.foundationmodels/documentation/FoundationModels/ImageAttachmentContent":{"abstract":[{"text":"A type that holds image data.","type":"text"}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"ImageAttachmentContent"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/ImageAttachmentContent","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"ImageAttachmentContent"}],"role":"symbol","title":"ImageAttachmentContent","type":"topic","url":"\/documentation\/foundationmodels\/imageattachmentcontent"},"doc://com.apple.foundationmodels/documentation/FoundationModels/ImageReference":{"abstract":[{"text":"A reference to an image in a session’s transcript.","type":"text"}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"ImageReference"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/ImageReference","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"ImageReference"}],"role":"symbol","title":"ImageReference","type":"topic","url":"\/documentation\/foundationmodels\/imagereference"},"doc://com.apple.foundationmodels/documentation/FoundationModels/Instructions":{"abstract":[{"text":"Details you provide that define the model’s intended behavior on prompts.","type":"text"}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Instructions"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/Instructions","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Instructions"}],"role":"symbol","title":"Instructions","type":"topic","url":"\/documentation\/foundationmodels\/instructions"},"doc://com.apple.foundationmodels/documentation/FoundationModels/LanguageModel":{"abstract":[{"text":"A protocol that you use to interface with a model.","type":"text"}],"fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"LanguageModel"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModel","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"LanguageModel"}],"role":"symbol","title":"LanguageModel","type":"topic","url":"\/documentation\/foundationmodels\/languagemodel"},"doc://com.apple.foundationmodels/documentation/FoundationModels/LanguageModelCapabilities":{"abstract":[{"text":"A set of capabilities that a language model provides.","type":"text"}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"LanguageModelCapabilities"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelCapabilities","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"LanguageModelCapabilities"}],"role":"symbol","title":"LanguageModelCapabilities","type":"topic","url":"\/documentation\/foundationmodels\/languagemodelcapabilities"},"doc://com.apple.foundationmodels/documentation/FoundationModels/LanguageModelError":{"abstract":[{"text":"A failure that may occur while generating a response when using any language model.","type":"text"}],"fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"LanguageModelError"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelError","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"LanguageModelError"}],"role":"symbol","title":"LanguageModelError","type":"topic","url":"\/documentation\/foundationmodels\/languagemodelerror"},"doc://com.apple.foundationmodels/documentation/FoundationModels/LanguageModelExecutor":{"abstract":[{"text":"A protocol that defines the interface for responding to session requests.","type":"text"}],"fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"LanguageModelExecutor"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelExecutor","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"LanguageModelExecutor"}],"role":"symbol","title":"LanguageModelExecutor","type":"topic","url":"\/documentation\/foundationmodels\/languagemodelexecutor"},"doc://com.apple.foundationmodels/documentation/FoundationModels/LanguageModelExecutorGenerationChannel":{"abstract":[{"text":"A type you use to send model output deltas and updates to the framework.","type":"text"}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"LanguageModelExecutorGenerationChannel"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelExecutorGenerationChannel","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"LanguageModelExecutorGenerationChannel"}],"role":"symbol","title":"LanguageModelExecutorGenerationChannel","type":"topic","url":"\/documentation\/foundationmodels\/languagemodelexecutorgenerationchannel"},"doc://com.apple.foundationmodels/documentation/FoundationModels/LanguageModelExecutorGenerationRequest":{"abstract":[{"text":"A type that contains the details for a generation request.","type":"text"}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"LanguageModelExecutorGenerationRequest"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelExecutorGenerationRequest","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"LanguageModelExecutorGenerationRequest"}],"role":"symbol","title":"LanguageModelExecutorGenerationRequest","type":"topic","url":"\/documentation\/foundationmodels\/languagemodelexecutorgenerationrequest"},"doc://com.apple.foundationmodels/documentation/FoundationModels/LanguageModelSession":{"abstract":[{"text":"An object that represents a session that interacts with a language model.","type":"text"}],"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"LanguageModelSession"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelSession","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"LanguageModelSession"}],"role":"symbol","title":"LanguageModelSession","type":"topic","url":"\/documentation\/foundationmodels\/languagemodelsession"},"doc://com.apple.foundationmodels/documentation/FoundationModels/LanguageModelSession/DynamicProfile":{"abstract":[{"text":"A dynamic profile that contains one or more profiles.","type":"text"}],"fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"DynamicProfile"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelSession\/DynamicProfile","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"DynamicProfile"}],"role":"symbol","title":"LanguageModelSession.DynamicProfile","type":"topic","url":"\/documentation\/foundationmodels\/languagemodelsession\/dynamicprofile"},"doc://com.apple.foundationmodels/documentation/FoundationModels/LanguageModelSession/DynamicProfileModifier":{"abstract":[{"text":"A protocol for creating reusable wrappers around dynamic profile content.","type":"text"}],"fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"DynamicProfileModifier"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelSession\/DynamicProfileModifier","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"DynamicProfileModifier"}],"role":"symbol","title":"LanguageModelSession.DynamicProfileModifier","type":"topic","url":"\/documentation\/foundationmodels\/languagemodelsession\/dynamicprofilemodifier"},"doc://com.apple.foundationmodels/documentation/FoundationModels/LanguageModelSession/Profile":{"abstract":[{"text":"A profile that contains dynamic instructions.","type":"text"}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Profile"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelSession\/Profile","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Profile"}],"role":"symbol","title":"LanguageModelSession.Profile","type":"topic","url":"\/documentation\/foundationmodels\/languagemodelsession\/profile"},"doc://com.apple.foundationmodels/documentation/FoundationModels/LanguageModelSession/SessionProperty":{"abstract":[{"text":"A property wrapper that provides access to properties from within profiles, dynamic","type":"text"},{"text":" ","type":"text"},{"text":"instructions, and tools.","type":"text"}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"SessionProperty"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/LanguageModelSession\/SessionProperty","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"SessionProperty"}],"role":"symbol","title":"LanguageModelSession.SessionProperty","type":"topic","url":"\/documentation\/foundationmodels\/languagemodelsession\/sessionproperty"},"doc://com.apple.foundationmodels/documentation/FoundationModels/PrivateCloudComputeLanguageModel":{"abstract":[{"text":"A variant of Apple Foundation Models that runs on Private Cloud Compute to provide enhanced","type":"text"},{"text":" ","type":"text"},{"text":"capabilities while maintaining privacy guarantees.","type":"text"}],"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"PrivateCloudComputeLanguageModel"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/PrivateCloudComputeLanguageModel","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"PrivateCloudComputeLanguageModel"}],"role":"symbol","title":"PrivateCloudComputeLanguageModel","type":"topic","url":"\/documentation\/foundationmodels\/privatecloudcomputelanguagemodel"},"doc://com.apple.foundationmodels/documentation/FoundationModels/Prompt":{"abstract":[{"text":"A prompt from a person to the model.","type":"text"}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Prompt"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/Prompt","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Prompt"}],"role":"symbol","title":"Prompt","type":"topic","url":"\/documentation\/foundationmodels\/prompt"},"doc://com.apple.foundationmodels/documentation/FoundationModels/SessionPropertyEntry()":{"abstract":[],"fragments":[{"kind":"keyword","text":"macro"},{"kind":"text","text":" "},{"kind":"identifier","text":"SessionPropertyEntry"},{"kind":"text","text":"()"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/SessionPropertyEntry()","kind":"symbol","role":"symbol","title":"SessionPropertyEntry()","type":"topic","url":"\/documentation\/foundationmodels\/sessionpropertyentry()"},"doc://com.apple.foundationmodels/documentation/FoundationModels/SessionPropertyKey":{"abstract":[{"text":"A protocol for defining a custom session property key.","type":"text"}],"fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"SessionPropertyKey"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/SessionPropertyKey","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"SessionPropertyKey"}],"role":"symbol","title":"SessionPropertyKey","type":"topic","url":"\/documentation\/foundationmodels\/sessionpropertykey"},"doc://com.apple.foundationmodels/documentation/FoundationModels/SessionPropertyValues":{"abstract":[{"text":"A container for property values.","type":"text"}],"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"SessionPropertyValues"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/SessionPropertyValues","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"SessionPropertyValues"}],"role":"symbol","title":"SessionPropertyValues","type":"topic","url":"\/documentation\/foundationmodels\/sessionpropertyvalues"},"doc://com.apple.foundationmodels/documentation/FoundationModels/SystemLanguageModel":{"abstract":[{"text":"An on-device Apple Foundation Model capable of text generation tasks.","type":"text"}],"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"SystemLanguageModel"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/SystemLanguageModel","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"SystemLanguageModel"}],"role":"symbol","title":"SystemLanguageModel","type":"topic","url":"\/documentation\/foundationmodels\/systemlanguagemodel"},"doc://com.apple.foundationmodels/documentation/FoundationModels/Tool":{"abstract":[{"text":"A tool that a model can call to gather information at runtime or perform side effects.","type":"text"}],"fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"Tool"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/Tool","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Tool"}],"role":"symbol","title":"Tool","type":"topic","url":"\/documentation\/foundationmodels\/tool"},"doc://com.apple.foundationmodels/documentation/FoundationModels/adding-intelligent-app-features-with-generative-models":{"abstract":[{"text":"Build robust apps with guided generation and tool calling by adopting the Foundation Models framework.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/adding-intelligent-app-features-with-generative-models","images":[{"identifier":"adding-intelligent-app-features-with-generative-models-PageImage-card.png","type":"card"}],"kind":"article","role":"sampleCode","title":"Adding intelligent app features with generative models","type":"topic","url":"\/documentation\/foundationmodels\/adding-intelligent-app-features-with-generative-models"},"doc://com.apple.foundationmodels/documentation/FoundationModels/adding-server-side-intelligence-with-private-cloud-compute":{"abstract":[{"text":"Access a larger context window and stronger reasoning by routing session requests","type":"text"},{"text":" ","type":"text"},{"text":"through Private Cloud Compute.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/adding-server-side-intelligence-with-private-cloud-compute","images":[{"identifier":"adding-server-side-intelligence-with-private-cloud-compute-PageImage-card.png","type":"card"}],"kind":"article","role":"article","title":"Adding server-side intelligence with Private Cloud Compute","type":"topic","url":"\/documentation\/foundationmodels\/adding-server-side-intelligence-with-private-cloud-compute"},"doc://com.apple.foundationmodels/documentation/FoundationModels/analyzing-images-with-multimodal-prompting":{"abstract":[{"text":"Analyze and extract information from images by combining them with descriptive text prompts.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/analyzing-images-with-multimodal-prompting","images":[{"identifier":"analyzing-images-with-multimodal-prompting-PageImage-card.png","type":"card"}],"kind":"article","role":"article","title":"Analyzing images with multimodal prompting","type":"topic","url":"\/documentation\/foundationmodels\/analyzing-images-with-multimodal-prompting"},"doc://com.apple.foundationmodels/documentation/FoundationModels/analyzing-the-runtime-performance-of-your-foundation-models-app":{"abstract":[{"text":"Measure how prompts, responses, and tool calls affect token consumption and","type":"text"},{"text":" ","type":"text"},{"text":"response times in Instruments.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/analyzing-the-runtime-performance-of-your-foundation-models-app","kind":"article","role":"article","title":"Analyzing the runtime performance of your Foundation Models app","type":"topic","url":"\/documentation\/foundationmodels\/analyzing-the-runtime-performance-of-your-foundation-models-app"},"doc://com.apple.foundationmodels/documentation/FoundationModels/categorizing-and-organizing-data-with-content-tags":{"abstract":[{"text":"Identify topics, actions, objects, and emotions in input text with a content tagging model.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/categorizing-and-organizing-data-with-content-tags","kind":"article","role":"article","title":"Categorizing and organizing data with content tags","type":"topic","url":"\/documentation\/foundationmodels\/categorizing-and-organizing-data-with-content-tags"},"doc://com.apple.foundationmodels/documentation/FoundationModels/composing-dynamic-sessions-with-instructions-and-profiles":{"abstract":[{"text":"Adapt sessions dynamically at runtime by loading instructions and tools based","type":"text"},{"text":" ","type":"text"},{"text":"on the state of your app.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/composing-dynamic-sessions-with-instructions-and-profiles","images":[{"identifier":"composing-dynamic-sessions-with-instructions-and-profiles-PageImage-card.png","type":"card"}],"kind":"article","role":"article","title":"Composing dynamic sessions with instructions and profiles","type":"topic","url":"\/documentation\/foundationmodels\/composing-dynamic-sessions-with-instructions-and-profiles"},"doc://com.apple.foundationmodels/documentation/FoundationModels/evaluating-prompts-to-measure-performance-and-improve-model-responses":{"abstract":[{"text":"Systematically measure and improve the quality of your prompts by using structured evaluation.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/evaluating-prompts-to-measure-performance-and-improve-model-responses","images":[{"identifier":"evaluating-your-apps-prompts-PageImage-card.png","type":"card"}],"kind":"article","role":"article","title":"Evaluating prompts to measure performance and improve model responses","type":"topic","url":"\/documentation\/foundationmodels\/evaluating-prompts-to-measure-performance-and-improve-model-responses"},"doc://com.apple.foundationmodels/documentation/FoundationModels/expanding-generation-with-tool-calling":{"abstract":[{"text":"Build tools that enable the model to perform tasks that are specific to your use case.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/expanding-generation-with-tool-calling","kind":"article","role":"article","title":"Expanding generation with tool calling","type":"topic","url":"\/documentation\/foundationmodels\/expanding-generation-with-tool-calling"},"doc://com.apple.foundationmodels/documentation/FoundationModels/generate-dynamic-game-content-with-guided-generation-and-tools":{"abstract":[{"text":"Make gameplay more lively with AI generated dialog and encounters personalized to the player.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/generate-dynamic-game-content-with-guided-generation-and-tools","kind":"article","role":"sampleCode","title":"Generate dynamic game content with guided generation and tools","type":"topic","url":"\/documentation\/foundationmodels\/generate-dynamic-game-content-with-guided-generation-and-tools"},"doc://com.apple.foundationmodels/documentation/FoundationModels/generating-content-and-performing-tasks-with-foundation-models":{"abstract":[{"text":"Enhance the experience in your app by prompting an on-device large language model.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/generating-content-and-performing-tasks-with-foundation-models","images":[{"identifier":"foundation-models-PageImage-card.png","type":"card"}],"kind":"article","role":"article","title":"Generating content and performing tasks with Foundation Models","type":"topic","url":"\/documentation\/foundationmodels\/generating-content-and-performing-tasks-with-foundation-models"},"doc://com.apple.foundationmodels/documentation/FoundationModels/generating-swift-data-structures-with-guided-generation":{"abstract":[{"text":"Create robust apps by describing output you want programmatically.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/generating-swift-data-structures-with-guided-generation","kind":"article","role":"article","title":"Generating Swift data structures with guided generation","type":"topic","url":"\/documentation\/foundationmodels\/generating-swift-data-structures-with-guided-generation"},"doc://com.apple.foundationmodels/documentation/FoundationModels/improving-the-safety-of-generative-model-output":{"abstract":[{"text":"Create generative experiences that appropriately handle sensitive inputs and respect people.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/improving-the-safety-of-generative-model-output","images":[{"identifier":"improving-safety-of-model-output-PageImage-card.png","type":"card"}],"kind":"article","role":"article","title":"Improving the safety of generative model output","type":"topic","url":"\/documentation\/foundationmodels\/improving-the-safety-of-generative-model-output"},"doc://com.apple.foundationmodels/documentation/FoundationModels/managing-the-context-window":{"abstract":[{"text":"Optimize your app’s token usage when prompting a model with the Foundation Models","type":"text"},{"text":" ","type":"text"},{"text":"framework.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/managing-the-context-window","kind":"article","role":"article","title":"Managing the context window","type":"topic","url":"\/documentation\/foundationmodels\/managing-the-context-window"},"doc://com.apple.foundationmodels/documentation/FoundationModels/optimizing-key-value-caching-in-language-model-sessions":{"abstract":[{"text":"Prevent repeated token processing by preserving the cached state across turns.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/optimizing-key-value-caching-in-language-model-sessions","kind":"article","role":"article","title":"Optimizing key-value caching in language model sessions","type":"topic","url":"\/documentation\/foundationmodels\/optimizing-key-value-caching-in-language-model-sessions"},"doc://com.apple.foundationmodels/documentation/FoundationModels/origami-crafting-a-dynamic-tutorial-for-apple-intelligence":{"abstract":[{"text":"Build interactive experiences with Foundation Models and Private Cloud Compute using multimodal prompts.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/origami-crafting-a-dynamic-tutorial-for-apple-intelligence","kind":"article","role":"sampleCode","title":"Origami: Crafting a dynamic tutorial for Apple Intelligence","type":"topic","url":"\/documentation\/foundationmodels\/origami-crafting-a-dynamic-tutorial-for-apple-intelligence"},"doc://com.apple.foundationmodels/documentation/FoundationModels/prompting-an-on-device-foundation-model":{"abstract":[{"text":"Tailor your prompts to get effective results from an on-device model.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/prompting-an-on-device-foundation-model","kind":"article","role":"article","title":"Prompting an on-device foundation model","type":"topic","url":"\/documentation\/foundationmodels\/prompting-an-on-device-foundation-model"},"doc://com.apple.foundationmodels/documentation/FoundationModels/running-a-core-ai-model-in-a-foundation-models-session":{"abstract":[{"text":"Send requests on device to an open source model you export with Core AI to get a consistent API experience.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/running-a-core-ai-model-in-a-foundation-models-session","kind":"article","role":"article","title":"Running a Core AI model in a Foundation Models session","type":"topic","url":"\/documentation\/foundationmodels\/running-a-core-ai-model-in-a-foundation-models-session"},"doc://com.apple.foundationmodels/documentation/FoundationModels/supporting-languages-and-locales-with-foundation-models":{"abstract":[{"text":"Generate content in the language people prefer when they interact with your app.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/supporting-languages-and-locales-with-foundation-models","kind":"article","role":"article","title":"Supporting languages and locales with Foundation Models","type":"topic","url":"\/documentation\/foundationmodels\/supporting-languages-and-locales-with-foundation-models"},"doc://com.apple.foundationmodels/documentation/FoundationModels/transcripts":{"abstract":[{"text":"Inspect a session’s history and work with the entries, segments, and","type":"text"},{"text":" ","type":"text"},{"text":"attachments it contains.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/transcripts","kind":"article","role":"collectionGroup","title":"Transcripts","type":"topic","url":"\/documentation\/foundationmodels\/transcripts"},"doc://com.apple.foundationmodels/documentation/FoundationModels/updating-prompts-for-new-model-versions":{"abstract":[{"text":"Manage the prompts your app uses by versioning them to make the most out of","type":"text"},{"text":" ","type":"text"},{"text":"model improvements.","type":"text"}],"identifier":"doc:\/\/com.apple.foundationmodels\/documentation\/FoundationModels\/updating-prompts-for-new-model-versions","images":[{"identifier":"updating-prompts-for-new-model-versions-PageImage-card.png","type":"card"}],"kind":"article","role":"article","title":"Updating prompts for new model versions","type":"topic","url":"\/documentation\/foundationmodels\/updating-prompts-for-new-model-versions"},"evaluating-your-apps-prompts-PageImage-card.png":{"alt":"An abstract illustration with a magnifying glass in the center with several ovals representing prompts being evaluated.","identifier":"evaluating-your-apps-prompts-PageImage-card.png","type":"image","variants":[{"traits":["2x","light"],"url":"\/images\/com.apple.foundationmodels\/evaluating-your-apps-prompts-PageImage-card@2x.png"},{"traits":["2x","dark"],"url":"\/images\/com.apple.foundationmodels\/evaluating-your-apps-prompts-PageImage-card~dark@2x.png"}]},"foundation-models-PageImage-card.png":{"alt":"An abstract illustration with lines coming together to form a single line.","identifier":"foundation-models-PageImage-card.png","type":"image","variants":[{"traits":["1x","light"],"url":"\/images\/com.apple.foundationmodels\/foundation-models-PageImage-card.png"},{"traits":["1x","dark"],"url":"\/images\/com.apple.foundationmodels\/foundation-models-PageImage-card~dark.png"}]},"foundation-models-framework-hero":{"alt":"An illustration that represents a foundation model.","identifier":"foundation-models-framework-hero","type":"image","variants":[{"traits":["2x","light"],"url":"\/images\/com.apple.foundationmodels\/foundation-models-framework-hero@2x.png"},{"traits":["2x","dark"],"url":"\/images\/com.apple.foundationmodels\/foundation-models-framework-hero~dark@2x.png"}]},"foundation-models-framework-landing-PageImage-card.png":{"alt":"An illustration that represents a foundation model.","identifier":"foundation-models-framework-landing-PageImage-card.png","type":"image","variants":[{"traits":["2x","light"],"url":"\/images\/com.apple.foundationmodels\/foundation-models-framework-landing-PageImage-card@2x.png"},{"traits":["2x","dark"],"url":"\/images\/com.apple.foundationmodels\/foundation-models-framework-landing-PageImage-card~dark@2x.png"}]},"https://www.apple.com/apple-intelligence/":{"identifier":"https:\/\/www.apple.com\/apple-intelligence\/","title":"Apple Intelligence","titleInlineContent":[{"text":"Apple Intelligence","type":"text"}],"type":"link","url":"https:\/\/www.apple.com\/apple-intelligence\/"},"improving-safety-of-model-output-PageImage-card.png":{"alt":"An abstract illustration that represents model output encountering safety mechanisms.","identifier":"improving-safety-of-model-output-PageImage-card.png","type":"image","variants":[{"traits":["2x","light"],"url":"\/images\/com.apple.foundationmodels\/improving-safety-of-model-output-PageImage-card@2x.png"},{"traits":["2x","dark"],"url":"\/images\/com.apple.foundationmodels\/improving-safety-of-model-output-PageImage-card~dark@2x.png"}]},"updating-prompts-for-new-model-versions-PageImage-card.png":{"alt":"An abstract illustration that contains a circle, representing the model, emitting model outputs as lines.","identifier":"updating-prompts-for-new-model-versions-PageImage-card.png","type":"image","variants":[{"traits":["2x","light"],"url":"\/images\/com.apple.foundationmodels\/updating-prompts-for-new-model-versions-PageImage-card@2x.png"},{"traits":["2x","dark"],"url":"\/images\/com.apple.foundationmodels\/updating-prompts-for-new-model-versions-PageImage-card~dark@2x.png"}]}}}