Skip to content

Commit 74740ae

Browse files
authored
[AI] [Projects] add AI search tool parameters, update fabric REST name (Azure#49037)
* [AI] [Projects] add AI search tool parameters, update fabric REST name * export api
1 parent df9b2ec commit 74740ae

19 files changed

+264
-97
lines changed

sdk/ai/Azure.AI.Projects/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ ToolResources searchResource = new ToolResources
338338
{
339339
AzureAISearch = new AzureAISearchResource
340340
{
341-
IndexList = { new IndexResource(connection.Id, "sample_index") }
341+
IndexList = { new AISearchIndexResource(connection.Id, "sample_index") }
342342
}
343343
};
344344

sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.net8.0.cs

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,21 @@ public static partial class AIProjectsModelFactory
563563
public static Azure.AI.Projects.VectorStoreStaticChunkingStrategyResponse VectorStoreStaticChunkingStrategyResponse(Azure.AI.Projects.VectorStoreStaticChunkingStrategyOptions @static = null) { throw null; }
564564
public static Azure.AI.Projects.WorkspaceProperties WorkspaceProperties(string applicationInsights = null) { throw null; }
565565
}
566+
public partial class AISearchIndexResource : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AISearchIndexResource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AISearchIndexResource>
567+
{
568+
public AISearchIndexResource(string indexConnectionId, string indexName) { }
569+
public string Filter { get { throw null; } set { } }
570+
public string IndexConnectionId { get { throw null; } set { } }
571+
public string IndexName { get { throw null; } set { } }
572+
public Azure.AI.Projects.AzureAISearchQueryType? QueryType { get { throw null; } set { } }
573+
public int? TopK { get { throw null; } set { } }
574+
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
575+
Azure.AI.Projects.AISearchIndexResource System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AISearchIndexResource>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
576+
void System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AISearchIndexResource>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
577+
Azure.AI.Projects.AISearchIndexResource System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AISearchIndexResource>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
578+
string System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AISearchIndexResource>.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
579+
System.BinaryData System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AISearchIndexResource>.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
580+
}
566581
public partial class AOAIModelConfig : Azure.AI.Projects.TargetModelConfig, System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AOAIModelConfig>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AOAIModelConfig>
567582
{
568583
public AOAIModelConfig(string azureEndpoint, string apiKey, string azureDeployment) { }
@@ -598,10 +613,31 @@ public enum AuthenticationType
598613
Custom = 3,
599614
None = 4,
600615
}
616+
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
617+
public readonly partial struct AzureAISearchQueryType : System.IEquatable<Azure.AI.Projects.AzureAISearchQueryType>
618+
{
619+
private readonly object _dummy;
620+
private readonly int _dummyPrimitive;
621+
public AzureAISearchQueryType(string value) { throw null; }
622+
public static Azure.AI.Projects.AzureAISearchQueryType Semantic { get { throw null; } }
623+
public static Azure.AI.Projects.AzureAISearchQueryType Simple { get { throw null; } }
624+
public static Azure.AI.Projects.AzureAISearchQueryType Vector { get { throw null; } }
625+
public static Azure.AI.Projects.AzureAISearchQueryType VectorSemanticHybrid { get { throw null; } }
626+
public static Azure.AI.Projects.AzureAISearchQueryType VectorSimpleHybrid { get { throw null; } }
627+
public bool Equals(Azure.AI.Projects.AzureAISearchQueryType other) { throw null; }
628+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
629+
public override bool Equals(object obj) { throw null; }
630+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
631+
public override int GetHashCode() { throw null; }
632+
public static bool operator ==(Azure.AI.Projects.AzureAISearchQueryType left, Azure.AI.Projects.AzureAISearchQueryType right) { throw null; }
633+
public static implicit operator Azure.AI.Projects.AzureAISearchQueryType (string value) { throw null; }
634+
public static bool operator !=(Azure.AI.Projects.AzureAISearchQueryType left, Azure.AI.Projects.AzureAISearchQueryType right) { throw null; }
635+
public override string ToString() { throw null; }
636+
}
601637
public partial class AzureAISearchResource : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AzureAISearchResource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AzureAISearchResource>
602638
{
603639
public AzureAISearchResource() { }
604-
public System.Collections.Generic.IList<Azure.AI.Projects.IndexResource> IndexList { get { throw null; } }
640+
public System.Collections.Generic.IList<Azure.AI.Projects.AISearchIndexResource> IndexList { get { throw null; } }
605641
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
606642
Azure.AI.Projects.AzureAISearchResource System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AzureAISearchResource>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
607643
void System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AzureAISearchResource>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
@@ -1164,18 +1200,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
11641200
string System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IncompleteRunDetails>.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
11651201
System.BinaryData System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IncompleteRunDetails>.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
11661202
}
1167-
public partial class IndexResource : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.IndexResource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IndexResource>
1168-
{
1169-
public IndexResource(string indexConnectionId, string indexName) { }
1170-
public string IndexConnectionId { get { throw null; } set { } }
1171-
public string IndexName { get { throw null; } set { } }
1172-
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
1173-
Azure.AI.Projects.IndexResource System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.IndexResource>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
1174-
void System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.IndexResource>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
1175-
Azure.AI.Projects.IndexResource System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IndexResource>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
1176-
string System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IndexResource>.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
1177-
System.BinaryData System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IndexResource>.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
1178-
}
11791203
public abstract partial class InputData : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.InputData>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.InputData>
11801204
{
11811205
protected InputData() { }
@@ -1650,8 +1674,8 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
16501674
}
16511675
public partial class MicrosoftFabricToolDefinition : Azure.AI.Projects.ToolDefinition, System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.MicrosoftFabricToolDefinition>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.MicrosoftFabricToolDefinition>
16521676
{
1653-
public MicrosoftFabricToolDefinition(Azure.AI.Projects.ToolConnectionList fabricAiskill) { }
1654-
public Azure.AI.Projects.ToolConnectionList FabricAiskill { get { throw null; } set { } }
1677+
public MicrosoftFabricToolDefinition(Azure.AI.Projects.ToolConnectionList fabricDataagent) { }
1678+
public Azure.AI.Projects.ToolConnectionList FabricDataagent { get { throw null; } set { } }
16551679
protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
16561680
Azure.AI.Projects.MicrosoftFabricToolDefinition System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.MicrosoftFabricToolDefinition>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
16571681
void System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.MicrosoftFabricToolDefinition>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }

sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.netstandard2.0.cs

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,21 @@ public static partial class AIProjectsModelFactory
563563
public static Azure.AI.Projects.VectorStoreStaticChunkingStrategyResponse VectorStoreStaticChunkingStrategyResponse(Azure.AI.Projects.VectorStoreStaticChunkingStrategyOptions @static = null) { throw null; }
564564
public static Azure.AI.Projects.WorkspaceProperties WorkspaceProperties(string applicationInsights = null) { throw null; }
565565
}
566+
public partial class AISearchIndexResource : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AISearchIndexResource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AISearchIndexResource>
567+
{
568+
public AISearchIndexResource(string indexConnectionId, string indexName) { }
569+
public string Filter { get { throw null; } set { } }
570+
public string IndexConnectionId { get { throw null; } set { } }
571+
public string IndexName { get { throw null; } set { } }
572+
public Azure.AI.Projects.AzureAISearchQueryType? QueryType { get { throw null; } set { } }
573+
public int? TopK { get { throw null; } set { } }
574+
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
575+
Azure.AI.Projects.AISearchIndexResource System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AISearchIndexResource>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
576+
void System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AISearchIndexResource>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
577+
Azure.AI.Projects.AISearchIndexResource System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AISearchIndexResource>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
578+
string System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AISearchIndexResource>.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
579+
System.BinaryData System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AISearchIndexResource>.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
580+
}
566581
public partial class AOAIModelConfig : Azure.AI.Projects.TargetModelConfig, System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AOAIModelConfig>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AOAIModelConfig>
567582
{
568583
public AOAIModelConfig(string azureEndpoint, string apiKey, string azureDeployment) { }
@@ -598,10 +613,31 @@ public enum AuthenticationType
598613
Custom = 3,
599614
None = 4,
600615
}
616+
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
617+
public readonly partial struct AzureAISearchQueryType : System.IEquatable<Azure.AI.Projects.AzureAISearchQueryType>
618+
{
619+
private readonly object _dummy;
620+
private readonly int _dummyPrimitive;
621+
public AzureAISearchQueryType(string value) { throw null; }
622+
public static Azure.AI.Projects.AzureAISearchQueryType Semantic { get { throw null; } }
623+
public static Azure.AI.Projects.AzureAISearchQueryType Simple { get { throw null; } }
624+
public static Azure.AI.Projects.AzureAISearchQueryType Vector { get { throw null; } }
625+
public static Azure.AI.Projects.AzureAISearchQueryType VectorSemanticHybrid { get { throw null; } }
626+
public static Azure.AI.Projects.AzureAISearchQueryType VectorSimpleHybrid { get { throw null; } }
627+
public bool Equals(Azure.AI.Projects.AzureAISearchQueryType other) { throw null; }
628+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
629+
public override bool Equals(object obj) { throw null; }
630+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
631+
public override int GetHashCode() { throw null; }
632+
public static bool operator ==(Azure.AI.Projects.AzureAISearchQueryType left, Azure.AI.Projects.AzureAISearchQueryType right) { throw null; }
633+
public static implicit operator Azure.AI.Projects.AzureAISearchQueryType (string value) { throw null; }
634+
public static bool operator !=(Azure.AI.Projects.AzureAISearchQueryType left, Azure.AI.Projects.AzureAISearchQueryType right) { throw null; }
635+
public override string ToString() { throw null; }
636+
}
601637
public partial class AzureAISearchResource : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AzureAISearchResource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AzureAISearchResource>
602638
{
603639
public AzureAISearchResource() { }
604-
public System.Collections.Generic.IList<Azure.AI.Projects.IndexResource> IndexList { get { throw null; } }
640+
public System.Collections.Generic.IList<Azure.AI.Projects.AISearchIndexResource> IndexList { get { throw null; } }
605641
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
606642
Azure.AI.Projects.AzureAISearchResource System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AzureAISearchResource>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
607643
void System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AzureAISearchResource>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
@@ -1164,18 +1200,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
11641200
string System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IncompleteRunDetails>.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
11651201
System.BinaryData System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IncompleteRunDetails>.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
11661202
}
1167-
public partial class IndexResource : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.IndexResource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IndexResource>
1168-
{
1169-
public IndexResource(string indexConnectionId, string indexName) { }
1170-
public string IndexConnectionId { get { throw null; } set { } }
1171-
public string IndexName { get { throw null; } set { } }
1172-
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
1173-
Azure.AI.Projects.IndexResource System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.IndexResource>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
1174-
void System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.IndexResource>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
1175-
Azure.AI.Projects.IndexResource System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IndexResource>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
1176-
string System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IndexResource>.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
1177-
System.BinaryData System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.IndexResource>.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
1178-
}
11791203
public abstract partial class InputData : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.InputData>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.InputData>
11801204
{
11811205
protected InputData() { }
@@ -1650,8 +1674,8 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
16501674
}
16511675
public partial class MicrosoftFabricToolDefinition : Azure.AI.Projects.ToolDefinition, System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.MicrosoftFabricToolDefinition>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.MicrosoftFabricToolDefinition>
16521676
{
1653-
public MicrosoftFabricToolDefinition(Azure.AI.Projects.ToolConnectionList fabricAiskill) { }
1654-
public Azure.AI.Projects.ToolConnectionList FabricAiskill { get { throw null; } set { } }
1677+
public MicrosoftFabricToolDefinition(Azure.AI.Projects.ToolConnectionList fabricDataagent) { }
1678+
public Azure.AI.Projects.ToolConnectionList FabricDataagent { get { throw null; } set { } }
16551679
protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
16561680
Azure.AI.Projects.MicrosoftFabricToolDefinition System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.MicrosoftFabricToolDefinition>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
16571681
void System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.MicrosoftFabricToolDefinition>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }

sdk/ai/Azure.AI.Projects/src/Generated/AIProjectsModelFactory.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)