Skip to content

Commit af93e09

Browse files
feat(api): api update
1 parent a0e5441 commit af93e09

2 files changed

Lines changed: 39 additions & 7 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 102
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/langsmith%2Flangsmith-api-9b1a87757cd49a12277fb568ad9a86554c1b46ac115f0ca43fd19e8d8025286d.yml
3-
openapi_spec_hash: 76801a4fc381af1c3435db9504a2b382
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/langsmith%2Flangsmith-api-e618b926237d170177f03ab5d24ee6dc0b1557be81d2ea8d1967a3cc041f739b.yml
3+
openapi_spec_hash: ae6d82f6dea4693e9951ab684049ab4e
44
config_hash: 787a12876983a14bce67ed57899e4a94

langsmith-java-core/src/main/kotlin/com/langchain/smith/models/annotationqueues/runs/RunCreateParams.kt

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ private constructor(
432432
}
433433
}
434434

435-
/** Schema for adding a run to an annotation queue with optional metadata. */
435+
/** Deprecated: use plain UUID list or AddRunToQueueByKeyRequest instead. */
436436
class AnnotationQueueRunAddSchema
437437
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
438438
private constructor(
@@ -470,51 +470,60 @@ private constructor(
470470
* unexpectedly missing or null (e.g. if the server responded with an unexpected
471471
* value).
472472
*/
473-
fun runId(): String = runId.getRequired("run_id")
473+
@Deprecated("deprecated") fun runId(): String = runId.getRequired("run_id")
474474

475475
/**
476476
* @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g.
477477
* if the server responded with an unexpected value).
478478
*/
479+
@Deprecated("deprecated")
479480
fun parentRunId(): Optional<String> = parentRunId.getOptional("parent_run_id")
480481

481482
/**
482483
* @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g.
483484
* if the server responded with an unexpected value).
484485
*/
486+
@Deprecated("deprecated")
485487
fun sessionId(): Optional<String> = sessionId.getOptional("session_id")
486488

487489
/**
488490
* @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g.
489491
* if the server responded with an unexpected value).
490492
*/
493+
@Deprecated("deprecated")
491494
fun startTime(): Optional<OffsetDateTime> = startTime.getOptional("start_time")
492495

493496
/**
494497
* @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g.
495498
* if the server responded with an unexpected value).
496499
*/
500+
@Deprecated("deprecated")
497501
fun traceId(): Optional<String> = traceId.getOptional("trace_id")
498502

499503
/**
500504
* @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g.
501505
* if the server responded with an unexpected value).
502506
*/
507+
@Deprecated("deprecated")
503508
fun traceTier(): Optional<TraceTier> = traceTier.getOptional("trace_tier")
504509

505510
/**
506511
* Returns the raw JSON value of [runId].
507512
*
508513
* Unlike [runId], this method doesn't throw if the JSON field has an unexpected type.
509514
*/
510-
@JsonProperty("run_id") @ExcludeMissing fun _runId(): JsonField<String> = runId
515+
@Deprecated("deprecated")
516+
@JsonProperty("run_id")
517+
@ExcludeMissing
518+
fun _runId(): JsonField<String> = runId
511519

512520
/**
513521
* Returns the raw JSON value of [parentRunId].
514522
*
515523
* Unlike [parentRunId], this method doesn't throw if the JSON field has an unexpected
516524
* type.
517525
*/
526+
@Deprecated("deprecated")
518527
@JsonProperty("parent_run_id")
519528
@ExcludeMissing
520529
fun _parentRunId(): JsonField<String> = parentRunId
@@ -525,6 +534,7 @@ private constructor(
525534
* Unlike [sessionId], this method doesn't throw if the JSON field has an unexpected
526535
* type.
527536
*/
537+
@Deprecated("deprecated")
528538
@JsonProperty("session_id")
529539
@ExcludeMissing
530540
fun _sessionId(): JsonField<String> = sessionId
@@ -535,6 +545,7 @@ private constructor(
535545
* Unlike [startTime], this method doesn't throw if the JSON field has an unexpected
536546
* type.
537547
*/
548+
@Deprecated("deprecated")
538549
@JsonProperty("start_time")
539550
@ExcludeMissing
540551
fun _startTime(): JsonField<OffsetDateTime> = startTime
@@ -544,14 +555,18 @@ private constructor(
544555
*
545556
* Unlike [traceId], this method doesn't throw if the JSON field has an unexpected type.
546557
*/
547-
@JsonProperty("trace_id") @ExcludeMissing fun _traceId(): JsonField<String> = traceId
558+
@Deprecated("deprecated")
559+
@JsonProperty("trace_id")
560+
@ExcludeMissing
561+
fun _traceId(): JsonField<String> = traceId
548562

549563
/**
550564
* Returns the raw JSON value of [traceTier].
551565
*
552566
* Unlike [traceTier], this method doesn't throw if the JSON field has an unexpected
553567
* type.
554568
*/
569+
@Deprecated("deprecated")
555570
@JsonProperty("trace_tier")
556571
@ExcludeMissing
557572
fun _traceTier(): JsonField<TraceTier> = traceTier
@@ -606,7 +621,7 @@ private constructor(
606621
annotationQueueRunAddSchema.additionalProperties.toMutableMap()
607622
}
608623

609-
fun runId(runId: String) = runId(JsonField.of(runId))
624+
@Deprecated("deprecated") fun runId(runId: String) = runId(JsonField.of(runId))
610625

611626
/**
612627
* Sets [Builder.runId] to an arbitrary JSON value.
@@ -615,12 +630,15 @@ private constructor(
615630
* This method is primarily for setting the field to an undocumented or not yet
616631
* supported value.
617632
*/
633+
@Deprecated("deprecated")
618634
fun runId(runId: JsonField<String>) = apply { this.runId = runId }
619635

636+
@Deprecated("deprecated")
620637
fun parentRunId(parentRunId: String?) =
621638
parentRunId(JsonField.ofNullable(parentRunId))
622639

623640
/** Alias for calling [Builder.parentRunId] with `parentRunId.orElse(null)`. */
641+
@Deprecated("deprecated")
624642
fun parentRunId(parentRunId: Optional<String>) =
625643
parentRunId(parentRunId.getOrNull())
626644

@@ -631,13 +649,16 @@ private constructor(
631649
* instead. This method is primarily for setting the field to an undocumented or not
632650
* yet supported value.
633651
*/
652+
@Deprecated("deprecated")
634653
fun parentRunId(parentRunId: JsonField<String>) = apply {
635654
this.parentRunId = parentRunId
636655
}
637656

657+
@Deprecated("deprecated")
638658
fun sessionId(sessionId: String?) = sessionId(JsonField.ofNullable(sessionId))
639659

640660
/** Alias for calling [Builder.sessionId] with `sessionId.orElse(null)`. */
661+
@Deprecated("deprecated")
641662
fun sessionId(sessionId: Optional<String>) = sessionId(sessionId.getOrNull())
642663

643664
/**
@@ -647,12 +668,15 @@ private constructor(
647668
* instead. This method is primarily for setting the field to an undocumented or not
648669
* yet supported value.
649670
*/
671+
@Deprecated("deprecated")
650672
fun sessionId(sessionId: JsonField<String>) = apply { this.sessionId = sessionId }
651673

674+
@Deprecated("deprecated")
652675
fun startTime(startTime: OffsetDateTime?) =
653676
startTime(JsonField.ofNullable(startTime))
654677

655678
/** Alias for calling [Builder.startTime] with `startTime.orElse(null)`. */
679+
@Deprecated("deprecated")
656680
fun startTime(startTime: Optional<OffsetDateTime>) =
657681
startTime(startTime.getOrNull())
658682

@@ -663,13 +687,16 @@ private constructor(
663687
* value instead. This method is primarily for setting the field to an undocumented
664688
* or not yet supported value.
665689
*/
690+
@Deprecated("deprecated")
666691
fun startTime(startTime: JsonField<OffsetDateTime>) = apply {
667692
this.startTime = startTime
668693
}
669694

695+
@Deprecated("deprecated")
670696
fun traceId(traceId: String?) = traceId(JsonField.ofNullable(traceId))
671697

672698
/** Alias for calling [Builder.traceId] with `traceId.orElse(null)`. */
699+
@Deprecated("deprecated")
673700
fun traceId(traceId: Optional<String>) = traceId(traceId.getOrNull())
674701

675702
/**
@@ -679,11 +706,14 @@ private constructor(
679706
* instead. This method is primarily for setting the field to an undocumented or not
680707
* yet supported value.
681708
*/
709+
@Deprecated("deprecated")
682710
fun traceId(traceId: JsonField<String>) = apply { this.traceId = traceId }
683711

712+
@Deprecated("deprecated")
684713
fun traceTier(traceTier: TraceTier?) = traceTier(JsonField.ofNullable(traceTier))
685714

686715
/** Alias for calling [Builder.traceTier] with `traceTier.orElse(null)`. */
716+
@Deprecated("deprecated")
687717
fun traceTier(traceTier: Optional<TraceTier>) = traceTier(traceTier.getOrNull())
688718

689719
/**
@@ -693,6 +723,7 @@ private constructor(
693723
* instead. This method is primarily for setting the field to an undocumented or not
694724
* yet supported value.
695725
*/
726+
@Deprecated("deprecated")
696727
fun traceTier(traceTier: JsonField<TraceTier>) = apply {
697728
this.traceTier = traceTier
698729
}
@@ -782,6 +813,7 @@ private constructor(
782813
(if (traceId.asKnown().isPresent) 1 else 0) +
783814
(traceTier.asKnown().getOrNull()?.validity() ?: 0)
784815

816+
@Deprecated("deprecated")
785817
class TraceTier @JsonCreator private constructor(private val value: JsonField<String>) :
786818
Enum {
787819

0 commit comments

Comments
 (0)