@auto-engineer/model-factory 1.78.0 → 1.79.0

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.
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "publishConfig": {
23
23
  "access": "public"
24
24
  },
25
- "version": "1.78.0",
25
+ "version": "1.79.0",
26
26
  "scripts": {
27
27
  "build": "tsc && tsx ../../scripts/fix-esm-imports.ts",
28
28
  "test": "vitest run --reporter=dot",
package/src/index.ts CHANGED
@@ -9,6 +9,16 @@ function requireEnv(name: string): string {
9
9
  return value;
10
10
  }
11
11
 
12
+ export interface ChatMessage {
13
+ role: 'user' | 'assistant';
14
+ content: string;
15
+ }
16
+
17
+ export interface ChatTurn {
18
+ prompt: ChatMessage;
19
+ response: ChatMessage;
20
+ }
21
+
12
22
  export function createModelFromEnv(): LanguageModel {
13
23
  const name = requireEnv('CUSTOM_PROVIDER_NAME');
14
24
  const baseURL = requireEnv('CUSTOM_PROVIDER_BASE_URL');