跳到主内容
@wquguru
精选88Hacker News Best(web_list)产品发布/更新

Apple发布Foundation Models框架支持Claude等模型

Foundation Models framework

原文
发到 X
推荐理由

Apple官方SDK首次原生支持Claude和Gemini,统一了端云开发与第三方模型接入标准,对iOS AI Agent开发有重大影响,建议相关开发者重点关注。

Get started with the Foundation Models framework

开始使用 Foundation Models 框架

The Foundation Models framework is the best way to use any large language model in your app. Whether you’re generating a quick summary or creating dynamic agents, the framework has what you need.

Foundation Models 框架是在您的应用中运行任何大型语言模型的最佳方式。无论是生成快速摘要还是创建动态智能体,该框架都能满足您的需求。

Overview

概述

The Foundation Models framework is a native Swift API for integrating any large language model into your app — including direct access to the Apple Foundation Models on-device and in Private Cloud Compute. Powerful capabilities like guided generation, tool calling, image understanding, and Dynamic Profiles are built in, so you have what you need to build unique experiences.

Foundation Models 框架是一个原生 Swift API,用于将任何大型语言模型集成到您的应用中——包括直接访问 Apple 设备端和私有云计算中的 Foundation Models。内置了强大的功能,如引导式生成、工具调用、图像理解和动态配置文件(Dynamic Profiles),为您提供构建独特体验所需的一切。

What’s new in the Foundation Models framework

Foundation Models 框架的新增内容

Meet the Foundation Models framework

认识 Foundation Models 框架

  • Foundation Models framework
  • Human Interface Guidelines for Generative AI
  • Foundation Models 框架
  • 生成式 AI 的人机界面指南

Image understanding

图像理解

Multimodal prompts let you pass images alongside text so your app can reason about visual content. This opens up new categories of experiences you can build with image understanding — it's as simple as attaching an image to your prompt. The Vision framework is also integrated directly, giving your model purpose-built tools like OCR for precise text extraction and barcode readers for quick code scanning — all on-device.

多模态提示允许您将图像与文本一起传递,以便您的应用能够推理视觉内容。这为您利用图像理解构建全新类别的体验打开了大门——只需将图像附加到提示中即可。Vision 框架也已直接集成,为您的模型提供专用工具,如用于精确文本提取的 OCR 和用于快速代码扫描的条码阅读器——所有功能均在设备端完成。

What’s new in image understanding

图像理解的新增内容

Model support

模型支持

The Foundation Models framework gives you direct access to the on-device foundation model at the core of Apple Intelligence so you can build experiences that are smart, private, and work without internet connectivity.

Foundation Models 框架使您能够直接访问 Apple Intelligence 核心的设备端基础模型,从而构建智能、隐私安全且无需互联网连接即可运行的体验。

On-device models are highly useful for many tasks, yet sometimes you need a larger model for a more complex workflow. The Foundation Models framework now extends to server models — like Claude, Gemini, and more — all through the same Swift API, with full support for features like tool calling and guided generation. Any model provider can create a Swift package conforming to the Language Model protocol, a fundamental component of the framework that allows you to pick the right language model for your app.

设备端模型对许多任务非常有用,但有时您需要更大的模型来处理更复杂的工作流。Foundation Models 框架现在扩展到了服务器模型——如 Claude、Gemini 等——均通过相同的 Swift API 提供支持,并完全支持工具调用和引导式生成功能。任何模型提供商都可以创建一个符合 Language Model 协议的 Swift 包,这是框架的一个基本组件,允许您为应用选择合适的语言模型。

Supported third-party models

支持的第三方模型

  • Core AI Language Models
  • MLX Language Models
  • Claude
  • Gemini
  • Core AI 语言模型
  • MLX 语言模型
  • Claude
  • Gemini

Private Cloud Compute

私有云计算

For those just getting started, developers who are enrolled in the App Store Small Business Program and have fewer than two million first-time App Store downloads can access the Apple Foundation Models running on Private Cloud Compute with no cloud API cost.* This delivers frontier-level intelligence with unparalleled privacy protections, ensuring that your users' data is not stored or accessible to Apple or anyone else.

对于刚开始使用的开发者,如果已加入 App Store 小型企业计划且首次 App Store 下载量少于两百万次,可以免费使用运行在 Private Cloud Compute 上的 Apple Foundation Models,无需支付云 API 费用。* 这提供了前沿水平的智能,同时提供无与伦比的隐私保护,确保您的用户数据不会被存储或为 Apple 或其他任何人所访问。

Learn more about Private Cloud Compute

了解更多关于 Private Cloud Compute 的信息

Build with the new Apple Foundation Model on Private Cloud Compute

使用 Private Cloud Compute 上的新 Apple Foundation Model 进行构建

Bring an LLM provider to the Foundation Models framework

将 LLM 提供商接入 Foundation Models 框架

Dynamic Profiles

动态配置(Dynamic Profiles)

Dynamic Profiles are new declarative APIs for continuously updating your session's model, tools, and instructions on the fly. Rather than creating a session with a fixed configuration, you define profiles — each with its own model, temperature, reasoning level, and toolset — and swap between them within a single continuous session. The session transcript is shared across every profile switch, so your app gets more contextual intelligence with less prompting. Dynamic Profiles are designed to be adaptable building blocks: use them to build AI agents, skills, or any other high-level abstraction your app needs.

动态配置是新的声明式 API,用于在运行时持续更新会话的模型、工具和指令。与其创建一个具有固定配置的会话,不如定义多个配置——每个配置拥有自己的模型、温度值、推理级别和工具集——并在单个连续会话中在这些配置之间切换。会话记录在所有配置切换时共享,因此您的应用可以用更少的提示获得更强的上下文智能。动态配置旨在作为可适应的构建模块:您可以使用它们来构建 AI 代理、技能模块或应用所需的任何其他高级抽象。

Build agentic app experiences with the Foundation Models framework

使用 Foundation Models 框架构建代理型应用体验

Debug and profile agentic app experiences with Instruments

使用 Instruments 调试和分析代理型应用体验

LLM search using Core Spotlight

使用 Core Spotlight 进行 LLM 搜索

Evaluations framework

评估框架(Evaluations framework)

The Evaluations framework gives you the ability to test your prompts and validate that your intelligence-powered features work correctly across dynamic conditions, going beyond what unit tests alone can catch. Whether you're iterating on instructions, switching models, or tuning a Dynamic Profile, Evaluations gives you confidence that your app's behavior holds up before you ship.

评估框架使您能够测试提示词,并验证由智能驱动的功能在不同动态条件下是否正常工作,其能力超越了单元测试所能覆盖的范围。无论您是在迭代指令、切换模型还是调整动态配置,评估框架都能让您在发布前确信应用的行为表现符合预期。

Meet the Evaluations framework

认识评估框架

Improve your prompts by hill-climbing with Evaluations

通过评估框架进行爬山式优化以提升提示词效果

Create robust evaluations for agentic apps

为代理型应用创建健壮的评估

CLI

命令行工具(CLI)

The new fm command line tool in macOS 27 lets you streamline scripting, automate model workflows, and accelerate your development without writing a line of app code. You can prototype quickly, giving you a fast path from idea to implementation.

macOS 27 中的新 fm 命令行工具可帮助您简化脚本编写、自动化模型工作流,并在不编写任何应用代码的情况下加速开发。您可以快速进行原型设计,从而开辟从创意到实现的快速通道。

Build AI-powered scripts with the fm CLI and Python SDK

使用 fm CLI 和 Python SDK 构建 AI 驱动的脚本

Open source

开源

To help you get started with adopting emerging AI patterns, the Foundation Models framework utilities package adds experimental abstractions on top of the framework — including custom skills, context management helpers, and a Chat Completions client that connects to a hosted model of your choice.

为了帮助您开始采用新兴的 AI 模式,Foundation Models 框架实用程序包在框架之上添加了实验性抽象——包括自定义技能、上下文管理助手以及连接到您选择的托管模型的 Chat Completions 客户端。

The Foundation Models SDK for Python extends the framework into the Python ecosystem, letting you integrate with popular tooling and evaluation packages in Python.

Python 版 Foundation Models SDK 将框架扩展到 Python 生态系统,使您能够与 Python 中的流行工具和评估包集成。

  • Foundation Models framework utilities package
  • Foundation Models SDK for Python
  • Foundation Models 框架实用程序包
  • Python 版 Foundation Models SDK

Requirements

要求

The Acceptable Use Requirements for the Foundation Models framework outline prohibited uses of Apple Foundation Models. Additionally, pursuant to Article 53(1)(b) of the AI Act, we make available information and documentation to providers of AI systems who intend to integrate AFM 3 Cloud into their AI systems.

Foundation Models 框架的可接受使用要求概述了 Apple Foundation Models 的禁止用途。此外,根据《人工智能法案》第 53(1)(b) 条,我们为打算将 AFM 3 Cloud 集成到其 AI 系统中的 AI 系统提供商提供信息和文档。

  • Acceptable Use Requirements for the Foundation Models framework
  • AFM 3 Cloud Model Documentation Form
  • Foundation Models 框架的可接受使用要求
  • AFM 3 Cloud 模型文档表单

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件