Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 28 additions & 27 deletions api/OpenAI.net8.0.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4594,10 +4594,21 @@ public enum ComputerCallActionMouseButton {
Forward = 4
}
[Experimental("OPENAICUA001")]
public class ComputerCallOutput : IJsonModel<ComputerCallOutput>, IPersistableModel<ComputerCallOutput> {
public static ComputerCallOutput CreateScreenshotOutput(BinaryData screenshotImageBytes, string screenshotImageBytesMediaType);
public static ComputerCallOutput CreateScreenshotOutput(string screenshotImageFileId);
public static ComputerCallOutput CreateScreenshotOutput(Uri screenshotImageUri);
protected virtual ComputerCallOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
protected virtual ComputerCallOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options);
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options);
}
[Experimental("OPENAICUA001")]
public class ComputerCallOutputResponseItem : ResponseItem, IJsonModel<ComputerCallOutputResponseItem>, IPersistableModel<ComputerCallOutputResponseItem> {
public ComputerCallOutputResponseItem(string callId, ComputerCallOutput output);
public IList<ComputerCallSafetyCheck> AcknowledgedSafetyChecks { get; }
public string CallId { get; }
public ComputerOutput Output { get; }
public string CallId { get; set; }
public ComputerCallOutput Output { get; set; }
public ComputerCallOutputStatus? Status { get; }
protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
Expand All @@ -4613,8 +4624,8 @@ public enum ComputerCallOutputStatus {
[Experimental("OPENAICUA001")]
public class ComputerCallResponseItem : ResponseItem, IJsonModel<ComputerCallResponseItem>, IPersistableModel<ComputerCallResponseItem> {
public ComputerCallResponseItem(string callId, ComputerCallAction action, IEnumerable<ComputerCallSafetyCheck> pendingSafetyChecks);
public ComputerCallAction Action { get; }
public string CallId { get; }
public ComputerCallAction Action { get; set; }
public string CallId { get; set; }
public IList<ComputerCallSafetyCheck> PendingSafetyChecks { get; }
public ComputerCallStatus? Status { get; }
protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
Expand All @@ -4640,16 +4651,6 @@ public enum ComputerCallStatus {
Incomplete = 2
}
[Experimental("OPENAICUA001")]
public class ComputerOutput : IJsonModel<ComputerOutput>, IPersistableModel<ComputerOutput> {
public static ComputerOutput CreateScreenshotOutput(BinaryData screenshotImageBytes, string screenshotImageBytesMediaType);
public static ComputerOutput CreateScreenshotOutput(string screenshotImageFileId);
public static ComputerOutput CreateScreenshotOutput(Uri screenshotImageUri);
protected virtual ComputerOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
protected virtual ComputerOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options);
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options);
}
[Experimental("OPENAICUA001")]
public readonly partial struct ComputerToolEnvironment : IEquatable<ComputerToolEnvironment> {
public ComputerToolEnvironment(string value);
public static ComputerToolEnvironment Browser { get; }
Expand All @@ -4670,8 +4671,9 @@ public class ComputerOutput : IJsonModel<ComputerOutput>, IPersistableModel<Comp
}
[Experimental("OPENAI001")]
public class FileSearchCallResponseItem : ResponseItem, IJsonModel<FileSearchCallResponseItem>, IPersistableModel<FileSearchCallResponseItem> {
public FileSearchCallResponseItem(IEnumerable<string> queries);
public IList<string> Queries { get; }
public IList<FileSearchCallResult> Results { get; }
public IList<FileSearchCallResult> Results { get; set; }
public FileSearchCallStatus? Status { get; }
protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
Expand All @@ -4680,7 +4682,7 @@ public class FileSearchCallResponseItem : ResponseItem, IJsonModel<FileSearchCal
}
[Experimental("OPENAI001")]
public class FileSearchCallResult : IJsonModel<FileSearchCallResult>, IPersistableModel<FileSearchCallResult> {
public IReadOnlyDictionary<string, BinaryData> Attributes { get; }
public IDictionary<string, BinaryData> Attributes { get; }
public string FileId { get; set; }
public string Filename { get; set; }
public float? Score { get; set; }
Expand Down Expand Up @@ -4725,7 +4727,8 @@ public class FileSearchToolRankingOptions : IJsonModel<FileSearchToolRankingOpti
}
[Experimental("OPENAI001")]
public class FunctionCallOutputResponseItem : ResponseItem, IJsonModel<FunctionCallOutputResponseItem>, IPersistableModel<FunctionCallOutputResponseItem> {
public string CallId { get; }
public FunctionCallOutputResponseItem(string callId, string functionOutput);
public string CallId { get; set; }
public string FunctionOutput { get; set; }
public FunctionCallOutputStatus? Status { get; }
protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
Expand All @@ -4741,7 +4744,8 @@ public enum FunctionCallOutputStatus {
}
[Experimental("OPENAI001")]
public class FunctionCallResponseItem : ResponseItem, IJsonModel<FunctionCallResponseItem>, IPersistableModel<FunctionCallResponseItem> {
public string CallId { get; }
public FunctionCallResponseItem(string callId, string functionName, BinaryData functionArguments);
public string CallId { get; set; }
public BinaryData FunctionArguments { get; set; }
public string FunctionName { get; set; }
public FunctionCallStatus? Status { get; }
Expand Down Expand Up @@ -4867,9 +4871,9 @@ public static class OpenAIResponsesModelFactory {
public class ReasoningResponseItem : ResponseItem, IJsonModel<ReasoningResponseItem>, IPersistableModel<ReasoningResponseItem> {
public ReasoningResponseItem(IEnumerable<ReasoningSummaryPart> summaryParts);
public ReasoningResponseItem(string summaryText);
public string EncryptedContent { get; }
public string EncryptedContent { get; set; }
public ReasoningStatus? Status { get; }
public IReadOnlyList<ReasoningSummaryPart> SummaryParts { get; }
public IList<ReasoningSummaryPart> SummaryParts { get; }
public string GetSummaryText();
protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
Expand All @@ -4884,7 +4888,7 @@ public enum ReasoningStatus {
}
[Experimental("OPENAI001")]
public class ReasoningSummaryPart : IJsonModel<ReasoningSummaryPart>, IPersistableModel<ReasoningSummaryPart> {
public static ReasoningSummaryPart CreateTextPart(string text);
public static ReasoningSummaryTextPart CreateTextPart(string text);
protected virtual ReasoningSummaryPart JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
protected virtual ReasoningSummaryPart PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options);
Expand Down Expand Up @@ -5072,14 +5076,10 @@ public class ResponseItem : IJsonModel<ResponseItem>, IPersistableModel<Response
[Experimental("OPENAICUA001")]
public static ComputerCallResponseItem CreateComputerCallItem(string callId, ComputerCallAction action, IEnumerable<ComputerCallSafetyCheck> pendingSafetyChecks);
[Experimental("OPENAICUA001")]
public static ComputerCallOutputResponseItem CreateComputerCallOutputItem(string callId, IList<ComputerCallSafetyCheck> acknowledgedSafetyChecks, BinaryData screenshotImageBytes, string screenshotImageBytesMediaType);
[Experimental("OPENAICUA001")]
public static ComputerCallOutputResponseItem CreateComputerCallOutputItem(string callId, IList<ComputerCallSafetyCheck> acknowledgedSafetyChecks, string screenshotImageFileId);
[Experimental("OPENAICUA001")]
public static ComputerCallOutputResponseItem CreateComputerCallOutputItem(string callId, IList<ComputerCallSafetyCheck> acknowledgedSafetyChecks, Uri screenshotImageUri);
public static ComputerCallOutputResponseItem CreateComputerCallOutputItem(string callId, ComputerCallOutput output);
public static MessageResponseItem CreateDeveloperMessageItem(IEnumerable<ResponseContentPart> contentParts);
public static MessageResponseItem CreateDeveloperMessageItem(string inputTextContent);
public static FileSearchCallResponseItem CreateFileSearchCallItem(IEnumerable<string> queries, IEnumerable<FileSearchCallResult> results);
public static FileSearchCallResponseItem CreateFileSearchCallItem(IEnumerable<string> queries);
public static FunctionCallResponseItem CreateFunctionCallItem(string callId, string functionName, BinaryData functionArguments);
public static FunctionCallOutputResponseItem CreateFunctionCallOutputItem(string callId, string functionOutput);
public static ReasoningResponseItem CreateReasoningItem(IEnumerable<ReasoningSummaryPart> summaryParts);
Expand Down Expand Up @@ -5551,6 +5551,7 @@ public class StreamingResponseWebSearchCallSearchingUpdate : StreamingResponseUp
}
[Experimental("OPENAI001")]
public class WebSearchCallResponseItem : ResponseItem, IJsonModel<WebSearchCallResponseItem>, IPersistableModel<WebSearchCallResponseItem> {
public WebSearchCallResponseItem();
public WebSearchCallStatus? Status { get; }
protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
Expand Down
Loading