getIngestionJob method

Future<GetIngestionJobResponse> getIngestionJob({
  1. required String dataSourceId,
  2. required String ingestionJobId,
  3. required String knowledgeBaseId,
})

Gets information about a data ingestion job. Data sources are ingested into your knowledge base so that Large Language Models (LLMs) can use your data.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter dataSourceId : The unique identifier of the data source for the data ingestion job you want to get information on.

Parameter ingestionJobId : The unique identifier of the data ingestion job you want to get information on.

Parameter knowledgeBaseId : The unique identifier of the knowledge base for the data ingestion job you want to get information on.

Implementation

Future<GetIngestionJobResponse> getIngestionJob({
  required String dataSourceId,
  required String ingestionJobId,
  required String knowledgeBaseId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/knowledgebases/${Uri.encodeComponent(knowledgeBaseId)}/datasources/${Uri.encodeComponent(dataSourceId)}/ingestionjobs/${Uri.encodeComponent(ingestionJobId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetIngestionJobResponse.fromJson(response);
}