From beacc1ad172af6167decf65b77fc9436ea9f7a9a Mon Sep 17 00:00:00 2001 From: stlc-bot Date: Fri, 14 Aug 2026 00:33:32 +0000 Subject: [PATCH 1/4] Build SDK Stainless-Generated-From: 78915969faafe409fb48dfba8e6df110570d8846 --- README.md | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 3d62b02..e5fe31a 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ -[![Maven Central](https://img.shields.io/maven-central/v/ai.llamaindex/llama-cloud)](https://central.sonatype.com/artifact/ai.llamaindex/llama-cloud) -[![javadoc](https://javadoc.io/badge2/ai.llamaindex/llama-cloud/javadoc.svg)](https://javadoc.io/doc/ai.llamaindex/llama-cloud) +[![Maven Central](https://img.shields.io/maven-central/v/ai.llamaindex.llamacloud/llama-cloud)](https://central.sonatype.com/artifact/ai.llamaindex.llamacloud/llama-cloud/1.5.0) +[![javadoc](https://javadoc.io/badge2/ai.llamaindex.llamacloud/llama-cloud/1.5.0/javadoc.svg)](https://javadoc.io/doc/ai.llamaindex.llamacloud/llama-cloud/1.5.0) @@ -22,7 +22,7 @@ Use the Llama Cloud MCP Server to enable AI assistants to interact with this API -The REST API documentation can be found on [developers.llamaindex.ai](https://developers.llamaindex.ai/). Javadocs are available on [javadoc.io](https://javadoc.io/doc/ai.llamaindex/llama-cloud). +The REST API documentation can be found on [developers.llamaindex.ai](https://developers.llamaindex.ai/). Javadocs are available on [javadoc.io](https://javadoc.io/doc/ai.llamaindex.llamacloud/llama-cloud/1.5.0). @@ -355,12 +355,12 @@ import java.util.concurrent.CompletableFuture; CompletableFuture pageFuture = client.async().extract().list(); -pageFuture.thenAccept(page -> page.autoPager().subscribe(extract -> { +pageFuture.thenRun(page -> page.autoPager().subscribe(extract -> { System.out.println(extract); })); // If you need to handle errors or completion of the stream -pageFuture.thenAccept(page -> page.autoPager().subscribe(new AsyncStreamResponse.Handler() { +pageFuture.thenRun(page -> page.autoPager().subscribe(new AsyncStreamResponse.Handler<>() { @Override public void onNext(ExtractV2Job extract) { System.out.println(extract); @@ -378,7 +378,7 @@ pageFuture.thenAccept(page -> page.autoPager().subscribe(new AsyncStreamResponse })); // Or use futures -pageFuture.thenAccept(page -> page.autoPager() +pageFuture.thenRun(page -> page.autoPager() .subscribe(extract -> { System.out.println(extract); }) @@ -497,9 +497,7 @@ Requests time out after 1 minute by default. To set a custom timeout, configure the method call using the `timeout` method: ```java -import ai.llamaindex.llamacloud.core.RequestOptions; import ai.llamaindex.llamacloud.models.beta.indexes.IndexListPage; -import java.time.Duration; IndexListPage page = client.beta().indexes().list(RequestOptions.builder().timeout(Duration.ofSeconds(30)).build()); ``` @@ -681,8 +679,7 @@ The most straightforward way to create a [`JsonValue`](llama-cloud-core/src/main ```java import ai.llamaindex.llamacloud.core.JsonValue; -import java.util.Arrays; -import java.util.HashMap; +import java.util.List; import java.util.Map; // Create primitive JSON values @@ -692,25 +689,29 @@ JsonValue numberValue = JsonValue.from(42); JsonValue stringValue = JsonValue.from("Hello World!"); // Create a JSON array value equivalent to `["Hello", "World"]` -JsonValue arrayValue = JsonValue.from(Arrays.asList( +JsonValue arrayValue = JsonValue.from(List.of( "Hello", "World" )); // Create a JSON object value equivalent to `{ "a": 1, "b": 2 }` -Map object = new HashMap<>(); -object.put("a", 1); -object.put("b", 2); -JsonValue objectValue = JsonValue.from(object); +JsonValue objectValue = JsonValue.from(Map.of( + "a", 1, + "b", 2 +)); // Create an arbitrarily nested JSON equivalent to: // { // "a": [1, 2], // "b": [3, 4] // } -Map nested = new HashMap<>(); -nested.put("a", Arrays.asList(1, 2)); -nested.put("b", Arrays.asList(3, 4)); -JsonValue complexValue = JsonValue.from(nested); +JsonValue complexValue = JsonValue.from(Map.of( + "a", List.of( + 1, 2 + ), + "b", List.of( + 3, 4 + ) +)); ``` Normally a `Builder` class's `build` method will throw [`IllegalStateException`](https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html) if any required parameter or property is unset. @@ -738,7 +739,7 @@ import java.util.Map; Map additionalProperties = client.parsing().create(params)._additionalProperties(); JsonValue secretPropertyValue = additionalProperties.get("secretProperty"); -String result = secretPropertyValue.accept(new JsonValue.Visitor() { +String result = secretPropertyValue.accept(new JsonValue.Visitor<>() { @Override public String visitNull() { return "It's null!"; @@ -763,9 +764,10 @@ To access a property's raw JSON value, which may be undocumented, call its `_` p ```java import ai.llamaindex.llamacloud.core.JsonField; +import ai.llamaindex.llamacloud.models.parsing.ParsingCreateParams; import java.util.Optional; -JsonField tier = client.parsing().create(params)._tier(); +JsonField tier = client.parsing().create(params)._tier(); if (tier.isMissing()) { // The property is absent from the JSON response @@ -777,7 +779,7 @@ if (tier.isMissing()) { Optional jsonString = tier.asString(); // Try to deserialize into a custom type - MyClass myObject = tier.asUnknown().get().convert(MyClass.class); + MyClass myObject = tier.asUnknown().orElseThrow().convert(MyClass.class); } ``` @@ -800,7 +802,6 @@ ParsingCreateResponse parsing = client.parsing().create(params).validate(); Or configure the method call to validate the response using the `responseValidation` method: ```java -import ai.llamaindex.llamacloud.core.RequestOptions; import ai.llamaindex.llamacloud.models.parsing.ParsingCreateResponse; ParsingCreateResponse parsing = client.parsing().create( From a5aad68a345b18eb57a018ad774e9d518f6204c5 Mon Sep 17 00:00:00 2001 From: stlc-bot Date: Sun, 16 Aug 2026 20:52:28 +0000 Subject: [PATCH 2/4] fix(parse): restore inline_images on cost_effective (new version 2026-08-11) (#23804) Stainless-Generated-From: bb49510492a4f1523459695ccabe0ad231da4110 --- .../configurations/ParseV2Parameters.kt | 32 ++++++++--------- .../models/parsing/ParsingCreateParams.kt | 36 +++++++++---------- .../parsing/ParsingListVersionsResponse.kt | 6 ++++ .../ParsingListVersionsResponseTest.kt | 6 ++-- 4 files changed, 43 insertions(+), 37 deletions(-) diff --git a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/configurations/ParseV2Parameters.kt b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/configurations/ParseV2Parameters.kt index 90c3b80..b7dc596 100644 --- a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/configurations/ParseV2Parameters.kt +++ b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/configurations/ParseV2Parameters.kt @@ -142,7 +142,7 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-08` + * - `cost_effective`: `2026-08-11` * - `agentic`: `2026-07-24` * - `agentic_plus`: `2026-07-08` * @@ -480,7 +480,7 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-08` + * - `cost_effective`: `2026-08-11` * - `agentic`: `2026-07-24` * - `agentic_plus`: `2026-07-08` * @@ -1011,7 +1011,7 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-08` + * - `cost_effective`: `2026-08-11` * - `agentic`: `2026-07-24` * - `agentic_plus`: `2026-07-08` * @@ -1033,7 +1033,7 @@ private constructor( @JvmField val LATEST = of("latest") - @JvmField val _2026_08_08 = of("2026-08-08") + @JvmField val _2026_08_11 = of("2026-08-11") @JvmField val _2026_07_24 = of("2026-07-24") @@ -1047,7 +1047,7 @@ private constructor( /** An enum containing [Version]'s known values. */ enum class Known { LATEST, - _2026_08_08, + _2026_08_11, _2026_07_24, _2026_07_08, _2026_06_15, @@ -1064,7 +1064,7 @@ private constructor( */ enum class Value { LATEST, - _2026_08_08, + _2026_08_11, _2026_07_24, _2026_07_08, _2026_06_15, @@ -1082,7 +1082,7 @@ private constructor( fun value(): Value = when (this) { LATEST -> Value.LATEST - _2026_08_08 -> Value._2026_08_08 + _2026_08_11 -> Value._2026_08_11 _2026_07_24 -> Value._2026_07_24 _2026_07_08 -> Value._2026_07_08 _2026_06_15 -> Value._2026_06_15 @@ -1101,7 +1101,7 @@ private constructor( fun known(): Known = when (this) { LATEST -> Known.LATEST - _2026_08_08 -> Known._2026_08_08 + _2026_08_11 -> Known._2026_08_11 _2026_07_24 -> Known._2026_07_24 _2026_07_08 -> Known._2026_07_08 _2026_06_15 -> Known._2026_06_15 @@ -9688,7 +9688,7 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-08` + * - `cost_effective`: `2026-08-11` * - `agentic`: `2026-07-24` * - `agentic_plus`: `2026-07-08` * @@ -10192,7 +10192,7 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-08` + * - `cost_effective`: `2026-08-11` * - `agentic`: `2026-07-24` * - `agentic_plus`: `2026-07-08` * @@ -11806,7 +11806,7 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-08` + * - `cost_effective`: `2026-08-11` * - `agentic`: `2026-07-24` * - `agentic_plus`: `2026-07-08` * @@ -11831,7 +11831,7 @@ private constructor( @JvmField val LATEST = of("latest") - @JvmField val _2026_08_08 = of("2026-08-08") + @JvmField val _2026_08_11 = of("2026-08-11") @JvmField val _2026_07_24 = of("2026-07-24") @@ -11845,7 +11845,7 @@ private constructor( /** An enum containing [Version]'s known values. */ enum class Known { LATEST, - _2026_08_08, + _2026_08_11, _2026_07_24, _2026_07_08, _2026_06_15, @@ -11862,7 +11862,7 @@ private constructor( */ enum class Value { LATEST, - _2026_08_08, + _2026_08_11, _2026_07_24, _2026_07_08, _2026_06_15, @@ -11883,7 +11883,7 @@ private constructor( fun value(): Value = when (this) { LATEST -> Value.LATEST - _2026_08_08 -> Value._2026_08_08 + _2026_08_11 -> Value._2026_08_11 _2026_07_24 -> Value._2026_07_24 _2026_07_08 -> Value._2026_07_08 _2026_06_15 -> Value._2026_06_15 @@ -11902,7 +11902,7 @@ private constructor( fun known(): Known = when (this) { LATEST -> Known.LATEST - _2026_08_08 -> Known._2026_08_08 + _2026_08_11 -> Known._2026_08_11 _2026_07_24 -> Known._2026_07_24 _2026_07_08 -> Known._2026_07_08 _2026_06_15 -> Known._2026_06_15 diff --git a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingCreateParams.kt b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingCreateParams.kt index 001ae71..d3de4ad 100644 --- a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingCreateParams.kt +++ b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingCreateParams.kt @@ -76,7 +76,7 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-08` + * - `cost_effective`: `2026-08-11` * - `agentic`: `2026-07-24` * - `agentic_plus`: `2026-07-08` * @@ -464,7 +464,7 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-08` + * - `cost_effective`: `2026-08-11` * - `agentic`: `2026-07-24` * - `agentic_plus`: `2026-07-08` * @@ -1081,7 +1081,7 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-08` + * - `cost_effective`: `2026-08-11` * - `agentic`: `2026-07-24` * - `agentic_plus`: `2026-07-08` * @@ -1515,7 +1515,7 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-08` + * - `cost_effective`: `2026-08-11` * - `agentic`: `2026-07-24` * - `agentic_plus`: `2026-07-08` * @@ -2216,7 +2216,7 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-08` + * - `cost_effective`: `2026-08-11` * - `agentic`: `2026-07-24` * - `agentic_plus`: `2026-07-08` * @@ -2238,7 +2238,7 @@ private constructor( @JvmField val LATEST = of("latest") - @JvmField val _2026_08_08 = of("2026-08-08") + @JvmField val _2026_08_11 = of("2026-08-11") @JvmField val _2026_07_24 = of("2026-07-24") @@ -2252,7 +2252,7 @@ private constructor( /** An enum containing [Version]'s known values. */ enum class Known { LATEST, - _2026_08_08, + _2026_08_11, _2026_07_24, _2026_07_08, _2026_06_15, @@ -2269,7 +2269,7 @@ private constructor( */ enum class Value { LATEST, - _2026_08_08, + _2026_08_11, _2026_07_24, _2026_07_08, _2026_06_15, @@ -2287,7 +2287,7 @@ private constructor( fun value(): Value = when (this) { LATEST -> Value.LATEST - _2026_08_08 -> Value._2026_08_08 + _2026_08_11 -> Value._2026_08_11 _2026_07_24 -> Value._2026_07_24 _2026_07_08 -> Value._2026_07_08 _2026_06_15 -> Value._2026_06_15 @@ -2306,7 +2306,7 @@ private constructor( fun known(): Known = when (this) { LATEST -> Known.LATEST - _2026_08_08 -> Known._2026_08_08 + _2026_08_11 -> Known._2026_08_11 _2026_07_24 -> Known._2026_07_24 _2026_07_08 -> Known._2026_07_08 _2026_06_15 -> Known._2026_06_15 @@ -10893,7 +10893,7 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-08` + * - `cost_effective`: `2026-08-11` * - `agentic`: `2026-07-24` * - `agentic_plus`: `2026-07-08` * @@ -11397,7 +11397,7 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-08` + * - `cost_effective`: `2026-08-11` * - `agentic`: `2026-07-24` * - `agentic_plus`: `2026-07-08` * @@ -13011,7 +13011,7 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-08` + * - `cost_effective`: `2026-08-11` * - `agentic`: `2026-07-24` * - `agentic_plus`: `2026-07-08` * @@ -13036,7 +13036,7 @@ private constructor( @JvmField val LATEST = of("latest") - @JvmField val _2026_08_08 = of("2026-08-08") + @JvmField val _2026_08_11 = of("2026-08-11") @JvmField val _2026_07_24 = of("2026-07-24") @@ -13050,7 +13050,7 @@ private constructor( /** An enum containing [Version]'s known values. */ enum class Known { LATEST, - _2026_08_08, + _2026_08_11, _2026_07_24, _2026_07_08, _2026_06_15, @@ -13067,7 +13067,7 @@ private constructor( */ enum class Value { LATEST, - _2026_08_08, + _2026_08_11, _2026_07_24, _2026_07_08, _2026_06_15, @@ -13088,7 +13088,7 @@ private constructor( fun value(): Value = when (this) { LATEST -> Value.LATEST - _2026_08_08 -> Value._2026_08_08 + _2026_08_11 -> Value._2026_08_11 _2026_07_24 -> Value._2026_07_24 _2026_07_08 -> Value._2026_07_08 _2026_06_15 -> Value._2026_06_15 @@ -13107,7 +13107,7 @@ private constructor( fun known(): Known = when (this) { LATEST -> Known.LATEST - _2026_08_08 -> Known._2026_08_08 + _2026_08_11 -> Known._2026_08_11 _2026_07_24 -> Known._2026_07_24 _2026_07_08 -> Known._2026_07_08 _2026_06_15 -> Known._2026_06_15 diff --git a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingListVersionsResponse.kt b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingListVersionsResponse.kt index 3438f2f..d8f3f1d 100644 --- a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingListVersionsResponse.kt +++ b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingListVersionsResponse.kt @@ -1096,6 +1096,8 @@ private constructor( companion object { + @JvmField val _2026_08_11 = of("2026-08-11") + @JvmField val _2026_08_08 = of("2026-08-08") @JvmField val _2026_07_23 = of("2026-07-23") @@ -1127,6 +1129,7 @@ private constructor( /** An enum containing [CostEffective]'s known values. */ enum class Known { + _2026_08_11, _2026_08_08, _2026_07_23, _2026_06_26, @@ -1152,6 +1155,7 @@ private constructor( * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { + _2026_08_11, _2026_08_08, _2026_07_23, _2026_06_26, @@ -1181,6 +1185,7 @@ private constructor( */ fun value(): Value = when (this) { + _2026_08_11 -> Value._2026_08_11 _2026_08_08 -> Value._2026_08_08 _2026_07_23 -> Value._2026_07_23 _2026_06_26 -> Value._2026_06_26 @@ -1208,6 +1213,7 @@ private constructor( */ fun known(): Known = when (this) { + _2026_08_11 -> Known._2026_08_11 _2026_08_08 -> Known._2026_08_08 _2026_07_23 -> Known._2026_07_23 _2026_06_26 -> Known._2026_06_26 diff --git a/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingListVersionsResponseTest.kt b/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingListVersionsResponseTest.kt index 104c37d..e4823ad 100644 --- a/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingListVersionsResponseTest.kt +++ b/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingListVersionsResponseTest.kt @@ -15,7 +15,7 @@ internal class ParsingListVersionsResponseTest { ParsingListVersionsResponse.builder() .addAgentic(ParsingListVersionsResponse.Agentic._2026_07_24) .addAgenticPlus(ParsingListVersionsResponse.AgenticPlus._2026_07_08) - .addCostEffective(ParsingListVersionsResponse.CostEffective._2026_08_08) + .addCostEffective(ParsingListVersionsResponse.CostEffective._2026_08_11) .addFast(ParsingListVersionsResponse.Fast._2026_06_15) .build() @@ -24,7 +24,7 @@ internal class ParsingListVersionsResponseTest { assertThat(parsingListVersionsResponse.agenticPlus()) .containsExactly(ParsingListVersionsResponse.AgenticPlus._2026_07_08) assertThat(parsingListVersionsResponse.costEffective()) - .containsExactly(ParsingListVersionsResponse.CostEffective._2026_08_08) + .containsExactly(ParsingListVersionsResponse.CostEffective._2026_08_11) assertThat(parsingListVersionsResponse.fast()) .containsExactly(ParsingListVersionsResponse.Fast._2026_06_15) } @@ -36,7 +36,7 @@ internal class ParsingListVersionsResponseTest { ParsingListVersionsResponse.builder() .addAgentic(ParsingListVersionsResponse.Agentic._2026_07_24) .addAgenticPlus(ParsingListVersionsResponse.AgenticPlus._2026_07_08) - .addCostEffective(ParsingListVersionsResponse.CostEffective._2026_08_08) + .addCostEffective(ParsingListVersionsResponse.CostEffective._2026_08_11) .addFast(ParsingListVersionsResponse.Fast._2026_06_15) .build() From 5a5c1b69ba6045c150f34cb22e122b1b64c66bf6 Mon Sep 17 00:00:00 2001 From: stlc-bot Date: Tue, 18 Aug 2026 12:29:58 +0000 Subject: [PATCH 3/4] Build SDK Stainless-Generated-From: 4fcc76cde64a60284b3ca2d031d8a6e2ef597511 --- .../models/classify/ClassifyCancelResponse.kt | 12 +++++++++--- .../models/classify/ClassifyCreateResponse.kt | 12 +++++++++--- .../models/classify/ClassifyGetResponse.kt | 12 +++++++++--- .../llamacloud/models/classify/ClassifyListParams.kt | 6 ++++++ .../models/classify/ClassifyListResponse.kt | 12 +++++++++--- .../models/classify/ClassifyCancelResponseTest.kt | 6 +++--- .../models/classify/ClassifyCreateResponseTest.kt | 6 +++--- .../models/classify/ClassifyGetResponseTest.kt | 6 +++--- .../models/classify/ClassifyListPageResponseTest.kt | 6 +++--- .../models/classify/ClassifyListParamsTest.kt | 6 +++--- .../models/classify/ClassifyListResponseTest.kt | 6 +++--- 11 files changed, 60 insertions(+), 30 deletions(-) diff --git a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyCancelResponse.kt b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyCancelResponse.kt index 2f8ec00..7815a78 100644 --- a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyCancelResponse.kt +++ b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyCancelResponse.kt @@ -134,7 +134,7 @@ private constructor( fun projectId(): String = projectId.getRequired("project_id") /** - * Current job status: PENDING, RUNNING, COMPLETED, or FAILED + * Current job status: PENDING, RUNNING, COMPLETED, FAILED, or CANCELLED * * @throws LlamaCloudInvalidDataException if the JSON field has an unexpected type or is * unexpectedly missing or null (e.g. if the server responded with an unexpected value). @@ -452,7 +452,7 @@ private constructor( */ fun projectId(projectId: JsonField) = apply { this.projectId = projectId } - /** Current job status: PENDING, RUNNING, COMPLETED, or FAILED */ + /** Current job status: PENDING, RUNNING, COMPLETED, FAILED, or CANCELLED */ fun status(status: Status) = status(JsonField.of(status)) /** @@ -855,7 +855,7 @@ private constructor( override fun toString() = value.toString() } - /** Current job status: PENDING, RUNNING, COMPLETED, or FAILED */ + /** Current job status: PENDING, RUNNING, COMPLETED, FAILED, or CANCELLED */ class Status @JsonCreator private constructor(private val value: JsonField) : Enum { /** @@ -870,6 +870,8 @@ private constructor( companion object { + @JvmField val CANCELLED = of("CANCELLED") + @JvmField val COMPLETED = of("COMPLETED") @JvmField val FAILED = of("FAILED") @@ -883,6 +885,7 @@ private constructor( /** An enum containing [Status]'s known values. */ enum class Known { + CANCELLED, COMPLETED, FAILED, PENDING, @@ -899,6 +902,7 @@ private constructor( * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { + CANCELLED, COMPLETED, FAILED, PENDING, @@ -916,6 +920,7 @@ private constructor( */ fun value(): Value = when (this) { + CANCELLED -> Value.CANCELLED COMPLETED -> Value.COMPLETED FAILED -> Value.FAILED PENDING -> Value.PENDING @@ -934,6 +939,7 @@ private constructor( */ fun known(): Known = when (this) { + CANCELLED -> Known.CANCELLED COMPLETED -> Known.COMPLETED FAILED -> Known.FAILED PENDING -> Known.PENDING diff --git a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyCreateResponse.kt b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyCreateResponse.kt index f7be97d..571e45d 100644 --- a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyCreateResponse.kt +++ b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyCreateResponse.kt @@ -134,7 +134,7 @@ private constructor( fun projectId(): String = projectId.getRequired("project_id") /** - * Current job status: PENDING, RUNNING, COMPLETED, or FAILED + * Current job status: PENDING, RUNNING, COMPLETED, FAILED, or CANCELLED * * @throws LlamaCloudInvalidDataException if the JSON field has an unexpected type or is * unexpectedly missing or null (e.g. if the server responded with an unexpected value). @@ -452,7 +452,7 @@ private constructor( */ fun projectId(projectId: JsonField) = apply { this.projectId = projectId } - /** Current job status: PENDING, RUNNING, COMPLETED, or FAILED */ + /** Current job status: PENDING, RUNNING, COMPLETED, FAILED, or CANCELLED */ fun status(status: Status) = status(JsonField.of(status)) /** @@ -855,7 +855,7 @@ private constructor( override fun toString() = value.toString() } - /** Current job status: PENDING, RUNNING, COMPLETED, or FAILED */ + /** Current job status: PENDING, RUNNING, COMPLETED, FAILED, or CANCELLED */ class Status @JsonCreator private constructor(private val value: JsonField) : Enum { /** @@ -870,6 +870,8 @@ private constructor( companion object { + @JvmField val CANCELLED = of("CANCELLED") + @JvmField val COMPLETED = of("COMPLETED") @JvmField val FAILED = of("FAILED") @@ -883,6 +885,7 @@ private constructor( /** An enum containing [Status]'s known values. */ enum class Known { + CANCELLED, COMPLETED, FAILED, PENDING, @@ -899,6 +902,7 @@ private constructor( * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { + CANCELLED, COMPLETED, FAILED, PENDING, @@ -916,6 +920,7 @@ private constructor( */ fun value(): Value = when (this) { + CANCELLED -> Value.CANCELLED COMPLETED -> Value.COMPLETED FAILED -> Value.FAILED PENDING -> Value.PENDING @@ -934,6 +939,7 @@ private constructor( */ fun known(): Known = when (this) { + CANCELLED -> Known.CANCELLED COMPLETED -> Known.COMPLETED FAILED -> Known.FAILED PENDING -> Known.PENDING diff --git a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyGetResponse.kt b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyGetResponse.kt index f3982d4..7d3486f 100644 --- a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyGetResponse.kt +++ b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyGetResponse.kt @@ -134,7 +134,7 @@ private constructor( fun projectId(): String = projectId.getRequired("project_id") /** - * Current job status: PENDING, RUNNING, COMPLETED, or FAILED + * Current job status: PENDING, RUNNING, COMPLETED, FAILED, or CANCELLED * * @throws LlamaCloudInvalidDataException if the JSON field has an unexpected type or is * unexpectedly missing or null (e.g. if the server responded with an unexpected value). @@ -452,7 +452,7 @@ private constructor( */ fun projectId(projectId: JsonField) = apply { this.projectId = projectId } - /** Current job status: PENDING, RUNNING, COMPLETED, or FAILED */ + /** Current job status: PENDING, RUNNING, COMPLETED, FAILED, or CANCELLED */ fun status(status: Status) = status(JsonField.of(status)) /** @@ -855,7 +855,7 @@ private constructor( override fun toString() = value.toString() } - /** Current job status: PENDING, RUNNING, COMPLETED, or FAILED */ + /** Current job status: PENDING, RUNNING, COMPLETED, FAILED, or CANCELLED */ class Status @JsonCreator private constructor(private val value: JsonField) : Enum { /** @@ -870,6 +870,8 @@ private constructor( companion object { + @JvmField val CANCELLED = of("CANCELLED") + @JvmField val COMPLETED = of("COMPLETED") @JvmField val FAILED = of("FAILED") @@ -883,6 +885,7 @@ private constructor( /** An enum containing [Status]'s known values. */ enum class Known { + CANCELLED, COMPLETED, FAILED, PENDING, @@ -899,6 +902,7 @@ private constructor( * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { + CANCELLED, COMPLETED, FAILED, PENDING, @@ -916,6 +920,7 @@ private constructor( */ fun value(): Value = when (this) { + CANCELLED -> Value.CANCELLED COMPLETED -> Value.COMPLETED FAILED -> Value.FAILED PENDING -> Value.PENDING @@ -934,6 +939,7 @@ private constructor( */ fun known(): Known = when (this) { + CANCELLED -> Known.CANCELLED COMPLETED -> Known.COMPLETED FAILED -> Known.FAILED PENDING -> Known.PENDING diff --git a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListParams.kt b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListParams.kt index c938004..e990d18 100644 --- a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListParams.kt +++ b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListParams.kt @@ -348,6 +348,8 @@ private constructor( companion object { + @JvmField val CANCELLED = of("CANCELLED") + @JvmField val COMPLETED = of("COMPLETED") @JvmField val FAILED = of("FAILED") @@ -361,6 +363,7 @@ private constructor( /** An enum containing [Status]'s known values. */ enum class Known { + CANCELLED, COMPLETED, FAILED, PENDING, @@ -377,6 +380,7 @@ private constructor( * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { + CANCELLED, COMPLETED, FAILED, PENDING, @@ -394,6 +398,7 @@ private constructor( */ fun value(): Value = when (this) { + CANCELLED -> Value.CANCELLED COMPLETED -> Value.COMPLETED FAILED -> Value.FAILED PENDING -> Value.PENDING @@ -412,6 +417,7 @@ private constructor( */ fun known(): Known = when (this) { + CANCELLED -> Known.CANCELLED COMPLETED -> Known.COMPLETED FAILED -> Known.FAILED PENDING -> Known.PENDING diff --git a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListResponse.kt b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListResponse.kt index ab05e13..4b4ffc8 100644 --- a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListResponse.kt +++ b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListResponse.kt @@ -134,7 +134,7 @@ private constructor( fun projectId(): String = projectId.getRequired("project_id") /** - * Current job status: PENDING, RUNNING, COMPLETED, or FAILED + * Current job status: PENDING, RUNNING, COMPLETED, FAILED, or CANCELLED * * @throws LlamaCloudInvalidDataException if the JSON field has an unexpected type or is * unexpectedly missing or null (e.g. if the server responded with an unexpected value). @@ -452,7 +452,7 @@ private constructor( */ fun projectId(projectId: JsonField) = apply { this.projectId = projectId } - /** Current job status: PENDING, RUNNING, COMPLETED, or FAILED */ + /** Current job status: PENDING, RUNNING, COMPLETED, FAILED, or CANCELLED */ fun status(status: Status) = status(JsonField.of(status)) /** @@ -855,7 +855,7 @@ private constructor( override fun toString() = value.toString() } - /** Current job status: PENDING, RUNNING, COMPLETED, or FAILED */ + /** Current job status: PENDING, RUNNING, COMPLETED, FAILED, or CANCELLED */ class Status @JsonCreator private constructor(private val value: JsonField) : Enum { /** @@ -870,6 +870,8 @@ private constructor( companion object { + @JvmField val CANCELLED = of("CANCELLED") + @JvmField val COMPLETED = of("COMPLETED") @JvmField val FAILED = of("FAILED") @@ -883,6 +885,7 @@ private constructor( /** An enum containing [Status]'s known values. */ enum class Known { + CANCELLED, COMPLETED, FAILED, PENDING, @@ -899,6 +902,7 @@ private constructor( * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { + CANCELLED, COMPLETED, FAILED, PENDING, @@ -916,6 +920,7 @@ private constructor( */ fun value(): Value = when (this) { + CANCELLED -> Value.CANCELLED COMPLETED -> Value.COMPLETED FAILED -> Value.FAILED PENDING -> Value.PENDING @@ -934,6 +939,7 @@ private constructor( */ fun known(): Known = when (this) { + CANCELLED -> Known.CANCELLED COMPLETED -> Known.COMPLETED FAILED -> Known.FAILED PENDING -> Known.PENDING diff --git a/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyCancelResponseTest.kt b/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyCancelResponseTest.kt index 05a48f4..6fee807 100644 --- a/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyCancelResponseTest.kt +++ b/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyCancelResponseTest.kt @@ -38,7 +38,7 @@ internal class ClassifyCancelResponseTest { .documentInputType(ClassifyCancelResponse.DocumentInputType.FILE_ID) .fileInput("file_input") .projectId("project_id") - .status(ClassifyCancelResponse.Status.COMPLETED) + .status(ClassifyCancelResponse.Status.CANCELLED) .userId("user_id") .configurationId("configuration_id") .createdAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) @@ -80,7 +80,7 @@ internal class ClassifyCancelResponseTest { assertThat(classifyCancelResponse.fileInput()).isEqualTo("file_input") assertThat(classifyCancelResponse.projectId()).isEqualTo("project_id") assertThat(classifyCancelResponse.status()) - .isEqualTo(ClassifyCancelResponse.Status.COMPLETED) + .isEqualTo(ClassifyCancelResponse.Status.CANCELLED) assertThat(classifyCancelResponse.userId()).isEqualTo("user_id") assertThat(classifyCancelResponse.configurationId()).contains("configuration_id") assertThat(classifyCancelResponse.createdAt()) @@ -125,7 +125,7 @@ internal class ClassifyCancelResponseTest { .documentInputType(ClassifyCancelResponse.DocumentInputType.FILE_ID) .fileInput("file_input") .projectId("project_id") - .status(ClassifyCancelResponse.Status.COMPLETED) + .status(ClassifyCancelResponse.Status.CANCELLED) .userId("user_id") .configurationId("configuration_id") .createdAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) diff --git a/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyCreateResponseTest.kt b/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyCreateResponseTest.kt index a065628..bdf31c8 100644 --- a/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyCreateResponseTest.kt +++ b/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyCreateResponseTest.kt @@ -38,7 +38,7 @@ internal class ClassifyCreateResponseTest { .documentInputType(ClassifyCreateResponse.DocumentInputType.FILE_ID) .fileInput("file_input") .projectId("project_id") - .status(ClassifyCreateResponse.Status.COMPLETED) + .status(ClassifyCreateResponse.Status.CANCELLED) .userId("user_id") .configurationId("configuration_id") .createdAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) @@ -80,7 +80,7 @@ internal class ClassifyCreateResponseTest { assertThat(classifyCreateResponse.fileInput()).isEqualTo("file_input") assertThat(classifyCreateResponse.projectId()).isEqualTo("project_id") assertThat(classifyCreateResponse.status()) - .isEqualTo(ClassifyCreateResponse.Status.COMPLETED) + .isEqualTo(ClassifyCreateResponse.Status.CANCELLED) assertThat(classifyCreateResponse.userId()).isEqualTo("user_id") assertThat(classifyCreateResponse.configurationId()).contains("configuration_id") assertThat(classifyCreateResponse.createdAt()) @@ -125,7 +125,7 @@ internal class ClassifyCreateResponseTest { .documentInputType(ClassifyCreateResponse.DocumentInputType.FILE_ID) .fileInput("file_input") .projectId("project_id") - .status(ClassifyCreateResponse.Status.COMPLETED) + .status(ClassifyCreateResponse.Status.CANCELLED) .userId("user_id") .configurationId("configuration_id") .createdAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) diff --git a/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyGetResponseTest.kt b/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyGetResponseTest.kt index 136bc5e..37a1d4a 100644 --- a/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyGetResponseTest.kt +++ b/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyGetResponseTest.kt @@ -38,7 +38,7 @@ internal class ClassifyGetResponseTest { .documentInputType(ClassifyGetResponse.DocumentInputType.FILE_ID) .fileInput("file_input") .projectId("project_id") - .status(ClassifyGetResponse.Status.COMPLETED) + .status(ClassifyGetResponse.Status.CANCELLED) .userId("user_id") .configurationId("configuration_id") .createdAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) @@ -79,7 +79,7 @@ internal class ClassifyGetResponseTest { .isEqualTo(ClassifyGetResponse.DocumentInputType.FILE_ID) assertThat(classifyGetResponse.fileInput()).isEqualTo("file_input") assertThat(classifyGetResponse.projectId()).isEqualTo("project_id") - assertThat(classifyGetResponse.status()).isEqualTo(ClassifyGetResponse.Status.COMPLETED) + assertThat(classifyGetResponse.status()).isEqualTo(ClassifyGetResponse.Status.CANCELLED) assertThat(classifyGetResponse.userId()).isEqualTo("user_id") assertThat(classifyGetResponse.configurationId()).contains("configuration_id") assertThat(classifyGetResponse.createdAt()) @@ -124,7 +124,7 @@ internal class ClassifyGetResponseTest { .documentInputType(ClassifyGetResponse.DocumentInputType.FILE_ID) .fileInput("file_input") .projectId("project_id") - .status(ClassifyGetResponse.Status.COMPLETED) + .status(ClassifyGetResponse.Status.CANCELLED) .userId("user_id") .configurationId("configuration_id") .createdAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) diff --git a/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListPageResponseTest.kt b/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListPageResponseTest.kt index 288ae40..357581f 100644 --- a/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListPageResponseTest.kt +++ b/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListPageResponseTest.kt @@ -40,7 +40,7 @@ internal class ClassifyListPageResponseTest { .documentInputType(ClassifyListResponse.DocumentInputType.FILE_ID) .fileInput("file_input") .projectId("project_id") - .status(ClassifyListResponse.Status.COMPLETED) + .status(ClassifyListResponse.Status.CANCELLED) .userId("user_id") .configurationId("configuration_id") .createdAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) @@ -88,7 +88,7 @@ internal class ClassifyListPageResponseTest { .documentInputType(ClassifyListResponse.DocumentInputType.FILE_ID) .fileInput("file_input") .projectId("project_id") - .status(ClassifyListResponse.Status.COMPLETED) + .status(ClassifyListResponse.Status.CANCELLED) .userId("user_id") .configurationId("configuration_id") .createdAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) @@ -140,7 +140,7 @@ internal class ClassifyListPageResponseTest { .documentInputType(ClassifyListResponse.DocumentInputType.FILE_ID) .fileInput("file_input") .projectId("project_id") - .status(ClassifyListResponse.Status.COMPLETED) + .status(ClassifyListResponse.Status.CANCELLED) .userId("user_id") .configurationId("configuration_id") .createdAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) diff --git a/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListParamsTest.kt b/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListParamsTest.kt index 1949f8c..4e2c6df 100644 --- a/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListParamsTest.kt +++ b/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListParamsTest.kt @@ -21,7 +21,7 @@ internal class ClassifyListParamsTest { .pageSize(1L) .pageToken("page_token") .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") - .status(ClassifyListParams.Status.COMPLETED) + .status(ClassifyListParams.Status.CANCELLED) .build() } @@ -38,7 +38,7 @@ internal class ClassifyListParamsTest { .pageSize(1L) .pageToken("page_token") .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") - .status(ClassifyListParams.Status.COMPLETED) + .status(ClassifyListParams.Status.CANCELLED) .build() val queryParams = params._queryParams() @@ -55,7 +55,7 @@ internal class ClassifyListParamsTest { .put("page_size", "1") .put("page_token", "page_token") .put("project_id", "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") - .put("status", "COMPLETED") + .put("status", "CANCELLED") .build() ) } diff --git a/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListResponseTest.kt b/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListResponseTest.kt index 2ebb6cb..4cb540d 100644 --- a/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListResponseTest.kt +++ b/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/classify/ClassifyListResponseTest.kt @@ -38,7 +38,7 @@ internal class ClassifyListResponseTest { .documentInputType(ClassifyListResponse.DocumentInputType.FILE_ID) .fileInput("file_input") .projectId("project_id") - .status(ClassifyListResponse.Status.COMPLETED) + .status(ClassifyListResponse.Status.CANCELLED) .userId("user_id") .configurationId("configuration_id") .createdAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) @@ -79,7 +79,7 @@ internal class ClassifyListResponseTest { .isEqualTo(ClassifyListResponse.DocumentInputType.FILE_ID) assertThat(classifyListResponse.fileInput()).isEqualTo("file_input") assertThat(classifyListResponse.projectId()).isEqualTo("project_id") - assertThat(classifyListResponse.status()).isEqualTo(ClassifyListResponse.Status.COMPLETED) + assertThat(classifyListResponse.status()).isEqualTo(ClassifyListResponse.Status.CANCELLED) assertThat(classifyListResponse.userId()).isEqualTo("user_id") assertThat(classifyListResponse.configurationId()).contains("configuration_id") assertThat(classifyListResponse.createdAt()) @@ -124,7 +124,7 @@ internal class ClassifyListResponseTest { .documentInputType(ClassifyListResponse.DocumentInputType.FILE_ID) .fileInput("file_input") .projectId("project_id") - .status(ClassifyListResponse.Status.COMPLETED) + .status(ClassifyListResponse.Status.CANCELLED) .userId("user_id") .configurationId("configuration_id") .createdAt(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) From 7e44aaa4ca726a791930ff410a13a467f9775148 Mon Sep 17 00:00:00 2001 From: stlc-bot Date: Wed, 19 Aug 2026 22:23:07 +0000 Subject: [PATCH 4/4] Ship agentic-plus 2026-08-19: promote planner-sebas to the latest Agentic Plus version (#24725) Stainless-Generated-From: 6c659d554e6a0342d9f59b524001a038ab495bd3 --- .../configurations/ParseV2Parameters.kt | 80 ++++++---------- .../models/parsing/ParsingCreateParams.kt | 92 +++++++------------ .../parsing/ParsingListVersionsResponse.kt | 18 ++++ .../ParsingListVersionsResponseTest.kt | 18 ++-- 4 files changed, 89 insertions(+), 119 deletions(-) diff --git a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/configurations/ParseV2Parameters.kt b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/configurations/ParseV2Parameters.kt index b7dc596..b5e396a 100644 --- a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/configurations/ParseV2Parameters.kt +++ b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/configurations/ParseV2Parameters.kt @@ -142,9 +142,9 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-11` - * - `agentic`: `2026-07-24` - * - `agentic_plus`: `2026-07-08` + * - `cost_effective`: `2026-08-19` + * - `agentic`: `2026-08-19` + * - `agentic_plus`: `2026-08-19` * * Full list: `GET /api/v2/parse/versions`. * @@ -480,9 +480,9 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-11` - * - `agentic`: `2026-07-24` - * - `agentic_plus`: `2026-07-08` + * - `cost_effective`: `2026-08-19` + * - `agentic`: `2026-08-19` + * - `agentic_plus`: `2026-08-19` * * Full list: `GET /api/v2/parse/versions`. */ @@ -1011,9 +1011,9 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-11` - * - `agentic`: `2026-07-24` - * - `agentic_plus`: `2026-07-08` + * - `cost_effective`: `2026-08-19` + * - `agentic`: `2026-08-19` + * - `agentic_plus`: `2026-08-19` * * Full list: `GET /api/v2/parse/versions`. */ @@ -1033,11 +1033,7 @@ private constructor( @JvmField val LATEST = of("latest") - @JvmField val _2026_08_11 = of("2026-08-11") - - @JvmField val _2026_07_24 = of("2026-07-24") - - @JvmField val _2026_07_08 = of("2026-07-08") + @JvmField val _2026_08_19 = of("2026-08-19") @JvmField val _2026_06_15 = of("2026-06-15") @@ -1047,9 +1043,7 @@ private constructor( /** An enum containing [Version]'s known values. */ enum class Known { LATEST, - _2026_08_11, - _2026_07_24, - _2026_07_08, + _2026_08_19, _2026_06_15, } @@ -1064,9 +1058,7 @@ private constructor( */ enum class Value { LATEST, - _2026_08_11, - _2026_07_24, - _2026_07_08, + _2026_08_19, _2026_06_15, /** An enum member indicating that [Version] was instantiated with an unknown value. */ _UNKNOWN, @@ -1082,9 +1074,7 @@ private constructor( fun value(): Value = when (this) { LATEST -> Value.LATEST - _2026_08_11 -> Value._2026_08_11 - _2026_07_24 -> Value._2026_07_24 - _2026_07_08 -> Value._2026_07_08 + _2026_08_19 -> Value._2026_08_19 _2026_06_15 -> Value._2026_06_15 else -> Value._UNKNOWN } @@ -1101,9 +1091,7 @@ private constructor( fun known(): Known = when (this) { LATEST -> Known.LATEST - _2026_08_11 -> Known._2026_08_11 - _2026_07_24 -> Known._2026_07_24 - _2026_07_08 -> Known._2026_07_08 + _2026_08_19 -> Known._2026_08_19 _2026_06_15 -> Known._2026_06_15 else -> throw LlamaCloudInvalidDataException("Unknown Version: $value") } @@ -9688,9 +9676,9 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-11` - * - `agentic`: `2026-07-24` - * - `agentic_plus`: `2026-07-08` + * - `cost_effective`: `2026-08-19` + * - `agentic`: `2026-08-19` + * - `agentic_plus`: `2026-08-19` * * Full list: `GET /api/v2/parse/versions`. * @@ -10192,9 +10180,9 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-11` - * - `agentic`: `2026-07-24` - * - `agentic_plus`: `2026-07-08` + * - `cost_effective`: `2026-08-19` + * - `agentic`: `2026-08-19` + * - `agentic_plus`: `2026-08-19` * * Full list: `GET /api/v2/parse/versions`. */ @@ -11806,9 +11794,9 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-11` - * - `agentic`: `2026-07-24` - * - `agentic_plus`: `2026-07-08` + * - `cost_effective`: `2026-08-19` + * - `agentic`: `2026-08-19` + * - `agentic_plus`: `2026-08-19` * * Full list: `GET /api/v2/parse/versions`. */ @@ -11831,11 +11819,7 @@ private constructor( @JvmField val LATEST = of("latest") - @JvmField val _2026_08_11 = of("2026-08-11") - - @JvmField val _2026_07_24 = of("2026-07-24") - - @JvmField val _2026_07_08 = of("2026-07-08") + @JvmField val _2026_08_19 = of("2026-08-19") @JvmField val _2026_06_15 = of("2026-06-15") @@ -11845,9 +11829,7 @@ private constructor( /** An enum containing [Version]'s known values. */ enum class Known { LATEST, - _2026_08_11, - _2026_07_24, - _2026_07_08, + _2026_08_19, _2026_06_15, } @@ -11862,9 +11844,7 @@ private constructor( */ enum class Value { LATEST, - _2026_08_11, - _2026_07_24, - _2026_07_08, + _2026_08_19, _2026_06_15, /** * An enum member indicating that [Version] was instantiated with an unknown @@ -11883,9 +11863,7 @@ private constructor( fun value(): Value = when (this) { LATEST -> Value.LATEST - _2026_08_11 -> Value._2026_08_11 - _2026_07_24 -> Value._2026_07_24 - _2026_07_08 -> Value._2026_07_08 + _2026_08_19 -> Value._2026_08_19 _2026_06_15 -> Value._2026_06_15 else -> Value._UNKNOWN } @@ -11902,9 +11880,7 @@ private constructor( fun known(): Known = when (this) { LATEST -> Known.LATEST - _2026_08_11 -> Known._2026_08_11 - _2026_07_24 -> Known._2026_07_24 - _2026_07_08 -> Known._2026_07_08 + _2026_08_19 -> Known._2026_08_19 _2026_06_15 -> Known._2026_06_15 else -> throw LlamaCloudInvalidDataException("Unknown Version: $value") } diff --git a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingCreateParams.kt b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingCreateParams.kt index d3de4ad..8403fc3 100644 --- a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingCreateParams.kt +++ b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingCreateParams.kt @@ -76,9 +76,9 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-11` - * - `agentic`: `2026-07-24` - * - `agentic_plus`: `2026-07-08` + * - `cost_effective`: `2026-08-19` + * - `agentic`: `2026-08-19` + * - `agentic_plus`: `2026-08-19` * * Full list: `GET /api/v2/parse/versions`. * @@ -464,9 +464,9 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-11` - * - `agentic`: `2026-07-24` - * - `agentic_plus`: `2026-07-08` + * - `cost_effective`: `2026-08-19` + * - `agentic`: `2026-08-19` + * - `agentic_plus`: `2026-08-19` * * Full list: `GET /api/v2/parse/versions`. */ @@ -1081,9 +1081,9 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-11` - * - `agentic`: `2026-07-24` - * - `agentic_plus`: `2026-07-08` + * - `cost_effective`: `2026-08-19` + * - `agentic`: `2026-08-19` + * - `agentic_plus`: `2026-08-19` * * Full list: `GET /api/v2/parse/versions`. * @@ -1515,9 +1515,9 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-11` - * - `agentic`: `2026-07-24` - * - `agentic_plus`: `2026-07-08` + * - `cost_effective`: `2026-08-19` + * - `agentic`: `2026-08-19` + * - `agentic_plus`: `2026-08-19` * * Full list: `GET /api/v2/parse/versions`. */ @@ -2216,9 +2216,9 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-11` - * - `agentic`: `2026-07-24` - * - `agentic_plus`: `2026-07-08` + * - `cost_effective`: `2026-08-19` + * - `agentic`: `2026-08-19` + * - `agentic_plus`: `2026-08-19` * * Full list: `GET /api/v2/parse/versions`. */ @@ -2238,11 +2238,7 @@ private constructor( @JvmField val LATEST = of("latest") - @JvmField val _2026_08_11 = of("2026-08-11") - - @JvmField val _2026_07_24 = of("2026-07-24") - - @JvmField val _2026_07_08 = of("2026-07-08") + @JvmField val _2026_08_19 = of("2026-08-19") @JvmField val _2026_06_15 = of("2026-06-15") @@ -2252,9 +2248,7 @@ private constructor( /** An enum containing [Version]'s known values. */ enum class Known { LATEST, - _2026_08_11, - _2026_07_24, - _2026_07_08, + _2026_08_19, _2026_06_15, } @@ -2269,9 +2263,7 @@ private constructor( */ enum class Value { LATEST, - _2026_08_11, - _2026_07_24, - _2026_07_08, + _2026_08_19, _2026_06_15, /** An enum member indicating that [Version] was instantiated with an unknown value. */ _UNKNOWN, @@ -2287,9 +2279,7 @@ private constructor( fun value(): Value = when (this) { LATEST -> Value.LATEST - _2026_08_11 -> Value._2026_08_11 - _2026_07_24 -> Value._2026_07_24 - _2026_07_08 -> Value._2026_07_08 + _2026_08_19 -> Value._2026_08_19 _2026_06_15 -> Value._2026_06_15 else -> Value._UNKNOWN } @@ -2306,9 +2296,7 @@ private constructor( fun known(): Known = when (this) { LATEST -> Known.LATEST - _2026_08_11 -> Known._2026_08_11 - _2026_07_24 -> Known._2026_07_24 - _2026_07_08 -> Known._2026_07_08 + _2026_08_19 -> Known._2026_08_19 _2026_06_15 -> Known._2026_06_15 else -> throw LlamaCloudInvalidDataException("Unknown Version: $value") } @@ -10893,9 +10881,9 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-11` - * - `agentic`: `2026-07-24` - * - `agentic_plus`: `2026-07-08` + * - `cost_effective`: `2026-08-19` + * - `agentic`: `2026-08-19` + * - `agentic_plus`: `2026-08-19` * * Full list: `GET /api/v2/parse/versions`. * @@ -11397,9 +11385,9 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-11` - * - `agentic`: `2026-07-24` - * - `agentic_plus`: `2026-07-08` + * - `cost_effective`: `2026-08-19` + * - `agentic`: `2026-08-19` + * - `agentic_plus`: `2026-08-19` * * Full list: `GET /api/v2/parse/versions`. */ @@ -13011,9 +12999,9 @@ private constructor( * * Current `latest` by tier: * - `fast`: `2026-06-15` - * - `cost_effective`: `2026-08-11` - * - `agentic`: `2026-07-24` - * - `agentic_plus`: `2026-07-08` + * - `cost_effective`: `2026-08-19` + * - `agentic`: `2026-08-19` + * - `agentic_plus`: `2026-08-19` * * Full list: `GET /api/v2/parse/versions`. */ @@ -13036,11 +13024,7 @@ private constructor( @JvmField val LATEST = of("latest") - @JvmField val _2026_08_11 = of("2026-08-11") - - @JvmField val _2026_07_24 = of("2026-07-24") - - @JvmField val _2026_07_08 = of("2026-07-08") + @JvmField val _2026_08_19 = of("2026-08-19") @JvmField val _2026_06_15 = of("2026-06-15") @@ -13050,9 +13034,7 @@ private constructor( /** An enum containing [Version]'s known values. */ enum class Known { LATEST, - _2026_08_11, - _2026_07_24, - _2026_07_08, + _2026_08_19, _2026_06_15, } @@ -13067,9 +13049,7 @@ private constructor( */ enum class Value { LATEST, - _2026_08_11, - _2026_07_24, - _2026_07_08, + _2026_08_19, _2026_06_15, /** * An enum member indicating that [Version] was instantiated with an unknown @@ -13088,9 +13068,7 @@ private constructor( fun value(): Value = when (this) { LATEST -> Value.LATEST - _2026_08_11 -> Value._2026_08_11 - _2026_07_24 -> Value._2026_07_24 - _2026_07_08 -> Value._2026_07_08 + _2026_08_19 -> Value._2026_08_19 _2026_06_15 -> Value._2026_06_15 else -> Value._UNKNOWN } @@ -13107,9 +13085,7 @@ private constructor( fun known(): Known = when (this) { LATEST -> Known.LATEST - _2026_08_11 -> Known._2026_08_11 - _2026_07_24 -> Known._2026_07_24 - _2026_07_08 -> Known._2026_07_08 + _2026_08_19 -> Known._2026_08_19 _2026_06_15 -> Known._2026_06_15 else -> throw LlamaCloudInvalidDataException("Unknown Version: $value") } diff --git a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingListVersionsResponse.kt b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingListVersionsResponse.kt index d8f3f1d..ba0e63e 100644 --- a/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingListVersionsResponse.kt +++ b/llama-cloud-core/src/main/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingListVersionsResponse.kt @@ -358,6 +358,8 @@ private constructor( companion object { + @JvmField val _2026_08_19 = of("2026-08-19") + @JvmField val _2026_07_24 = of("2026-07-24") @JvmField val _2026_07_23 = of("2026-07-23") @@ -447,6 +449,7 @@ private constructor( /** An enum containing [Agentic]'s known values. */ enum class Known { + _2026_08_19, _2026_07_24, _2026_07_23, _2026_07_15, @@ -501,6 +504,7 @@ private constructor( * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { + _2026_08_19, _2026_07_24, _2026_07_23, _2026_07_15, @@ -556,6 +560,7 @@ private constructor( */ fun value(): Value = when (this) { + _2026_08_19 -> Value._2026_08_19 _2026_07_24 -> Value._2026_07_24 _2026_07_23 -> Value._2026_07_23 _2026_07_15 -> Value._2026_07_15 @@ -612,6 +617,7 @@ private constructor( */ fun known(): Known = when (this) { + _2026_08_19 -> Known._2026_08_19 _2026_07_24 -> Known._2026_07_24 _2026_07_23 -> Known._2026_07_23 _2026_07_15 -> Known._2026_07_15 @@ -735,6 +741,8 @@ private constructor( companion object { + @JvmField val _2026_08_19 = of("2026-08-19") + @JvmField val _2026_07_08 = of("2026-07-08") @JvmField val _2026_06_18 = of("2026-06-18") @@ -818,6 +826,7 @@ private constructor( /** An enum containing [AgenticPlus]'s known values. */ enum class Known { + _2026_08_19, _2026_07_08, _2026_06_18, _2026_06_11, @@ -869,6 +878,7 @@ private constructor( * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { + _2026_08_19, _2026_07_08, _2026_06_18, _2026_06_11, @@ -923,6 +933,7 @@ private constructor( */ fun value(): Value = when (this) { + _2026_08_19 -> Value._2026_08_19 _2026_07_08 -> Value._2026_07_08 _2026_06_18 -> Value._2026_06_18 _2026_06_11 -> Value._2026_06_11 @@ -976,6 +987,7 @@ private constructor( */ fun known(): Known = when (this) { + _2026_08_19 -> Known._2026_08_19 _2026_07_08 -> Known._2026_07_08 _2026_06_18 -> Known._2026_06_18 _2026_06_11 -> Known._2026_06_11 @@ -1096,6 +1108,8 @@ private constructor( companion object { + @JvmField val _2026_08_19 = of("2026-08-19") + @JvmField val _2026_08_11 = of("2026-08-11") @JvmField val _2026_08_08 = of("2026-08-08") @@ -1129,6 +1143,7 @@ private constructor( /** An enum containing [CostEffective]'s known values. */ enum class Known { + _2026_08_19, _2026_08_11, _2026_08_08, _2026_07_23, @@ -1155,6 +1170,7 @@ private constructor( * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { + _2026_08_19, _2026_08_11, _2026_08_08, _2026_07_23, @@ -1185,6 +1201,7 @@ private constructor( */ fun value(): Value = when (this) { + _2026_08_19 -> Value._2026_08_19 _2026_08_11 -> Value._2026_08_11 _2026_08_08 -> Value._2026_08_08 _2026_07_23 -> Value._2026_07_23 @@ -1213,6 +1230,7 @@ private constructor( */ fun known(): Known = when (this) { + _2026_08_19 -> Known._2026_08_19 _2026_08_11 -> Known._2026_08_11 _2026_08_08 -> Known._2026_08_08 _2026_07_23 -> Known._2026_07_23 diff --git a/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingListVersionsResponseTest.kt b/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingListVersionsResponseTest.kt index e4823ad..8a156ac 100644 --- a/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingListVersionsResponseTest.kt +++ b/llama-cloud-core/src/test/kotlin/ai/llamaindex/llamacloud/models/parsing/ParsingListVersionsResponseTest.kt @@ -13,18 +13,18 @@ internal class ParsingListVersionsResponseTest { fun create() { val parsingListVersionsResponse = ParsingListVersionsResponse.builder() - .addAgentic(ParsingListVersionsResponse.Agentic._2026_07_24) - .addAgenticPlus(ParsingListVersionsResponse.AgenticPlus._2026_07_08) - .addCostEffective(ParsingListVersionsResponse.CostEffective._2026_08_11) + .addAgentic(ParsingListVersionsResponse.Agentic._2026_08_19) + .addAgenticPlus(ParsingListVersionsResponse.AgenticPlus._2026_08_19) + .addCostEffective(ParsingListVersionsResponse.CostEffective._2026_08_19) .addFast(ParsingListVersionsResponse.Fast._2026_06_15) .build() assertThat(parsingListVersionsResponse.agentic()) - .containsExactly(ParsingListVersionsResponse.Agentic._2026_07_24) + .containsExactly(ParsingListVersionsResponse.Agentic._2026_08_19) assertThat(parsingListVersionsResponse.agenticPlus()) - .containsExactly(ParsingListVersionsResponse.AgenticPlus._2026_07_08) + .containsExactly(ParsingListVersionsResponse.AgenticPlus._2026_08_19) assertThat(parsingListVersionsResponse.costEffective()) - .containsExactly(ParsingListVersionsResponse.CostEffective._2026_08_11) + .containsExactly(ParsingListVersionsResponse.CostEffective._2026_08_19) assertThat(parsingListVersionsResponse.fast()) .containsExactly(ParsingListVersionsResponse.Fast._2026_06_15) } @@ -34,9 +34,9 @@ internal class ParsingListVersionsResponseTest { val jsonMapper = jsonMapper() val parsingListVersionsResponse = ParsingListVersionsResponse.builder() - .addAgentic(ParsingListVersionsResponse.Agentic._2026_07_24) - .addAgenticPlus(ParsingListVersionsResponse.AgenticPlus._2026_07_08) - .addCostEffective(ParsingListVersionsResponse.CostEffective._2026_08_11) + .addAgentic(ParsingListVersionsResponse.Agentic._2026_08_19) + .addAgenticPlus(ParsingListVersionsResponse.AgenticPlus._2026_08_19) + .addCostEffective(ParsingListVersionsResponse.CostEffective._2026_08_19) .addFast(ParsingListVersionsResponse.Fast._2026_06_15) .build()