(value: unknown)
| 79 | } |
| 80 | |
| 81 | function isOpenCanvasInstance(value: unknown): value is OpenCanvasInstance { |
| 82 | if (!value || typeof value !== "object") { |
| 83 | return false; |
| 84 | } |
| 85 | const instance = value as Partial<OpenCanvasInstance>; |
| 86 | return ( |
| 87 | typeof instance.instanceId === "string" && |
| 88 | instance.instanceId.length > 0 && |
| 89 | typeof instance.extensionId === "string" && |
| 90 | instance.extensionId.length > 0 && |
| 91 | typeof instance.canvasId === "string" && |
| 92 | instance.canvasId.length > 0 |
| 93 | ); |
| 94 | } |
| 95 | |
| 96 | /** Assistant message event - the final response from the assistant. */ |
| 97 | export type AssistantMessageEvent = Extract<SessionEvent, { type: "assistant.message" }>; |
no outgoing calls
no test coverage detected
searching dependent graphs…