import type { KbxAiAnswer, KbxAiAskRequest } from '@kbx/contracts'
import { kbxApi } from '../http/generated/kbxApiClient'

export function askKbxAssistant(request: KbxAiAskRequest): Promise<KbxAiAnswer> {
  return kbxApi.request<KbxAiAnswer, KbxAiAskRequest>('common.ai.ask', { body: request })
}
