mlboydaisuke commited on
Commit
35223da
·
verified ·
1 Parent(s): e745d8f

gen-cards: regenerate Use-it block

Browse files
Files changed (1) hide show
  1. README.md +11 -0
README.md CHANGED
@@ -37,6 +37,15 @@ of a large dense model at the memory-bandwidth speed that implies on a Mac.
37
  <!-- gen-cards:use-it begin id=qwen3.6-27b (managed by scripts/gen-cards — edit cards.json / QuickStart.swift, not this block) -->
38
  ## Use it
39
 
 
 
 
 
 
 
 
 
 
40
  ▶️ **Run it (source)** — the [ChatDemo runner](https://github.com/john-rocky/coreai-kit/tree/main/Examples/ChatDemo)
41
  (GUI + CLI, one app for every chat model in the catalog):
42
 
@@ -60,6 +69,8 @@ let reply = try await chat.respond(to: prompt)
60
  // reply: the answer, generated fully on-device
61
  ```
62
 
 
 
63
  The take-home is [`Examples/ChatDemo/Sources/QuickStart.swift`](https://github.com/john-rocky/coreai-kit/blob/main/Examples/ChatDemo/Sources/QuickStart.swift)
64
  — this exact code as one typed function, no UI; the CLI is an argument shell over it, and
65
  the GUI drives the same `ChatSession` across turns for its transcript.
 
37
  <!-- gen-cards:use-it begin id=qwen3.6-27b (managed by scripts/gen-cards — edit cards.json / QuickStart.swift, not this block) -->
38
  ## Use it
39
 
40
+ ⚡ **One line** — run the kit's task op on this model
41
+ (`import CoreAIOps`; no session, no model plumbing, downloads on first use):
42
+
43
+ ```swift
44
+ let tldr = try await CoreAI.summarize(text, options: .model("qwen3.6-27b"))
45
+ ```
46
+
47
+ Twenty ops, one shape — [Cookbook](https://github.com/john-rocky/coreai-kit/blob/main/docs/COOKBOOK.md).
48
+
49
  ▶️ **Run it (source)** — the [ChatDemo runner](https://github.com/john-rocky/coreai-kit/tree/main/Examples/ChatDemo)
50
  (GUI + CLI, one app for every chat model in the catalog):
51
 
 
69
  // reply: the answer, generated fully on-device
70
  ```
71
 
72
+ Also runs behind **Apple's FoundationModels API** — CoreAIKit's [`KitLanguageModel`](https://github.com/john-rocky/coreai-kit#works-with-apples-foundationmodels-api) plugs this bundle into the system `LanguageModelSession`; capabilities (tool calling, guided generation) auto-detect per model.
73
+
74
  The take-home is [`Examples/ChatDemo/Sources/QuickStart.swift`](https://github.com/john-rocky/coreai-kit/blob/main/Examples/ChatDemo/Sources/QuickStart.swift)
75
  — this exact code as one typed function, no UI; the CLI is an argument shell over it, and
76
  the GUI drives the same `ChatSession` across turns for its transcript.