{"repo":"Tom-Ryder/AgentRunKit","free":true,"listed":false,"github":"https://github.com/Tom-Ryder/AgentRunKit","clone":"git clone https://github.com/Tom-Ryder/AgentRunKit.git","description":"Swift 6 agent SDK: type-safe tools, streaming, cloud + on-device inference via MLX on Apple Silicon","language":"Swift","stars":29,"topics":["llm","openai","swift","ai-agents","anthropic","ios","macos","mcp","model-context-protocol","multimodal"],"license":"MIT","category":"ai-agents","readme_excerpt":"AgentRunKit A Swift 6 SDK for building LLM-powered agents with type-safe tool calling. Zero-dependency core · Full Sendable · Async/await · Cloud + Local · MCP --- Quick Start result.content is optional. A completed run returns the content of whatever ended it — the built-in finish tool, or a completion tool you supply — while structural terminal reasons such as max iterations or token budget exhaustion surface through result.finishReason with no final content. To end the loop with your own typed tool instead of the built-in one, pass it as completionTool: . It replaces finish in the definitions sent to the model, executes through the normal tool path, and terminates the run only when it succeeds: --- Documentation Full documentation including guides and API reference is available on Swift Package Index. --- Runnable Example Examples/AgentCode is an interactive terminal coding agent built with AgentRunKit. It demonstrates the full agent loop in a local workspace: streaming events, type-safe tools, approval-gated edits and command execution, bounded file access, transcript export, and deterministic offline mode. By default it opens a bundled broken Swift package so you can ask it to fix failing tests. Set OPENAI API KEY for a live OpenAI-compatible provider, or run without a key to exercise the CLI with the offline test client. --- Installation Add to your Package.swift : For on-device inference, additional targets are available: - AgentRunKitMLX for MLX on Apple Silicon (link","default_branch":null,"files":null,"tree":[],"storefront":"/r/Tom-Ryder","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Tom-Ryder/AgentRunKit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}