foundation-models-utilities
Swift utilities for chat endpoints, skills, and history
All Skills in This Repository (2)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install foundation-models-utilities?โผ
Run `npx skills add apple/foundation-models-utilities --all -g -y` in your terminal to install all skills in this suite globally.
How to connect Swift apps to a local LLM server?โผ
Use ChatCompletionsLanguageModel with your server's base URL, then pass it to a standard LanguageModelSession. It streams responses through the OpenAI chat completions protocol.
How to stop long chats from overflowing the context window?โผ
Compose the history modifiers: droppingCompletedToolCalls, rollingWindow, and summarizeHistory. They compress the transcript automatically before each generation.
What are just-in-time skills in Foundation Models?โผ
Skills keep extra instructions out of the prompt until the model activates them with a tool call. This reduces context pollution and speeds up time-to-first-token.
Does this package work on Linux?โผ
Yes. It supports macOS, iOS, visionOS, watchOS, and select Linux distributions like Ubuntu via Swift Package Manager.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core