export interface SuggestedFlow {
  tree_id: string
  tree_name: string
  tree_type: string
  relevance_snippet: string
}

export interface CopilotStartRequest {
  tree_id: string
  session_id?: string
  current_node_id?: string
}

export interface CopilotStartResponse {
  conversation_id: string
  greeting: string
}

export interface CopilotMessageRequest {
  message: string
  current_node_id?: string
}

export interface CopilotMessageResponse {
  content: string
  suggested_flows: SuggestedFlow[]
}

export interface CopilotConversation {
  id: string
  tree_id: string
  messages: CopilotMessage[]
  current_node_id?: string
  message_count: number
  created_at: string
}

export interface CopilotMessage {
  role: 'user' | 'assistant'
  content: string
}
