@gencow/core 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52,8 +52,14 @@ export interface AIContext {
52
52
  chat: (opts: {
53
53
  model?: string;
54
54
  messages: AIMessage[];
55
+ /** System prompt — shorthand for adding a system message */
56
+ system?: string;
55
57
  temperature?: number;
56
58
  maxTokens?: number;
59
+ /** Response format — e.g. { type: "json_object" } for JSON mode */
60
+ responseFormat?: {
61
+ type: string;
62
+ };
57
63
  }) => Promise<AIResult>;
58
64
  /** 텍스트 임베딩 (단일) — ctx.ai.embed("검색 텍스트") */
59
65
  embed: (text: string) => Promise<number[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gencow/core",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Gencow core library — defineQuery, defineMutation, reactive subscriptions",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/reactive.ts CHANGED
@@ -58,8 +58,12 @@ export interface AIContext {
58
58
  chat: (opts: {
59
59
  model?: string;
60
60
  messages: AIMessage[];
61
+ /** System prompt — shorthand for adding a system message */
62
+ system?: string;
61
63
  temperature?: number;
62
64
  maxTokens?: number;
65
+ /** Response format — e.g. { type: "json_object" } for JSON mode */
66
+ responseFormat?: { type: string };
63
67
  }) => Promise<AIResult>;
64
68
  /** 텍스트 임베딩 (단일) — ctx.ai.embed("검색 텍스트") */
65
69
  embed: (text: string) => Promise<number[]>;