You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
497 B

export type MessagePartType = 'text' | 'reasoning' | 'tool-call' | 'tool-result' | 'tool-approval'
export interface MessagePart {
id: string
type: MessagePartType
text?: string
toolName?: string
toolCallId?: string
args?: unknown
result?: unknown
state?: 'call' | 'result' | 'approval-requested' | 'approval-responded'
approvalId?: string
approved?: boolean
approvalReason?: string
isAutomaticApproval?: boolean
reasoningLoading?: boolean
reasoningDuration?: number
}