Get Batch
BatchGetResponse batches().get(BatchGetParamsparams = BatchGetParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
GET/api/v2/batches/{batch_id}
Get Batch
package com.llamacloud_prod.api.example;
import com.llamacloud_prod.api.client.LlamaCloudClient;
import com.llamacloud_prod.api.client.okhttp.LlamaCloudOkHttpClient;
import com.llamacloud_prod.api.models.batches.BatchGetParams;
import com.llamacloud_prod.api.models.batches.BatchGetResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
LlamaCloudClient client = LlamaCloudOkHttpClient.fromEnv();
BatchGetResponse batch = client.batches().get("batch_id");
}
}{
"id": "id",
"config": {
"job": {
"configuration_id": "cfg-PARSE_AGENTIC",
"type": "parse_v2"
}
},
"project_id": "project_id",
"source_directory_id": "source_directory_id",
"status": "PENDING",
"created_at": "2019-12-27T18:11:19.117Z",
"results": [
{
"source_directory_file_id": "dfl-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"error_message": "error_message",
"job_reference": {
"id": "pjb-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"type": "parse_v2"
}
}
],
"updated_at": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"id": "id",
"config": {
"job": {
"configuration_id": "cfg-PARSE_AGENTIC",
"type": "parse_v2"
}
},
"project_id": "project_id",
"source_directory_id": "source_directory_id",
"status": "PENDING",
"created_at": "2019-12-27T18:11:19.117Z",
"results": [
{
"source_directory_file_id": "dfl-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"error_message": "error_message",
"job_reference": {
"id": "pjb-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"type": "parse_v2"
}
}
],
"updated_at": "2019-12-27T18:11:19.117Z"
}