Files
patchy631--ai-engineering-hub/streaming-ai-chatbot/types.d.ts
T
2026-07-13 12:37:47 +08:00

18 lines
905 B
TypeScript

/**
* Automatically generated types for motia
* Do NOT edit this file manually.
*
* Consider adding this file to .prettierignore and eslint ignore.
*/
import { EventHandler, ApiRouteHandler, ApiResponse, MotiaStream } from 'motia'
declare module 'motia' {
interface FlowContextStateStreams {
'conversation': MotiaStream<{ message: string; from: 'user' | 'assistant'; status: 'created' | 'streaming' | 'completed'; timestamp: string }>
}
type Handlers = {
'ChatApi': ApiRouteHandler<{ message: string; conversationId?: string }, ApiResponse<200, { message: string; from: 'user' | 'assistant'; status: 'created' | 'streaming' | 'completed'; timestamp: string }>, { topic: 'chat-message'; data: { message: string; conversationId: string; assistantMessageId: string } }>
'AiResponse': EventHandler<{ message: string; conversationId: string; assistantMessageId: string }, never>
}
}