|
| 1 | +namespace Azure.CloudMachine.OpenAI |
| 2 | +{ |
| 3 | + public static partial class AzureOpenAIExtensions |
| 4 | + { |
| 5 | + public static void Add(this System.Collections.Generic.List<OpenAI.Chat.ChatMessage> messages, OpenAI.Chat.ChatCompletion completion) { } |
| 6 | + public static void Add(this System.Collections.Generic.List<OpenAI.Chat.ChatMessage> messages, System.Collections.Generic.IEnumerable<Azure.CloudMachine.OpenAI.VectorbaseEntry> entries) { } |
| 7 | + public static string AsText(this OpenAI.Chat.ChatCompletion completion) { throw null; } |
| 8 | + public static string AsText(this OpenAI.Chat.ChatMessageContent content) { throw null; } |
| 9 | + public static string AsText(this System.ClientModel.ClientResult<OpenAI.Chat.ChatCompletion> completionResult) { throw null; } |
| 10 | + public static OpenAI.Chat.ChatClient GetOpenAIChatClient(this Azure.Core.ClientWorkspace workspace) { throw null; } |
| 11 | + public static OpenAI.Embeddings.EmbeddingClient GetOpenAIEmbeddingsClient(this Azure.Core.ClientWorkspace workspace) { throw null; } |
| 12 | + public static void Trim(this System.Collections.Generic.List<OpenAI.Chat.ChatMessage> messages) { } |
| 13 | + } |
| 14 | + public partial class ChatTools |
| 15 | + { |
| 16 | + public ChatTools(params System.Type[] tools) { } |
| 17 | + public System.Collections.Generic.IList<OpenAI.Chat.ChatTool> Definitions { get { throw null; } } |
| 18 | + public void Add(System.Reflection.MethodInfo function) { } |
| 19 | + public void Add(System.Type functions) { } |
| 20 | + public string Call(OpenAI.Chat.ChatToolCall call) { throw null; } |
| 21 | + public string Call(string name, object[] arguments) { throw null; } |
| 22 | + public System.Collections.Generic.IEnumerable<OpenAI.Chat.ToolChatMessage> CallAll(System.Collections.Generic.IEnumerable<OpenAI.Chat.ChatToolCall> toolCalls) { throw null; } |
| 23 | + public static implicit operator OpenAI.Chat.ChatCompletionOptions (Azure.CloudMachine.OpenAI.ChatTools tools) { throw null; } |
| 24 | + } |
| 25 | + public partial class EmbeddingsVectorbase |
| 26 | + { |
| 27 | + public EmbeddingsVectorbase(OpenAI.Embeddings.EmbeddingClient client, Azure.CloudMachine.OpenAI.VectorbaseStore store = null, int factChunkSize = 1000) { } |
| 28 | + public void Add(System.BinaryData data) { } |
| 29 | + public void Add(string text) { } |
| 30 | + public System.Collections.Generic.IEnumerable<Azure.CloudMachine.OpenAI.VectorbaseEntry> Find(string text, Azure.CloudMachine.OpenAI.FindOptions options = null) { throw null; } |
| 31 | + } |
| 32 | + public partial class FindOptions |
| 33 | + { |
| 34 | + public FindOptions() { } |
| 35 | + public int MaxEntries { get { throw null; } set { } } |
| 36 | + public float Threshold { get { throw null; } set { } } |
| 37 | + } |
| 38 | + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] |
| 39 | + public readonly partial struct VectorbaseEntry |
| 40 | + { |
| 41 | + private readonly object _dummy; |
| 42 | + private readonly int _dummyPrimitive; |
| 43 | + public VectorbaseEntry(System.ReadOnlyMemory<float> vector, System.BinaryData data, int? id = default(int?)) { throw null; } |
| 44 | + public System.BinaryData Data { get { throw null; } } |
| 45 | + public int? Id { get { throw null; } } |
| 46 | + public System.ReadOnlyMemory<float> Vector { get { throw null; } } |
| 47 | + } |
| 48 | + public abstract partial class VectorbaseStore |
| 49 | + { |
| 50 | + protected VectorbaseStore() { } |
| 51 | + public abstract int Add(Azure.CloudMachine.OpenAI.VectorbaseEntry entry); |
| 52 | + public abstract void Add(System.Collections.Generic.IReadOnlyList<Azure.CloudMachine.OpenAI.VectorbaseEntry> entry); |
| 53 | + public static float CosineSimilarity(System.ReadOnlySpan<float> x, System.ReadOnlySpan<float> y) { throw null; } |
| 54 | + public abstract System.Collections.Generic.IEnumerable<Azure.CloudMachine.OpenAI.VectorbaseEntry> Find(System.ReadOnlyMemory<float> vector, Azure.CloudMachine.OpenAI.FindOptions options); |
| 55 | + } |
| 56 | +} |
0 commit comments