Skip to content

Commit c3252b8

Browse files
feat(api): api update
1 parent 1758fe6 commit c3252b8

62 files changed

Lines changed: 246 additions & 9400 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 124
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/langsmith/langsmith-api-9223c3fa1058f7c7771c8de941165dfced1eccf3023b9bafa03c35fc051d2015.yml
3-
openapi_spec_hash: f280373ff3752457f552f7bb95a5787f
1+
configured_endpoints: 118
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/langsmith/langsmith-api-7ccc968a4c46ceb4208c2222ccd3ffadad9e31f2dd18fd4674821a5fb68b292d.yml
3+
openapi_spec_hash: 08b30a3ce5826ce0b32298c1facd5435
44
config_hash: 8c719b00376bf1f08b02565111a88d38

langsmith-java-core/src/main/kotlin/com/langchain/smith/models/sandboxes/boxes/BoxCreateParams.kt

Lines changed: 4 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ import java.util.Optional
2424
import kotlin.jvm.optionals.getOrNull
2525

2626
/**
27-
* Create a new sandbox. The snapshot may be identified by `snapshot_id` (UUID) or by
28-
* `snapshot_name` (tenant-scoped unique name); exactly one of `template_name`, `snapshot_id`, or
29-
* `snapshot_name` must be set. Optionally blocks until ready or timeout.
27+
* Create a new sandbox from a snapshot. The snapshot may be identified by `snapshot_id` (UUID) or
28+
* by `snapshot_name` (tenant-scoped unique name); exactly one must be set. Optionally blocks until
29+
* ready or timeout.
3030
*/
3131
class BoxCreateParams
3232
private constructor(
@@ -77,14 +77,6 @@ private constructor(
7777
*/
7878
fun snapshotName(): Optional<String> = body.snapshotName()
7979

80-
/**
81-
* required for Kata path
82-
*
83-
* @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if the
84-
* server responded with an unexpected value).
85-
*/
86-
fun templateName(): Optional<String> = body.templateName()
87-
8880
/**
8981
* @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if the
9082
* server responded with an unexpected value).
@@ -158,13 +150,6 @@ private constructor(
158150
*/
159151
fun _snapshotName(): JsonField<String> = body._snapshotName()
160152

161-
/**
162-
* Returns the raw JSON value of [templateName].
163-
*
164-
* Unlike [templateName], this method doesn't throw if the JSON field has an unexpected type.
165-
*/
166-
fun _templateName(): JsonField<String> = body._templateName()
167-
168153
/**
169154
* Returns the raw JSON value of [timeout].
170155
*
@@ -322,20 +307,6 @@ private constructor(
322307
body.snapshotName(snapshotName)
323308
}
324309

325-
/** required for Kata path */
326-
fun templateName(templateName: String) = apply { body.templateName(templateName) }
327-
328-
/**
329-
* Sets [Builder.templateName] to an arbitrary JSON value.
330-
*
331-
* You should usually call [Builder.templateName] with a well-typed [String] value instead.
332-
* This method is primarily for setting the field to an undocumented or not yet supported
333-
* value.
334-
*/
335-
fun templateName(templateName: JsonField<String>) = apply {
336-
body.templateName(templateName)
337-
}
338-
339310
fun timeout(timeout: Long) = apply { body.timeout(timeout) }
340311

341312
/**
@@ -521,7 +492,6 @@ private constructor(
521492
private val proxyConfig: JsonField<ProxyConfig>,
522493
private val snapshotId: JsonField<String>,
523494
private val snapshotName: JsonField<String>,
524-
private val templateName: JsonField<String>,
525495
private val timeout: JsonField<Long>,
526496
private val ttlSeconds: JsonField<Long>,
527497
private val vcpus: JsonField<Long>,
@@ -548,9 +518,6 @@ private constructor(
548518
@JsonProperty("snapshot_name")
549519
@ExcludeMissing
550520
snapshotName: JsonField<String> = JsonMissing.of(),
551-
@JsonProperty("template_name")
552-
@ExcludeMissing
553-
templateName: JsonField<String> = JsonMissing.of(),
554521
@JsonProperty("timeout") @ExcludeMissing timeout: JsonField<Long> = JsonMissing.of(),
555522
@JsonProperty("ttl_seconds")
556523
@ExcludeMissing
@@ -567,7 +534,6 @@ private constructor(
567534
proxyConfig,
568535
snapshotId,
569536
snapshotName,
570-
templateName,
571537
timeout,
572538
ttlSeconds,
573539
vcpus,
@@ -617,14 +583,6 @@ private constructor(
617583
*/
618584
fun snapshotName(): Optional<String> = snapshotName.getOptional("snapshot_name")
619585

620-
/**
621-
* required for Kata path
622-
*
623-
* @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if
624-
* the server responded with an unexpected value).
625-
*/
626-
fun templateName(): Optional<String> = templateName.getOptional("template_name")
627-
628586
/**
629587
* @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if
630588
* the server responded with an unexpected value).
@@ -711,16 +669,6 @@ private constructor(
711669
@ExcludeMissing
712670
fun _snapshotName(): JsonField<String> = snapshotName
713671

714-
/**
715-
* Returns the raw JSON value of [templateName].
716-
*
717-
* Unlike [templateName], this method doesn't throw if the JSON field has an unexpected
718-
* type.
719-
*/
720-
@JsonProperty("template_name")
721-
@ExcludeMissing
722-
fun _templateName(): JsonField<String> = templateName
723-
724672
/**
725673
* Returns the raw JSON value of [timeout].
726674
*
@@ -780,7 +728,6 @@ private constructor(
780728
private var proxyConfig: JsonField<ProxyConfig> = JsonMissing.of()
781729
private var snapshotId: JsonField<String> = JsonMissing.of()
782730
private var snapshotName: JsonField<String> = JsonMissing.of()
783-
private var templateName: JsonField<String> = JsonMissing.of()
784731
private var timeout: JsonField<Long> = JsonMissing.of()
785732
private var ttlSeconds: JsonField<Long> = JsonMissing.of()
786733
private var vcpus: JsonField<Long> = JsonMissing.of()
@@ -796,7 +743,6 @@ private constructor(
796743
proxyConfig = body.proxyConfig
797744
snapshotId = body.snapshotId
798745
snapshotName = body.snapshotName
799-
templateName = body.templateName
800746
timeout = body.timeout
801747
ttlSeconds = body.ttlSeconds
802748
vcpus = body.vcpus
@@ -890,20 +836,6 @@ private constructor(
890836
this.snapshotName = snapshotName
891837
}
892838

893-
/** required for Kata path */
894-
fun templateName(templateName: String) = templateName(JsonField.of(templateName))
895-
896-
/**
897-
* Sets [Builder.templateName] to an arbitrary JSON value.
898-
*
899-
* You should usually call [Builder.templateName] with a well-typed [String] value
900-
* instead. This method is primarily for setting the field to an undocumented or not yet
901-
* supported value.
902-
*/
903-
fun templateName(templateName: JsonField<String>) = apply {
904-
this.templateName = templateName
905-
}
906-
907839
fun timeout(timeout: Long) = timeout(JsonField.of(timeout))
908840

909841
/**
@@ -983,7 +915,6 @@ private constructor(
983915
proxyConfig,
984916
snapshotId,
985917
snapshotName,
986-
templateName,
987918
timeout,
988919
ttlSeconds,
989920
vcpus,
@@ -1006,7 +937,6 @@ private constructor(
1006937
proxyConfig().ifPresent { it.validate() }
1007938
snapshotId()
1008939
snapshotName()
1009-
templateName()
1010940
timeout()
1011941
ttlSeconds()
1012942
vcpus()
@@ -1037,7 +967,6 @@ private constructor(
1037967
(proxyConfig.asKnown().getOrNull()?.validity() ?: 0) +
1038968
(if (snapshotId.asKnown().isPresent) 1 else 0) +
1039969
(if (snapshotName.asKnown().isPresent) 1 else 0) +
1040-
(if (templateName.asKnown().isPresent) 1 else 0) +
1041970
(if (timeout.asKnown().isPresent) 1 else 0) +
1042971
(if (ttlSeconds.asKnown().isPresent) 1 else 0) +
1043972
(if (vcpus.asKnown().isPresent) 1 else 0) +
@@ -1056,7 +985,6 @@ private constructor(
1056985
proxyConfig == other.proxyConfig &&
1057986
snapshotId == other.snapshotId &&
1058987
snapshotName == other.snapshotName &&
1059-
templateName == other.templateName &&
1060988
timeout == other.timeout &&
1061989
ttlSeconds == other.ttlSeconds &&
1062990
vcpus == other.vcpus &&
@@ -1073,7 +1001,6 @@ private constructor(
10731001
proxyConfig,
10741002
snapshotId,
10751003
snapshotName,
1076-
templateName,
10771004
timeout,
10781005
ttlSeconds,
10791006
vcpus,
@@ -1085,7 +1012,7 @@ private constructor(
10851012
override fun hashCode(): Int = hashCode
10861013

10871014
override fun toString() =
1088-
"Body{fsCapacityBytes=$fsCapacityBytes, idleTtlSeconds=$idleTtlSeconds, memBytes=$memBytes, name=$name, proxyConfig=$proxyConfig, snapshotId=$snapshotId, snapshotName=$snapshotName, templateName=$templateName, timeout=$timeout, ttlSeconds=$ttlSeconds, vcpus=$vcpus, waitForReady=$waitForReady, additionalProperties=$additionalProperties}"
1015+
"Body{fsCapacityBytes=$fsCapacityBytes, idleTtlSeconds=$idleTtlSeconds, memBytes=$memBytes, name=$name, proxyConfig=$proxyConfig, snapshotId=$snapshotId, snapshotName=$snapshotName, timeout=$timeout, ttlSeconds=$ttlSeconds, vcpus=$vcpus, waitForReady=$waitForReady, additionalProperties=$additionalProperties}"
10891016
}
10901017

10911018
class ProxyConfig
@@ -1614,9 +1541,6 @@ private constructor(
16141541
fun matchHosts(): List<String> = matchHosts.getRequired("match_hosts")
16151542

16161543
/**
1617-
* TTLSeconds is how long resolved headers are cached before the proxy re-invokes URL.
1618-
* Must be between 60 and 3600 seconds.
1619-
*
16201544
* @throws LangChainInvalidDataException if the JSON field has an unexpected type or is
16211545
* unexpectedly missing or null (e.g. if the server responded with an unexpected
16221546
* value).
@@ -1744,10 +1668,6 @@ private constructor(
17441668
}
17451669
}
17461670

1747-
/**
1748-
* TTLSeconds is how long resolved headers are cached before the proxy re-invokes
1749-
* URL. Must be between 60 and 3600 seconds.
1750-
*/
17511671
fun ttlSeconds(ttlSeconds: Long) = ttlSeconds(JsonField.of(ttlSeconds))
17521672

17531673
/**

0 commit comments

Comments
 (0)