Skip to content

Commit 4efe03e

Browse files
committed
export
1 parent 4b0727d commit 4efe03e

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

api/OpenAI.net8.0.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,8 @@ public class AssistantClient {
130130
public virtual ClientResult<ThreadMessage> GetMessage(string threadId, string messageId, CancellationToken cancellationToken = default);
131131
public virtual Task<ClientResult> GetMessageAsync(string threadId, string messageId, RequestOptions options);
132132
public virtual Task<ClientResult<ThreadMessage>> GetMessageAsync(string threadId, string messageId, CancellationToken cancellationToken = default);
133-
public virtual CollectionResult<ThreadMessage> GetMessages(ContinuationToken firstPageToken, CancellationToken cancellationToken = default);
134133
public virtual CollectionResult<ThreadMessage> GetMessages(string threadId, MessageCollectionOptions options = null, CancellationToken cancellationToken = default);
135134
public virtual CollectionResult GetMessages(string threadId, int? limit, string order, string after, string before, RequestOptions options);
136-
public virtual AsyncCollectionResult<ThreadMessage> GetMessagesAsync(ContinuationToken firstPageToken, CancellationToken cancellationToken = default);
137135
public virtual AsyncCollectionResult<ThreadMessage> GetMessagesAsync(string threadId, MessageCollectionOptions options = null, CancellationToken cancellationToken = default);
138136
public virtual AsyncCollectionResult GetMessagesAsync(string threadId, int? limit, string order, string after, string before, RequestOptions options);
139137
public virtual ClientResult GetRun(string threadId, string runId, RequestOptions options);
@@ -367,11 +365,15 @@ public class FunctionToolDefinition : ToolDefinition, IJsonModel<FunctionToolDef
367365
protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options);
368366
}
369367
[Experimental("OPENAI001")]
370-
public class MessageCollectionOptions {
368+
public class MessageCollectionOptions : IJsonModel<MessageCollectionOptions>, IPersistableModel<MessageCollectionOptions> {
371369
public string AfterId { get; set; }
372370
public string BeforeId { get; set; }
373371
public MessageCollectionOrder? Order { get; set; }
374372
public int? PageSizeLimit { get; set; }
373+
protected virtual MessageCollectionOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
374+
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
375+
protected virtual MessageCollectionOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options);
376+
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options);
375377
}
376378
[Experimental("OPENAI001")]
377379
public readonly partial struct MessageCollectionOrder : IEquatable<MessageCollectionOrder> {
@@ -385,6 +387,7 @@ public class MessageCollectionOptions {
385387
public override readonly int GetHashCode();
386388
public static bool operator ==(MessageCollectionOrder left, MessageCollectionOrder right);
387389
public static implicit operator MessageCollectionOrder(string value);
390+
public static implicit operator MessageCollectionOrder?(string value);
388391
public static bool operator !=(MessageCollectionOrder left, MessageCollectionOrder right);
389392
public override readonly string ToString();
390393
}

api/OpenAI.netstandard2.0.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)