@@ -125,20 +125,16 @@ public class AssistantClient {
125125 public virtual ClientResult < ThreadRun > GetRun ( string threadId , string runId , CancellationToken cancellationToken = default ) ;
126126 public virtual Task < ClientResult > GetRunAsync ( string threadId , string runId , RequestOptions options ) ;
127127 public virtual Task < ClientResult < ThreadRun > > GetRunAsync ( string threadId , string runId , CancellationToken cancellationToken = default ) ;
128- public virtual CollectionResult < ThreadRun > GetRuns ( ContinuationToken firstPageToken , CancellationToken cancellationToken = default ) ;
129128 public virtual CollectionResult < ThreadRun > GetRuns ( string threadId , RunCollectionOptions options = null , CancellationToken cancellationToken = default ) ;
130129 public virtual CollectionResult GetRuns ( string threadId , int ? limit , string order , string after , string before , RequestOptions options ) ;
131- public virtual AsyncCollectionResult < ThreadRun > GetRunsAsync ( ContinuationToken firstPageToken , CancellationToken cancellationToken = default ) ;
132130 public virtual AsyncCollectionResult < ThreadRun > GetRunsAsync ( string threadId , RunCollectionOptions options = null , CancellationToken cancellationToken = default ) ;
133131 public virtual AsyncCollectionResult GetRunsAsync ( string threadId , int ? limit , string order , string after , string before , RequestOptions options ) ;
134132 public virtual ClientResult GetRunStep ( string threadId , string runId , string stepId , RequestOptions options ) ;
135133 public virtual ClientResult < RunStep > GetRunStep ( string threadId , string runId , string stepId , CancellationToken cancellationToken = default ) ;
136134 public virtual Task < ClientResult > GetRunStepAsync ( string threadId , string runId , string stepId , RequestOptions options ) ;
137135 public virtual Task < ClientResult < RunStep > > GetRunStepAsync ( string threadId , string runId , string stepId , CancellationToken cancellationToken = default ) ;
138- public virtual CollectionResult < RunStep > GetRunSteps ( ContinuationToken firstPageToken , CancellationToken cancellationToken = default ) ;
139136 public virtual CollectionResult < RunStep > GetRunSteps ( string threadId , string runId , RunStepCollectionOptions options = null , CancellationToken cancellationToken = default ) ;
140137 public virtual CollectionResult GetRunSteps ( string threadId , string runId , int ? limit , string order , string after , string before , RequestOptions options ) ;
141- public virtual AsyncCollectionResult < RunStep > GetRunStepsAsync ( ContinuationToken firstPageToken , CancellationToken cancellationToken = default ) ;
142138 public virtual AsyncCollectionResult < RunStep > GetRunStepsAsync ( string threadId , string runId , RunStepCollectionOptions options = null , CancellationToken cancellationToken = default ) ;
143139 public virtual AsyncCollectionResult GetRunStepsAsync ( string threadId , string runId , int ? limit , string order , string after , string before , RequestOptions options ) ;
144140 public virtual ClientResult GetThread ( string threadId , RequestOptions options ) ;
@@ -484,11 +480,15 @@ public class RequiredActionUpdate : RunUpdate {
484480 public string ToolCallId { get ; }
485481 public ThreadRun GetThreadRun ( ) ;
486482 }
487- public class RunCollectionOptions {
483+ public class RunCollectionOptions : IJsonModel < RunCollectionOptions > , IPersistableModel < RunCollectionOptions > {
488484 public string AfterId { get ; set ; }
489485 public string BeforeId { get ; set ; }
490486 public RunCollectionOrder ? Order { get ; set ; }
491487 public int ? PageSizeLimit { get ; set ; }
488+ protected virtual RunCollectionOptions JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
489+ protected virtual void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
490+ protected virtual RunCollectionOptions PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
491+ protected virtual BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
492492 }
493493 public readonly partial struct RunCollectionOrder : IEquatable < RunCollectionOrder > {
494494 public RunCollectionOrder ( string value ) ;
@@ -501,6 +501,7 @@ public class RunCollectionOptions {
501501 public override readonly int GetHashCode ( ) ;
502502 public static bool operator == ( RunCollectionOrder left , RunCollectionOrder right ) ;
503503 public static implicit operator RunCollectionOrder ( string value ) ;
504+ public static implicit operator RunCollectionOrder ? ( string value ) ;
504505 public static bool operator != ( RunCollectionOrder left , RunCollectionOrder right ) ;
505506 public override readonly string ToString ( ) ;
506507 }
@@ -630,11 +631,15 @@ public abstract class RunStepCodeInterpreterOutput : IJsonModel<RunStepCodeInter
630631 protected virtual RunStepCodeInterpreterOutput PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
631632 protected virtual BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
632633 }
633- public class RunStepCollectionOptions {
634+ public class RunStepCollectionOptions : IJsonModel < RunStepCollectionOptions > , IPersistableModel < RunStepCollectionOptions > {
634635 public string AfterId { get ; set ; }
635636 public string BeforeId { get ; set ; }
636637 public RunStepCollectionOrder ? Order { get ; set ; }
637638 public int ? PageSizeLimit { get ; set ; }
639+ protected virtual RunStepCollectionOptions JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
640+ protected virtual void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
641+ protected virtual RunStepCollectionOptions PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
642+ protected virtual BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
638643 }
639644 public readonly partial struct RunStepCollectionOrder : IEquatable < RunStepCollectionOrder > {
640645 public RunStepCollectionOrder ( string value ) ;
@@ -647,6 +652,7 @@ public class RunStepCollectionOptions {
647652 public override readonly int GetHashCode ( ) ;
648653 public static bool operator == ( RunStepCollectionOrder left , RunStepCollectionOrder right ) ;
649654 public static implicit operator RunStepCollectionOrder ( string value ) ;
655+ public static implicit operator RunStepCollectionOrder ? ( string value ) ;
650656 public static bool operator != ( RunStepCollectionOrder left , RunStepCollectionOrder right ) ;
651657 public override readonly string ToString ( ) ;
652658 }
0 commit comments