@neeter/types
Advanced tools
+16
-0
@@ -26,2 +26,18 @@ export interface SSEEvent { | ||
| } | ||
| export interface TextBlock { | ||
| type: "text"; | ||
| text: string; | ||
| } | ||
| export interface Base64ImageSource { | ||
| type: "base64"; | ||
| media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; | ||
| data: string; | ||
| } | ||
| export interface ImageBlock { | ||
| type: "image"; | ||
| source: Base64ImageSource; | ||
| } | ||
| export type ContentBlock = TextBlock | ImageBlock; | ||
| /** Content for a user message — plain string or array of text/image blocks. */ | ||
| export type UserMessageContent = string | ContentBlock[]; | ||
| export type ToolCallPhase = "pending" | "streaming_input" | "running" | "complete" | "error"; | ||
@@ -28,0 +44,0 @@ export interface ToolCallInfo { |
+1
-1
| { | ||
| "name": "@neeter/types", | ||
| "version": "0.16.1", | ||
| "version": "0.17.0", | ||
| "description": "Shared protocol types for neeter", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
+1
-0
@@ -16,2 +16,3 @@ # @neeter/types | ||
| - **SSE protocol** — `SSEEvent`, `CustomEvent<T>`, `SessionInitEvent` | ||
| - **Content blocks** — `TextBlock`, `ImageBlock`, `ContentBlock`, `UserMessageContent`, `Base64ImageSource` | ||
| - **Chat messages** — `ChatMessage`, `ToolCallInfo`, `ToolCallPhase` | ||
@@ -18,0 +19,0 @@ - **Permissions** — `PermissionRequest`, `PermissionResponse`, `ToolApprovalRequest`, `ToolApprovalResponse`, `UserQuestion`, `UserQuestionRequest`, `UserQuestionResponse` |
6354
10.43%139
13.01%28
3.7%