connecting the copilot to the UI

This commit is contained in:
tusharmagar 2025-12-11 13:43:47 +05:30 committed by Ramnique Singh
parent 5e31c637f0
commit b1f6e64244
6 changed files with 785 additions and 60 deletions

View file

@ -32,12 +32,14 @@ export const MessageEvent = BaseRunEvent.extend({
export const ToolInvocationEvent = BaseRunEvent.extend({
type: z.literal("tool-invocation"),
toolCallId: z.string().optional(),
toolName: z.string(),
input: z.string(),
});
export const ToolResultEvent = BaseRunEvent.extend({
type: z.literal("tool-result"),
toolCallId: z.string().optional(),
toolName: z.string(),
result: z.any(),
});
@ -82,4 +84,4 @@ export const RunEvent = z.union([
ToolPermissionRequestEvent,
ToolPermissionResponseEvent,
RunErrorEvent,
]);
]);