// This file is auto-generated by @hey-api/openapi-ts

export type ClientOptions = {
  baseUrl: `${string}://${string}/console/api` | (string & {})
}

export type BedrockRetrievalPayload = {
  knowledge_id: string
  query: string
  retrieval_setting: BedrockRetrievalSetting
}

export type BedrockRetrievalResponse = {
  records: Array<BedrockRetrievalRecordResponse>
}

export type BedrockRetrievalSetting = {
  score_threshold?: number
  top_k?: number | null
}

export type BedrockRetrievalRecordResponse = {
  content?: string | null
  metadata?: {
    [key: string]: unknown
  } | null
  score: number
  title?: string | null
}

export type PostTestRetrievalData = {
  body: BedrockRetrievalPayload
  path?: never
  query?: never
  url: '/test/retrieval'
}

export type PostTestRetrievalResponses = {
  200: BedrockRetrievalResponse
}

export type PostTestRetrievalResponse = PostTestRetrievalResponses[keyof PostTestRetrievalResponses]
