@illalabs/interfaces 0.2.0 → 0.2.1
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/schemas/chatContext.d.ts +18 -2
- package/dist/schemas/chatContext.d.ts.map +1 -1
- package/dist/schemas/chatContext.js +2 -2
- package/dist/schemas/chatContext.js.map +1 -1
- package/dist/schemas/chatRequestBody.d.ts +1376 -10
- package/dist/schemas/chatRequestBody.d.ts.map +1 -1
- package/dist/schemas/chatRequestBody.js +8 -3
- package/dist/schemas/chatRequestBody.js.map +1 -1
- package/package.json +1 -1
|
@@ -86,7 +86,7 @@ export declare const ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
86
86
|
}, {
|
|
87
87
|
address: string;
|
|
88
88
|
}>;
|
|
89
|
-
prompt: z.ZodObject<{
|
|
89
|
+
prompt: z.ZodOptional<z.ZodObject<{
|
|
90
90
|
role: z.ZodEnum<["user", "assistant", "tool", "system"]>;
|
|
91
91
|
content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
92
92
|
type: z.ZodLiteral<"text">;
|
|
@@ -667,7 +667,23 @@ export declare const ChatContextSchema: z.ZodObject<z.objectUtil.extendShape<Pic
|
|
|
667
667
|
toolCallId: string;
|
|
668
668
|
error: import("../types/actions/errors.js").ActionError<unknown>;
|
|
669
669
|
})[];
|
|
670
|
-
}
|
|
670
|
+
}>>;
|
|
671
|
+
toolResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
672
|
+
toolCallId: z.ZodString;
|
|
673
|
+
toolName: z.ZodString;
|
|
674
|
+
result: z.ZodUnknown;
|
|
675
|
+
error: z.ZodOptional<z.ZodUnknown>;
|
|
676
|
+
}, "strict", z.ZodTypeAny, {
|
|
677
|
+
toolName: string;
|
|
678
|
+
toolCallId: string;
|
|
679
|
+
result?: unknown;
|
|
680
|
+
error?: unknown;
|
|
681
|
+
}, {
|
|
682
|
+
toolName: string;
|
|
683
|
+
toolCallId: string;
|
|
684
|
+
result?: unknown;
|
|
685
|
+
error?: unknown;
|
|
686
|
+
}>, "many">>;
|
|
671
687
|
languageModel: z.ZodOptional<z.ZodString>;
|
|
672
688
|
personalityContext: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
673
689
|
channel: z.ZodEnum<["voice", "text"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatContext.d.ts","sourceRoot":"","sources":["../../src/schemas/chatContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"chatContext.d.ts","sourceRoot":"","sources":["../../src/schemas/chatContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI7B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import { CoreApiChatBodyRequestBaseSchema } from "./chatRequestBody.js";
|
|
3
3
|
import { ToolAutorouterSchema } from "./toolAutorouter.js";
|
|
4
|
-
export const ChatContextSchema =
|
|
4
|
+
export const ChatContextSchema = CoreApiChatBodyRequestBaseSchema.pick({ messages: true }).merge(z.object({
|
|
5
5
|
toolsConfig: ToolAutorouterSchema,
|
|
6
6
|
}));
|
|
7
7
|
//# sourceMappingURL=chatContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatContext.js","sourceRoot":"","sources":["../../src/schemas/chatContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"chatContext.js","sourceRoot":"","sources":["../../src/schemas/chatContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,MAAM,CAAC,MAAM,iBAAiB,GAAG,gCAAgC,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAC5F,CAAC,CAAC,MAAM,CAAC;IACL,WAAW,EAAE,oBAAoB;CACpC,CAAC,CACL,CAAC"}
|