@core-ai/core-ai 0.20.0 → 0.22.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/dist/index.d.ts +20 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,11 @@ type Message = SystemMessage | UserMessage | AssistantMessage | ToolResultMessag
|
|
|
4
4
|
type SystemMessage = {
|
|
5
5
|
role: 'system';
|
|
6
6
|
content: string;
|
|
7
|
+
/**
|
|
8
|
+
* Application-owned metadata for this message. Provider adapters ignore
|
|
9
|
+
* this field and never serialize it to provider APIs.
|
|
10
|
+
*/
|
|
11
|
+
metadata?: Record<string, unknown>;
|
|
7
12
|
};
|
|
8
13
|
type UserMessage = {
|
|
9
14
|
role: 'user';
|
|
@@ -29,12 +34,22 @@ type ImagePart = {
|
|
|
29
34
|
type: 'url';
|
|
30
35
|
url: string;
|
|
31
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* Application-owned metadata for this part. Provider adapters ignore this
|
|
39
|
+
* field and never serialize it to provider APIs.
|
|
40
|
+
*/
|
|
41
|
+
metadata?: Record<string, unknown>;
|
|
32
42
|
};
|
|
33
43
|
type FilePart = {
|
|
34
44
|
type: 'file';
|
|
35
45
|
data: string;
|
|
36
46
|
mimeType: string;
|
|
37
47
|
filename?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Application-owned metadata for this part. Provider adapters ignore this
|
|
50
|
+
* field and never serialize it to provider APIs.
|
|
51
|
+
*/
|
|
52
|
+
metadata?: Record<string, unknown>;
|
|
38
53
|
};
|
|
39
54
|
type AudioPart = {
|
|
40
55
|
type: 'audio';
|
|
@@ -43,6 +58,11 @@ type AudioPart = {
|
|
|
43
58
|
mediaType: string;
|
|
44
59
|
data: string;
|
|
45
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* Application-owned metadata for this part. Provider adapters ignore this
|
|
63
|
+
* field and never serialize it to provider APIs.
|
|
64
|
+
*/
|
|
65
|
+
metadata?: Record<string, unknown>;
|
|
46
66
|
};
|
|
47
67
|
type ReasoningEffort = 'minimal' | 'low' | 'medium' | 'high' | 'max';
|
|
48
68
|
type ReasoningConfig = {
|