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
10 changes: 10 additions & 0 deletions src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AllOf.2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ public AllOf(T1? value)
Value1 = value;
}

/// <summary>
///
/// </summary>
public static AllOf<T1, T2> FromValue1(T1? value) => new AllOf<T1, T2>(value);

/// <summary>
///
/// </summary>
Expand All @@ -103,6 +108,11 @@ public AllOf(T2? value)
Value2 = value;
}

/// <summary>
///
/// </summary>
public static AllOf<T1, T2> FromValue2(T2? value) => new AllOf<T1, T2>(value);

/// <summary>
///
/// </summary>
Expand Down
10 changes: 10 additions & 0 deletions src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ public AnyOf(T1? value)
Value1 = value;
}

/// <summary>
///
/// </summary>
public static AnyOf<T1, T2> FromValue1(T1? value) => new AnyOf<T1, T2>(value);

/// <summary>
///
/// </summary>
Expand All @@ -103,6 +108,11 @@ public AnyOf(T2? value)
Value2 = value;
}

/// <summary>
///
/// </summary>
public static AnyOf<T1, T2> FromValue2(T2? value) => new AnyOf<T1, T2>(value);

/// <summary>
///
/// </summary>
Expand Down
15 changes: 15 additions & 0 deletions src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AnyOf.3.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ public AnyOf(T1? value)
Value1 = value;
}

/// <summary>
///
/// </summary>
public static AnyOf<T1, T2, T3> FromValue1(T1? value) => new AnyOf<T1, T2, T3>(value);

/// <summary>
///
/// </summary>
Expand All @@ -133,6 +138,11 @@ public AnyOf(T2? value)
Value2 = value;
}

/// <summary>
///
/// </summary>
public static AnyOf<T1, T2, T3> FromValue2(T2? value) => new AnyOf<T1, T2, T3>(value);

/// <summary>
///
/// </summary>
Expand All @@ -151,6 +161,11 @@ public AnyOf(T3? value)
Value3 = value;
}

/// <summary>
///
/// </summary>
public static AnyOf<T1, T2, T3> FromValue3(T3? value) => new AnyOf<T1, T2, T3>(value);

/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ public AdminApiKeyCreateResponse(global::tryAGI.OpenAI.AdminApiKey? value)
AdminApiKey = value;
}

/// <summary>
///
/// </summary>
public static AdminApiKeyCreateResponse FromAdminApiKey(global::tryAGI.OpenAI.AdminApiKey? value) => new AdminApiKeyCreateResponse(value);

/// <summary>
///
/// </summary>
Expand All @@ -104,6 +109,11 @@ public AdminApiKeyCreateResponse(global::tryAGI.OpenAI.AdminApiKeyCreateResponse
AdminApiKeyCreateResponseVariant2 = value;
}

/// <summary>
///
/// </summary>
public static AdminApiKeyCreateResponse FromAdminApiKeyCreateResponseVariant2(global::tryAGI.OpenAI.AdminApiKeyCreateResponseVariant2? value) => new AdminApiKeyCreateResponse(value);

/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ public Annotation(global::tryAGI.OpenAI.FileCitationBody? value)
FileCitation = value;
}

/// <summary>
///
/// </summary>
public static Annotation FromFileCitation(global::tryAGI.OpenAI.FileCitationBody? value) => new Annotation(value);

/// <summary>
///
/// </summary>
Expand All @@ -169,6 +174,11 @@ public Annotation(global::tryAGI.OpenAI.UrlCitationBody? value)
UrlCitation = value;
}

/// <summary>
///
/// </summary>
public static Annotation FromUrlCitation(global::tryAGI.OpenAI.UrlCitationBody? value) => new Annotation(value);

/// <summary>
///
/// </summary>
Expand All @@ -187,6 +197,11 @@ public Annotation(global::tryAGI.OpenAI.ContainerFileCitationBody? value)
ContainerFileCitation = value;
}

/// <summary>
///
/// </summary>
public static Annotation FromContainerFileCitation(global::tryAGI.OpenAI.ContainerFileCitationBody? value) => new Annotation(value);

/// <summary>
///
/// </summary>
Expand All @@ -205,6 +220,11 @@ public Annotation(global::tryAGI.OpenAI.FilePath? value)
FilePath = value;
}

/// <summary>
///
/// </summary>
public static Annotation FromFilePath(global::tryAGI.OpenAI.FilePath? value) => new Annotation(value);

/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ public AnnotationsItem3(global::tryAGI.OpenAI.FileAnnotation? value)
File = value;
}

/// <summary>
///
/// </summary>
public static AnnotationsItem3 FromFile(global::tryAGI.OpenAI.FileAnnotation? value) => new AnnotationsItem3(value);

/// <summary>
///
/// </summary>
Expand All @@ -109,6 +114,11 @@ public AnnotationsItem3(global::tryAGI.OpenAI.UrlAnnotation? value)
Url = value;
}

/// <summary>
///
/// </summary>
public static AnnotationsItem3 FromUrl(global::tryAGI.OpenAI.UrlAnnotation? value) => new AnnotationsItem3(value);

/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ public ApplyPatchOperationParam(global::tryAGI.OpenAI.ApplyPatchCreateFileOperat
CreateFile = value;
}

/// <summary>
///
/// </summary>
public static ApplyPatchOperationParam FromCreateFile(global::tryAGI.OpenAI.ApplyPatchCreateFileOperationParam? value) => new ApplyPatchOperationParam(value);

/// <summary>
///
/// </summary>
Expand All @@ -139,6 +144,11 @@ public ApplyPatchOperationParam(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperat
DeleteFile = value;
}

/// <summary>
///
/// </summary>
public static ApplyPatchOperationParam FromDeleteFile(global::tryAGI.OpenAI.ApplyPatchDeleteFileOperationParam? value) => new ApplyPatchOperationParam(value);

/// <summary>
///
/// </summary>
Expand All @@ -157,6 +167,11 @@ public ApplyPatchOperationParam(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperat
UpdateFile = value;
}

/// <summary>
///
/// </summary>
public static ApplyPatchOperationParam FromUpdateFile(global::tryAGI.OpenAI.ApplyPatchUpdateFileOperationParam? value) => new ApplyPatchOperationParam(value);

/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@ public AssistantStreamEvent(global::tryAGI.OpenAI.ThreadStreamEvent? value)
Thread = value;
}

/// <summary>
///
/// </summary>
public static AssistantStreamEvent FromThread(global::tryAGI.OpenAI.ThreadStreamEvent? value) => new AssistantStreamEvent(value);

/// <summary>
///
/// </summary>
Expand All @@ -238,6 +243,11 @@ public AssistantStreamEvent(global::tryAGI.OpenAI.RunStreamEvent? value)
Run = value;
}

/// <summary>
///
/// </summary>
public static AssistantStreamEvent FromRun(global::tryAGI.OpenAI.RunStreamEvent? value) => new AssistantStreamEvent(value);

/// <summary>
///
/// </summary>
Expand All @@ -256,6 +266,11 @@ public AssistantStreamEvent(global::tryAGI.OpenAI.RunStepStreamEvent? value)
RunStep = value;
}

/// <summary>
///
/// </summary>
public static AssistantStreamEvent FromRunStep(global::tryAGI.OpenAI.RunStepStreamEvent? value) => new AssistantStreamEvent(value);

/// <summary>
///
/// </summary>
Expand All @@ -274,6 +289,11 @@ public AssistantStreamEvent(global::tryAGI.OpenAI.MessageStreamEvent? value)
Message = value;
}

/// <summary>
///
/// </summary>
public static AssistantStreamEvent FromMessage(global::tryAGI.OpenAI.MessageStreamEvent? value) => new AssistantStreamEvent(value);

/// <summary>
///
/// </summary>
Expand All @@ -292,6 +312,11 @@ public AssistantStreamEvent(global::tryAGI.OpenAI.ErrorEvent? value)
Error = value;
}

/// <summary>
///
/// </summary>
public static AssistantStreamEvent FromError(global::tryAGI.OpenAI.ErrorEvent? value) => new AssistantStreamEvent(value);

/// <summary>
///
/// </summary>
Expand All @@ -310,6 +335,11 @@ public AssistantStreamEvent(global::tryAGI.OpenAI.DoneEvent? value)
Done = value;
}

/// <summary>
///
/// </summary>
public static AssistantStreamEvent FromDone(global::tryAGI.OpenAI.DoneEvent? value) => new AssistantStreamEvent(value);

/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ public AssistantsApiResponseFormatOption(global::tryAGI.OpenAI.AssistantsApiResp
Enum = value;
}

/// <summary>
///
/// </summary>
public static AssistantsApiResponseFormatOption FromEnum(global::tryAGI.OpenAI.AssistantsApiResponseFormatOptionEnum? value) => new AssistantsApiResponseFormatOption(value);

/// <summary>
///
/// </summary>
Expand All @@ -171,6 +176,11 @@ public AssistantsApiResponseFormatOption(global::tryAGI.OpenAI.ResponseFormatTex
Text = value;
}

/// <summary>
///
/// </summary>
public static AssistantsApiResponseFormatOption FromText(global::tryAGI.OpenAI.ResponseFormatText? value) => new AssistantsApiResponseFormatOption(value);

/// <summary>
///
/// </summary>
Expand All @@ -189,6 +199,11 @@ public AssistantsApiResponseFormatOption(global::tryAGI.OpenAI.ResponseFormatJso
JsonObject = value;
}

/// <summary>
///
/// </summary>
public static AssistantsApiResponseFormatOption FromJsonObject(global::tryAGI.OpenAI.ResponseFormatJsonObject? value) => new AssistantsApiResponseFormatOption(value);

/// <summary>
///
/// </summary>
Expand All @@ -207,6 +222,11 @@ public AssistantsApiResponseFormatOption(global::tryAGI.OpenAI.ResponseFormatJso
JsonSchema = value;
}

/// <summary>
///
/// </summary>
public static AssistantsApiResponseFormatOption FromJsonSchema(global::tryAGI.OpenAI.ResponseFormatJsonSchema? value) => new AssistantsApiResponseFormatOption(value);

/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ public AssistantsApiToolChoiceOption(global::tryAGI.OpenAI.AssistantsApiToolChoi
Enum = value;
}

/// <summary>
///
/// </summary>
public static AssistantsApiToolChoiceOption FromEnum(global::tryAGI.OpenAI.AssistantsApiToolChoiceOptionEnum? value) => new AssistantsApiToolChoiceOption(value);

/// <summary>
///
/// </summary>
Expand All @@ -108,6 +113,11 @@ public AssistantsApiToolChoiceOption(global::tryAGI.OpenAI.AssistantsNamedToolCh
Named = value;
}

/// <summary>
///
/// </summary>
public static AssistantsApiToolChoiceOption FromNamed(global::tryAGI.OpenAI.AssistantsNamedToolChoice? value) => new AssistantsApiToolChoiceOption(value);

/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ public ChatCompletionMessageToolCallsItem(global::tryAGI.OpenAI.ChatCompletionMe
Function = value;
}

/// <summary>
///
/// </summary>
public static ChatCompletionMessageToolCallsItem FromFunction(global::tryAGI.OpenAI.ChatCompletionMessageToolCall? value) => new ChatCompletionMessageToolCallsItem(value);

/// <summary>
///
/// </summary>
Expand All @@ -109,6 +114,11 @@ public ChatCompletionMessageToolCallsItem(global::tryAGI.OpenAI.ChatCompletionMe
Custom = value;
}

/// <summary>
///
/// </summary>
public static ChatCompletionMessageToolCallsItem FromCustom(global::tryAGI.OpenAI.ChatCompletionMessageCustomToolCall? value) => new ChatCompletionMessageToolCallsItem(value);

/// <summary>
///
/// </summary>
Expand Down
Loading
Loading