import { oapiClient, sendResponse } from '../oapi-client'
import { getDefaultAgentId } from '../nova-config'

export async function GET() {
  const res = await oapiClient.get('/v1/oapi/super_agent/chat/conversation_list', {
    page_no: 1,
    page_size: 10,
    agent_id: getDefaultAgentId(),
  })

  return sendResponse(res)
}
