@@ -117,10 +117,8 @@ public class AssistantClient {
117117 public virtual ClientResult < ThreadMessage > GetMessage ( string threadId , string messageId , CancellationToken cancellationToken = default ) ;
118118 public virtual Task < ClientResult > GetMessageAsync ( string threadId , string messageId , RequestOptions options ) ;
119119 public virtual Task < ClientResult < ThreadMessage > > GetMessageAsync ( string threadId , string messageId , CancellationToken cancellationToken = default ) ;
120- public virtual CollectionResult < ThreadMessage > GetMessages ( ContinuationToken firstPageToken , CancellationToken cancellationToken = default ) ;
121120 public virtual CollectionResult < ThreadMessage > GetMessages ( string threadId , MessageCollectionOptions options = null , CancellationToken cancellationToken = default ) ;
122121 public virtual CollectionResult GetMessages ( string threadId , int ? limit , string order , string after , string before , RequestOptions options ) ;
123- public virtual AsyncCollectionResult < ThreadMessage > GetMessagesAsync ( ContinuationToken firstPageToken , CancellationToken cancellationToken = default ) ;
124122 public virtual AsyncCollectionResult < ThreadMessage > GetMessagesAsync ( string threadId , MessageCollectionOptions options = null , CancellationToken cancellationToken = default ) ;
125123 public virtual AsyncCollectionResult GetMessagesAsync ( string threadId , int ? limit , string order , string after , string before , RequestOptions options ) ;
126124 public virtual ClientResult GetRun ( string threadId , string runId , RequestOptions options ) ;
@@ -339,11 +337,15 @@ public class FunctionToolDefinition : ToolDefinition, IJsonModel<FunctionToolDef
339337 protected override ToolDefinition PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
340338 protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
341339 }
342- public class MessageCollectionOptions {
340+ public class MessageCollectionOptions : IJsonModel < MessageCollectionOptions > , IPersistableModel < MessageCollectionOptions > {
343341 public string AfterId { get ; set ; }
344342 public string BeforeId { get ; set ; }
345343 public MessageCollectionOrder ? Order { get ; set ; }
346344 public int ? PageSizeLimit { get ; set ; }
345+ protected virtual MessageCollectionOptions JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
346+ protected virtual void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
347+ protected virtual MessageCollectionOptions PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
348+ protected virtual BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
347349 }
348350 public readonly partial struct MessageCollectionOrder : IEquatable < MessageCollectionOrder > {
349351 public MessageCollectionOrder ( string value ) ;
@@ -356,6 +358,7 @@ public class MessageCollectionOptions {
356358 public override readonly int GetHashCode ( ) ;
357359 public static bool operator == ( MessageCollectionOrder left , MessageCollectionOrder right ) ;
358360 public static implicit operator MessageCollectionOrder ( string value ) ;
361+ public static implicit operator MessageCollectionOrder ? ( string value ) ;
359362 public static bool operator != ( MessageCollectionOrder left , MessageCollectionOrder right ) ;
360363 public override readonly string ToString ( ) ;
361364 }
0 commit comments