@vibes.diy/call-ai-v2 2.0.0-dev-cli-10 → 2.0.0-dev-cli-a
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/delta-stream.d.ts +21 -21
- package/package.json +1 -1
package/delta-stream.d.ts
CHANGED
|
@@ -81,6 +81,27 @@ export declare const DeltaStreamMsg: import("arktype/internal/variants/object.ts
|
|
|
81
81
|
deltaSeq: number;
|
|
82
82
|
choiceSeq: number;
|
|
83
83
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
84
|
+
} | {
|
|
85
|
+
type: "delta.end";
|
|
86
|
+
streamId: string;
|
|
87
|
+
finishReasons: string[];
|
|
88
|
+
usages: {
|
|
89
|
+
prompt_tokens: number;
|
|
90
|
+
completion_tokens: number;
|
|
91
|
+
total_tokens: number;
|
|
92
|
+
}[];
|
|
93
|
+
totalDeltas: number;
|
|
94
|
+
totalChars: number;
|
|
95
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
96
|
+
} | {
|
|
97
|
+
type: "delta.stats";
|
|
98
|
+
streamId: string;
|
|
99
|
+
stats: {
|
|
100
|
+
deltaSeq: number;
|
|
101
|
+
deltaUsages: number;
|
|
102
|
+
totalChars: number;
|
|
103
|
+
};
|
|
104
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
84
105
|
} | {
|
|
85
106
|
type: "delta.usage";
|
|
86
107
|
streamId: string;
|
|
@@ -107,27 +128,6 @@ export declare const DeltaStreamMsg: import("arktype/internal/variants/object.ts
|
|
|
107
128
|
deltaSeq: number;
|
|
108
129
|
index: number;
|
|
109
130
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
110
|
-
} | {
|
|
111
|
-
type: "delta.end";
|
|
112
|
-
streamId: string;
|
|
113
|
-
finishReasons: string[];
|
|
114
|
-
usages: {
|
|
115
|
-
prompt_tokens: number;
|
|
116
|
-
completion_tokens: number;
|
|
117
|
-
total_tokens: number;
|
|
118
|
-
}[];
|
|
119
|
-
totalDeltas: number;
|
|
120
|
-
totalChars: number;
|
|
121
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
122
|
-
} | {
|
|
123
|
-
type: "delta.stats";
|
|
124
|
-
streamId: string;
|
|
125
|
-
stats: {
|
|
126
|
-
deltaSeq: number;
|
|
127
|
-
deltaUsages: number;
|
|
128
|
-
totalChars: number;
|
|
129
|
-
};
|
|
130
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
131
131
|
}, {}>;
|
|
132
132
|
export type DeltaBeginMsg = typeof DeltaBeginMsg.infer;
|
|
133
133
|
export type DeltaLineMsg = typeof DeltaLineMsg.infer;
|