diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json
index b202549fcdd3..7778c282123c 100644
--- a/.config/dotnet-tools.json
+++ b/.config/dotnet-tools.json
@@ -13,6 +13,12 @@
"commands": [
"reportgenerator"
]
+ },
+ "Azure.Sdk.Tools.TestProxy": {
+ "version": "1.0.0-dev.20251022.1",
+ "commands": [
+ "test-proxy"
+ ]
}
}
}
\ No newline at end of file
diff --git a/.vscode/cspell.json b/.vscode/cspell.json
index 1acd9be1d979..d42077cc91ab 100644
--- a/.vscode/cspell.json
+++ b/.vscode/cspell.json
@@ -64,12 +64,14 @@
"aadds",
"aadkerb",
"adls",
+ "agentic",
"aoai",
"apos",
"azsdk",
"blazor",
"byok",
"centralus",
+ "clippy",
"colls",
"contoso",
"cpus",
@@ -211,17 +213,6 @@
"mobo"
]
},
- {
- "filename": "**/sdk/ai/**/*.cs",
- "words": [
- "ansii",
- "atbash",
- "azureai",
- "bleu",
- "gleu",
- "ubinary"
- ]
- },
{
"filename": "**/sdk/analysisservices/**/*.cs",
"words": [
diff --git a/Directory.Build.props b/Directory.Build.props
index 0d1b0a607d34..1253ea8c4d61 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -4,7 +4,7 @@
$(MSBuildThisFileDirectory)eng
$(RepoRoot)src
$(RepoRoot)src/SDKs
- true
+ true
true
true
diff --git a/common/Perf/Azure.Test.Perf/Azure.Test.Perf.csproj b/common/Perf/Azure.Test.Perf/Azure.Test.Perf.csproj
index 90979d773ed0..ffb4f61f4ed0 100644
--- a/common/Perf/Azure.Test.Perf/Azure.Test.Perf.csproj
+++ b/common/Perf/Azure.Test.Perf/Azure.Test.Perf.csproj
@@ -1,5 +1,4 @@
-
- net8.0
latest
+
+
+ $(NoWarn);NU1510
+
+
true
+ true
+ false
@@ -144,43 +155,90 @@
$(RepoEngPath)\CodeAnalysis.ruleset
-
-
+
-
- true
- false
+
+ net10.0
+ $(LtsTargetFramework);net8.0
- net452;net461;netstandard2.0
- $(LtsTargetFramework);netstandard2.0
- $(LtsTargetFramework)
+
+ $(RequiredRunnableTargetFrameworks);net9.0
+
+
+
+ net462
+
+
+ net452;net461;netstandard2.0
+
+
+
+
+ $(DefaultLegacyTargetFrameworks)
+
+
+ $(RequiredRunnableTargetFrameworks);netstandard2.0
+
+
netstandard2.0
+
+
+ $(LtsTargetFramework)
+
false
-
- net9.0;$(LtsTargetFramework);
-
- $(RequiredTargetFrameworks);net462
-
+
+
+ $(AllActiveCurrentTargetFrameworks)
+
+
+ $(RequiredTargetFrameworks);$(NetFxTargetFramework)
+
+
$(LtsTargetFramework)
-
-
-
-
+
$(RequiredTargetFrameworks)
true
true
- true
-
$(DefineConstants);FullNetFx
+
+
+
+
+
Analyzer
diff --git a/eng/Directory.Build.Common.targets b/eng/Directory.Build.Common.targets
index 2188d0207e57..e70429ff6633 100644
--- a/eng/Directory.Build.Common.targets
+++ b/eng/Directory.Build.Common.targets
@@ -21,7 +21,7 @@
$([MSBuild]::NormalizeDirectory($(MSBuildProjectDirectory)/../).TrimEnd("/").TrimEnd("\\"))
-
+
true
@@ -105,19 +105,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -156,12 +143,46 @@
+
true
AzSdk.reference.targets
AzSdk.test.reference.targets
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
false
diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props
index 333c095fc16a..219f64b3900f 100644
--- a/eng/Packages.Data.props
+++ b/eng/Packages.Data.props
@@ -204,6 +204,12 @@
+
+
+
+
+
+
@@ -213,7 +219,7 @@
-
+
@@ -371,8 +377,13 @@
-
-
+
+
+
+
+
+
+
@@ -407,6 +418,7 @@
+
@@ -475,8 +487,13 @@
-
+
+
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Azure.Generator.Management.csproj b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Azure.Generator.Management.csproj
index fd1c78914257..318b0a4af3a2 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Azure.Generator.Management.csproj
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Azure.Generator.Management.csproj
@@ -1,7 +1,6 @@
- net9.0
- net9.0
+ $(RequiredTargetFrameworks)
Azure.Generator.Management
1.0.0-beta.1
true
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Azure.Generator.Mgmt.Tests.csproj b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Azure.Generator.Mgmt.Tests.csproj
index 21ebdb7fca3c..a0857d45f328 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Azure.Generator.Mgmt.Tests.csproj
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Azure.Generator.Mgmt.Tests.csproj
@@ -1,8 +1,7 @@
- net9.0
- net9.0
+ $(RequiredTargetFrameworks)
latest
CS8002
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Common/Azure.Generator.Management.Tests.Common.csproj b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Common/Azure.Generator.Management.Tests.Common.csproj
index 12e4121bb0d6..70bff0ab352f 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Common/Azure.Generator.Management.Tests.Common.csproj
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Common/Azure.Generator.Management.Tests.Common.csproj
@@ -1,8 +1,7 @@
- net9.0
- net9.0
+ $(RequiredTargetFrameworks)
enable
enable
true
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Common/InputFactory.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Common/InputFactory.cs
index ea1c2e43e491..20072d4e354f 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Common/InputFactory.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Common/InputFactory.cs
@@ -390,6 +390,7 @@ public static InputMethodParameter MethodParameter(
///
///
///
+ ///
///
public static InputModelType Model(
string name,
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator.StubLibrary/src/Azure.Generator.StubLibrary.csproj b/eng/packages/http-client-csharp/generator/Azure.Generator.StubLibrary/src/Azure.Generator.StubLibrary.csproj
index 68a6518a2325..ddfc06e61d50 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator.StubLibrary/src/Azure.Generator.StubLibrary.csproj
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator.StubLibrary/src/Azure.Generator.StubLibrary.csproj
@@ -3,8 +3,7 @@
StubPlugin
1.0.0-beta.1
- net9.0
- net9.0
+ $(RequiredTargetFrameworks)
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Azure.Generator.csproj b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Azure.Generator.csproj
index e64753c49d5d..270f3e9dfdb6 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Azure.Generator.csproj
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Azure.Generator.csproj
@@ -1,7 +1,6 @@
- net9.0
- net9.0
+ $(RequiredTargetFrameworks)
Azure.Generator
1.0.0-beta.1
true
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Azure.Generator.Tests.csproj b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Azure.Generator.Tests.csproj
index 4949e8debd55..737b35181d97 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Azure.Generator.Tests.csproj
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Azure.Generator.Tests.csproj
@@ -1,7 +1,6 @@
- net9.0
- net9.0
+ $(RequiredTargetFrameworks)
latest
CS8002
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/test/common/Azure.Generator.Tests.Common.csproj b/eng/packages/http-client-csharp/generator/Azure.Generator/test/common/Azure.Generator.Tests.Common.csproj
index 9eb32a65c8ef..99150aae8181 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/test/common/Azure.Generator.Tests.Common.csproj
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/common/Azure.Generator.Tests.Common.csproj
@@ -1,8 +1,7 @@
- net9.0
- net9.0
+ $(RequiredTargetFrameworks)
enable
enable
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local.Tests/TestProjects.Local.Tests.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Local.Tests/TestProjects.Local.Tests.csproj
index 0a368d7aad63..c4c15e92382f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local.Tests/TestProjects.Local.Tests.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local.Tests/TestProjects.Local.Tests.csproj
@@ -1,8 +1,8 @@
- net8.0
- net8.0
+ $(LtsTargetFramework)
+ $(RequiredTargetFrameworks)
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/TestProjects.Spector.Tests.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/TestProjects.Spector.Tests.csproj
index b6c5f00dde49..0da81157771f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/TestProjects.Spector.Tests.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/TestProjects.Spector.Tests.csproj
@@ -1,8 +1,8 @@
- net9.0
- net9.0
+ $(LtsTargetFramework)
+ $(RequiredTargetFrameworks)
diff --git a/eng/packages/plugins/client/Client.Plugin/src/Client.Plugin.csproj b/eng/packages/plugins/client/Client.Plugin/src/Client.Plugin.csproj
index 100e7c4a991b..780956a70dbb 100644
--- a/eng/packages/plugins/client/Client.Plugin/src/Client.Plugin.csproj
+++ b/eng/packages/plugins/client/Client.Plugin/src/Client.Plugin.csproj
@@ -2,8 +2,8 @@
1.0.0-beta.1
- net9.0
- net9.0
+ $(LtsTargetFramework)
+ $(RequiredTargetFrameworks)
true
diff --git a/eng/packages/plugins/client/Client.Plugin/test/Client.Plugin.Tests.csproj b/eng/packages/plugins/client/Client.Plugin/test/Client.Plugin.Tests.csproj
index 312dd424ba8d..52a5b9823f82 100644
--- a/eng/packages/plugins/client/Client.Plugin/test/Client.Plugin.Tests.csproj
+++ b/eng/packages/plugins/client/Client.Plugin/test/Client.Plugin.Tests.csproj
@@ -2,8 +2,8 @@
1.0.0-beta.1
- net9.0
- net9.0
+ $(LtsTargetFramework)
+ $(RequiredTargetFrameworks)
diff --git a/eng/pipelines/templates/jobs/smoke-test-matrix.json b/eng/pipelines/templates/jobs/smoke-test-matrix.json
index 6b78de2b6fd4..19df02af7c32 100644
--- a/eng/pipelines/templates/jobs/smoke-test-matrix.json
+++ b/eng/pipelines/templates/jobs/smoke-test-matrix.json
@@ -6,7 +6,7 @@
"OSVmImage": "env:WINDOWSVMIMAGE"
}
},
- "TestTargetFramework": ["net462", "net8.0", "net9.0"]
+ "TestTargetFramework": ["net462", "net8.0", "net9.0", "net10.0"]
},
"include": [
{
@@ -16,7 +16,7 @@
"OSVmImage": "env:LINUXVMIMAGE"
}
},
- "TestTargetFramework": "net8.0"
+ "TestTargetFramework": "net10.0"
}
]
}
diff --git a/eng/pipelines/templates/stages/platform-matrix.json b/eng/pipelines/templates/stages/platform-matrix.json
index 87d0885b9479..3692d6e5c1a3 100644
--- a/eng/pipelines/templates/stages/platform-matrix.json
+++ b/eng/pipelines/templates/stages/platform-matrix.json
@@ -25,6 +25,16 @@
"Pool": "env:WINDOWSPOOL",
"TestTargetFramework": "net8.0"
},
+ "Windows2022_NET9.0": {
+ "OSVmImage": "env:WINDOWSVMIMAGE",
+ "Pool": "env:WINDOWSPOOL",
+ "TestTargetFramework": "net9.0"
+ },
+ "Windows2022_NET10.0": {
+ "OSVmImage": "env:WINDOWSVMIMAGE",
+ "Pool": "env:WINDOWSPOOL",
+ "TestTargetFramework": "net10.0"
+ },
"MacOS_NET8.0": {
"OSVmImage": "env:MACVMIMAGE",
"Pool": "env:MACPOOL",
@@ -34,6 +44,11 @@
"OSVmImage": "env:MACVMIMAGE",
"Pool": "env:MACPOOL",
"TestTargetFramework": "net9.0"
+ },
+ "MacOS_NET10.0": {
+ "OSVmImage": "env:MACVMIMAGE",
+ "Pool": "env:MACPOOL",
+ "TestTargetFramework": "net10.0"
}
},
"AdditionalTestArguments": [
@@ -48,10 +63,10 @@
"include": [
{
"Agent": {
- "Windows2022_NET9.0": {
+ "Windows2022_NET10.0": {
"OSVmImage": "env:WINDOWSVMIMAGE",
"Pool": "env:WINDOWSPOOL",
- "TestTargetFramework": "net9.0"
+ "TestTargetFramework": "net10.0"
}
},
"TestMode": {
diff --git a/eng/pipelines/templates/steps/install-dotnet.yml b/eng/pipelines/templates/steps/install-dotnet.yml
index cff03bbadf5f..d8338d13e6ee 100644
--- a/eng/pipelines/templates/steps/install-dotnet.yml
+++ b/eng/pipelines/templates/steps/install-dotnet.yml
@@ -14,6 +14,14 @@ steps:
inputs:
useGlobalJson: true
performMultiLevelLookup: true
+ - task: UseDotNet@2 # We need .NET 9 for the .NET 9 tests
+ displayName: 'Use .NET 9.0 SDK'
+ retryCountOnTaskFailure: 3
+ inputs:
+ # AspNetCore runtime pack can't be installed outside of SDK and we need it for integration tests
+ packageType: sdk
+ performMultiLevelLookup: true
+ version: "9.0.x"
- task: UseDotNet@2 # We need .NET 8 for the .NET 8 tests
displayName: 'Use .NET 8.0 SDK'
retryCountOnTaskFailure: 3
diff --git a/eng/scripts/compatibility/Check-AOT-Compatibility.ps1 b/eng/scripts/compatibility/Check-AOT-Compatibility.ps1
index f7f002c56272..cb642e0b7cb2 100644
--- a/eng/scripts/compatibility/Check-AOT-Compatibility.ps1
+++ b/eng/scripts/compatibility/Check-AOT-Compatibility.ps1
@@ -27,7 +27,7 @@ $csprojContent = @"
Exe
- net9.0
+ net10.0
true
true
false
diff --git a/eng/scripts/dependencies/azure-sdk.deps.csproj b/eng/scripts/dependencies/azure-sdk.deps.csproj
index b8d281df0547..f1c1b258aef6 100644
--- a/eng/scripts/dependencies/azure-sdk.deps.csproj
+++ b/eng/scripts/dependencies/azure-sdk.deps.csproj
@@ -1,6 +1,6 @@
- net9.0
+ $(LtsTargetFramework)
Exe
false
- $(LtsTargetFramework)
- $(LtsTargetFramework)
-
+
+ $(RequiredRunnableTargetFrameworks)
Azure.AI.AgentServer.AgentFramework
diff --git a/sdk/agentserver/Azure.AI.AgentServer.Core/src/Azure.AI.AgentServer.Core.csproj b/sdk/agentserver/Azure.AI.AgentServer.Core/src/Azure.AI.AgentServer.Core.csproj
index 6c75b3e8a52e..03c54e774146 100644
--- a/sdk/agentserver/Azure.AI.AgentServer.Core/src/Azure.AI.AgentServer.Core.csproj
+++ b/sdk/agentserver/Azure.AI.AgentServer.Core/src/Azure.AI.AgentServer.Core.csproj
@@ -1,9 +1,7 @@
-
- $(LtsTargetFramework)
- $(LtsTargetFramework)
-
+
+ $(RequiredRunnableTargetFrameworks)
Azure.AI.AgentServer.Core
diff --git a/sdk/ai/.gitignore b/sdk/ai/.gitignore
new file mode 100644
index 000000000000..6c1d801e0a29
--- /dev/null
+++ b/sdk/ai/.gitignore
@@ -0,0 +1,4 @@
+# Runsetting files
+Azure.AI.Projects/**/.runsettings
+Azure.AI.Agents/**/.runsettings
+Azure.AI.Agents.Persistent/**/.runsettings
\ No newline at end of file
diff --git a/sdk/ai/Azure.AI.Projects.OpenAI/Azure.AI.Projects.OpenAI.sln b/sdk/ai/Azure.AI.Projects.OpenAI/Azure.AI.Projects.OpenAI.sln
new file mode 100644
index 000000000000..2106e4233e05
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.OpenAI/Azure.AI.Projects.OpenAI.sln
@@ -0,0 +1,30 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.14.36511.14
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.AI.Projects.OpenAI", "src\Azure.AI.Projects.OpenAI.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.AI.Projects.OpenAI.Tests", "tests\Azure.AI.Projects.OpenAI.Tests.csproj", "{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE}
+ EndGlobalSection
+EndGlobal
diff --git a/sdk/ai/Azure.AI.Projects.OpenAI/CHANGELOG.md b/sdk/ai/Azure.AI.Projects.OpenAI/CHANGELOG.md
new file mode 100644
index 000000000000..452d2a169231
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.OpenAI/CHANGELOG.md
@@ -0,0 +1,43 @@
+# Release History
+
+## 1.0.0-beta.4 (2025-11-17)
+
+## Features Added
+
+This change updates the baseline `OpenAI` dependency to the latest `2.7.0` official version. For inherited details, please see the [OpenAI .NET changelog](https://github.com/openai/openai-dotnet/tree/main/CHANGELOG.md).
+
+### Breaking Changes
+
+**Transitive from upgrade to System.ClientModel 1.8.1**:
+
+- The extension `StructuredInputs` on `ResponseCreationOptions` will now correctly return a `BinaryData` instance with enclosing quotes included when retrieving an encoded string value
+
+## 1.0.0-beta.3 (2025-11-15)
+
+### Bugs Fixed
+
+- Addressed an issue that caused paginated responses like conversation items to never terminate when large numbers of items are fetched
+
+## 1.0.0-beta.2 (2025-11-14)
+
+### Features Added
+
+- `ProjectResponsesClient.GetProjectResponses()` is added, supporting the ability to list previous responses with optional agent and conversation filters.
+
+### Breaking Changes (beta)
+
+- `ProjectConversationsClient.GetProjectConversations()` has an updated signature that accepts an `AgentReference` instead of distinct `agentName` and `agentId` parameters, aligned with the new "list responses" operation.
+
+### Bugs Fixed
+
+- Addressed a problem where not supplying an options instance to the `ProjectResponsesClient` constructor resulted in fallback to the `https://api.openai.com/v1` endpoint
+
+## 1.0.0-beta.1 (2025-11-14)
+
+This is the first release of the `Azure.AI.Projects.OpenAI` library, a new extension package for the official `OpenAI` .NET library that facilitates and simplifies use of Microsoft Foundry extensions to OpenAI APIs.
+
+### Features Added
+
+- `Responses` support, including C# 14 extension properties to `OpenAIResponse` and `ResponseCreationOptions`, together with a `ProjectResponsesClient` type (extends official `OpenAIResponseClient`)
+- `Files` support, including a `ProjectFilesClient` type (extends official `OpenAIFileClient`)
+- Types and functionality in support of `Azure.AI.Projects` OpenAI-based features, including new Microsoft Foundry Agents Service capabilities
diff --git a/sdk/ai/Azure.AI.Projects.OpenAI/Directory.Build.props b/sdk/ai/Azure.AI.Projects.OpenAI/Directory.Build.props
new file mode 100644
index 000000000000..63bd836ad44b
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.OpenAI/Directory.Build.props
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/sdk/ai/Azure.AI.Projects.OpenAI/README.md b/sdk/ai/Azure.AI.Projects.OpenAI/README.md
new file mode 100644
index 000000000000..853b68a676b8
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.OpenAI/README.md
@@ -0,0 +1,810 @@
+# Azure AI Projects OpenAI client library for .NET
+
+Develop Agents using the Azure AI Foundry platform, leveraging an extensive ecosystem of models, tools, and capabilities from OpenAI, Microsoft, and other LLM providers.
+
+**Note:** This package can be used to create requests to the _existing_ agents. It was split from Azure.AI.Projects because the create, update, and delete operations on agents are recommended to be used with enhanced privileges. The Projects library provides simplified access to advanced functionality, such as creating and managing Agents, enumerating AI models, working with datasets, managing search indexes, evaluating generative AI performance, and enabling OpenTelemetry tracing. In this tutorial we are showing how to create agents with the specific data mining functionalities provided by tools.
+
+[Product documentation][product_doc]
+| [Samples][samples]
+| [API reference documentation][api_ref_docs]
+| [Package (NuGet)][nuget]
+| [SDK source code][source_code]
+
+## Table of contents
+
+- [Getting started](#getting-started)
+ - [Prerequisites](#prerequisites)
+ - [Install the package](#install-the-package)
+ - [Authenticate the client](#authenticate-the-client)
+- [Key concepts](#key-concepts)
+ - [Service API versions](#service-api-versions)
+ - [Select a service API version](#select-a-service-api-version)
+- [Additional concepts](#additional-concepts)
+- [Examples]
+ - [Prompt Agents](#prompt-agents)
+ - [Agents](#agents)
+ - [Responses](#responses)
+ - [Conversations](#conversations)
+ - [Container App](#container-app)
+ - [File search](#file-search)
+ - [Code interpreter](#code-interpreter)
+ - [Computer use](#computer-use)
+ - [Function call](#function-call)
+ - [Web Search](#web-search)
+- [Tracing](#tracing)
+ - [Tracing to Azure Monitor](#tracing-to-azure-monitor)
+ - [Tracing to Console](#tracing-to-console)
+- [Troubleshooting](#troubleshooting)
+- [Next steps](#next-steps)
+- [Contributing](#contributing)
+
+## Getting started
+
+### Prerequisites
+
+To use Azure AI Agents capabilities, you must have an [Azure subscription](https://azure.microsoft.com/free/dotnet/). This will allow you to create an Azure AI resource and get a connection URL.
+
+### Install the package
+
+Install the client library for .NET with [NuGet](https://www.nuget.org/ ):
+
+```shell
+dotnet add package Azure.AI.Projects.OpenAI --prerelease
+```
+
+> You must have an [Azure subscription](https://azure.microsoft.com/free/dotnet/) and [Cosmos DB account](https://docs.microsoft.com/azure/cosmos-db/account-overview) (SQL API). In order to take advantage of the C# 8.0 syntax, it is recommended that you compile using the [.NET Core SDK](https://dotnet.microsoft.com/download) 3.0 or higher with a [language version](https://docs.microsoft.com/dotnet/csharp/language-reference/configure-language-version#override-a-default) of `latest`. It is also possible to compile with the .NET Core SDK 2.1.x using a language version of `preview`.
+
+### Authenticate the client
+
+To be able to create, update and delete Agent, please install `Azure.AI.Projects` and use `AIProjectClient`. It is a good practice to only allow this operation for users with elevated permissions, for example, administrators.
+
+```C# Snippet:CreateAgentClientDirectlyFromProjectEndpoint
+AIProjectClient projectClient = new(
+ endpoint: new Uri("https://.services.ai.azure.com/api/projects/"),
+ tokenProvider: new AzureCliCredential());
+AIProjectAgentsOperations agentClient = projectClient.Agents;
+```
+
+If you're already using an `AIProjectClient` from `Azure.AI.Projects`, you can initialize an `ProjectOpenAIClient` instance directly via an extension method:
+
+```C# Snippet:CreateAgentClientFromProjectsClient
+AIProjectClient projectClient = new(
+ endpoint: new Uri("https://.services.ai.azure.com/api/projects/"),
+ tokenProvider: new AzureCliCredential());
+ProjectOpenAIClient agentClient = projectClient.OpenAI;
+```
+
+For operations based on OpenAI APIs like `/responses`, `/files`, and `/vector_stores`, you can retrieve `OpenAIResponseClient`, `OpenAIFileClient` and `VectorStoreClient` through the appropriate helper methods:
+
+```C# Snippet:GetOpenAIClientsFromProjects
+ProjectResponsesClient responseClient = projectClient.OpenAI.GetProjectResponsesClientForAgent("AGENT_NAME");
+OpenAIFileClient fileClient = projectClient.OpenAI.GetOpenAIFileClient();
+VectorStoreClient vectorStoreClient = projectClient.OpenAI.GetVectorStoreClient();
+```
+
+## Key concepts
+
+### Service API versions
+
+When clients send REST requests to the endpoint, one of the query parameters is `api-version`. It allows us to select the API versions supporting different features. Currently supported values for API versions are `2025-11-01` and `2025-11-15-preview` (default).
+
+#### Select a service API version
+
+The API version may be set supplying `version` parameter to `AgentClientOptions` constructor as shown in the example code below.
+
+```C# Snippet:SelectAPIVersion
+ProjectOpenAIClientOptions option = new()
+{
+ ApiVersion = "2025-11-15-preview"
+};
+ProjectOpenAIClient projectClient = new(
+ projectEndpoint: new Uri("https://.services.ai.azure.com/api/projects/"),
+ tokenProvider: new AzureCliCredential());
+```
+
+### Additional concepts
+The Azure.AI.Projects.OpenAI framework organized in a way that for each call, requiring the REST API request, there are synchronous and asynchronous counterparts where the letter has the "Async" suffix. For example, the following code demonstrates the creation of a `OpenAIResponse` object.
+
+Synchronous call:
+```C# Snippet:Sample_CreateResponse_Sync
+ProjectResponsesClient responseClient = projectClient.OpenAI.GetProjectResponsesClientForModel(modelDeploymentName);
+OpenAIResponse response = responseClient.CreateResponse("What is the size of France in square miles?");
+```
+
+Asynchronous call:
+
+```C# Snippet:Sample_CreateResponse_Async
+ProjectResponsesClient responseClient = projectClient.OpenAI.GetProjectResponsesClientForModel(modelDeploymentName);
+OpenAIResponse response = await responseClient.CreateResponseAsync("What is the size of France in square miles?");
+```
+
+In the most of code snippets we will show only asynchronous sample for brevity. Please refer individual [samples](https://github.com/Azure/azure-sdk-for-net/tree/feature/ai-foundry/agents-v2/sdk/ai/Azure.AI.Projects.OpenAI/samples) for both synchronous and asynchronous code.
+
+## Examples
+
+### Prompt Agents
+
+#### Agents
+
+**Note:** Please intall `Azure.AI.Projects` to manipulate Agents.
+When creating the Agents we need to supply Agent definitions to its constructor. To create a declarative prompt Agent, use the `PromptAgentDefinition`:
+
+```C# Snippet:CreateAPromptAgent
+string RAW_PROJECT_ENDPOINT = Environment.GetEnvironmentVariable("AZURE_AI_FOUNDRY_PROJECT_ENDPOINT")
+ ?? throw new InvalidOperationException("Missing environment variable 'AZURE_AI_FOUNDRY_PROJECT_ENDPOINT'");
+string MODEL_DEPLOYMENT = Environment.GetEnvironmentVariable("AZURE_AI_FOUNDRY_MODEL_DEPLOYMENT")
+ ?? throw new InvalidOperationException("Missing environment variable 'AZURE_AI_FOUNDRY_MODEL_DEPLOYMENT'");
+string AGENT_NAME = Environment.GetEnvironmentVariable("AZURE_AI_FOUNDRY_AGENT_NAME")
+ ?? throw new InvalidOperationException("Missing environment variable 'AZURE_AI_FOUNDRY_AGENT_NAME'");
+
+AIProjectClient projectClient = new(new Uri(RAW_PROJECT_ENDPOINT), new AzureCliCredential());
+
+AgentDefinition agentDefinition = new PromptAgentDefinition(MODEL_DEPLOYMENT)
+{
+ Instructions = "You are a foo bar agent. In EVERY response you give, ALWAYS include both `foo` and `bar` strings somewhere in the response.",
+};
+
+AgentVersion newAgentVersion = await projectClient.Agents.CreateAgentVersionAsync(
+ agentName: AGENT_NAME,
+ options: new(agentDefinition));
+Console.WriteLine($"Created new agent version: {newAgentVersion.Name}");
+```
+
+The code above will result in creation of `AgentVersion` object, which is the data object containing Agent's name and version.
+
+#### Responses
+
+OpenAI API allows you to get the response without creating an agent by using the response API. In this scenario we first create the response object.
+
+```C# Snippet:Sample_CreateResponse_Async
+ProjectResponsesClient responseClient = projectClient.OpenAI.GetProjectResponsesClientForModel(modelDeploymentName);
+OpenAIResponse response = await responseClient.CreateResponseAsync("What is the size of France in square miles?");
+```
+
+After the response was created we need to wait for it to complete.
+
+```C# Snippet:Sample_WriteOutput_ResponseBasic_Async
+Console.WriteLine(response.GetOutputText());
+```
+
+Alternatively, we can stream the response.
+```C# Snippet:Sample_WriteOutput_ResponseStreaming_Async
+await foreach (StreamingResponseUpdate streamResponse in responsesClient.CreateResponseStreamingAsync("What is the size of France in square miles?"))
+{
+ if (streamResponse is StreamingResponseCreatedUpdate createUpdate)
+ {
+ Console.WriteLine($"Stream response created with ID: {createUpdate.Response.Id}");
+ }
+ else if (streamResponse is StreamingResponseOutputTextDeltaUpdate textDelta)
+ {
+ Console.WriteLine($"Delta: {textDelta.Delta}");
+ }
+ else if (streamResponse is StreamingResponseOutputTextDoneUpdate textDoneUpdate)
+ {
+ Console.WriteLine($"Response done with full message: {textDoneUpdate.Text}");
+ }
+ else if (streamResponse is StreamingResponseErrorUpdate errorUpdate)
+ {
+ throw new InvalidOperationException($"The stream has failed with the error: {errorUpdate.Message}");
+ }
+}
+```
+
+Responses can be used with the agents. First we need to create an `AgentVersion` object.
+
+```C# Snippet:CreateAgent_Basic_Async
+PromptAgentDefinition agentDefinition = new(model: MODEL_DEPLOYMENT)
+{
+ Instructions = "You are a physics teacher with a sense of humor.",
+};
+AgentVersion agentVersion = await projectClient.Agents.CreateAgentVersionAsync(
+ agentName: "myAgent",
+ options: new(agentDefinition)
+);
+```
+
+To associate the Response with the Agent the agent reference needs to be created. It is done by calling `GetProjectResponsesClientForAgent` method.
+
+```C# Snippet:CreateResponseBasic_Async
+var agentReference = new AgentReference(name: agentVersion.Name);
+ProjectResponsesClient responseClient = openaiClient.GetProjectResponsesClientForAgent(agentReference);
+ResponseCreationOptions responseCreationOptions = new();
+OpenAIResponse response = await responseClient.CreateResponseAsync(
+ [ResponseItem.CreateUserMessageItem("Write Maxwell's equation in LaTeX format.")],
+ responseCreationOptions);
+Console.WriteLine(response.GetOutputText());
+```
+
+Previous Response ID may be used to ask follow up questions. In this case we need to set `PreviousResponseId` property on `ResponseCreationOptions` object.
+
+```C# Snippet:FollowUp_Basic_Async
+responseCreationOptions.PreviousResponseId = response.Id;
+response = await responseClient.CreateResponseAsync(
+ [ResponseItem.CreateUserMessageItem("What was the previous question?")],
+ responseCreationOptions);
+Console.WriteLine(response.GetOutputText());
+```
+
+Finally, we can delete Agent.
+
+```C# Snippet:CleanUp_Basic_Async
+await projectClient.Agents.DeleteAgentAsync(agentName: "myAgent");
+```
+
+Previously created responses can also be listed, typically to find all responses associated with a particular agent or conversation.
+
+```C# Snippet:Sample_ListResponses_Async
+await foreach (OpenAIResponse response
+ in projectClient.OpenAI.Responses.GetProjectResponsesAsync(agent: new AgentReference(agentName), conversationId: conversationId))
+{
+ Console.WriteLine($"Matching response: {response.Id}");
+}
+```
+
+#### Conversations
+
+Conversations may be used to store the history of interaction with the agent. To add the responses to a conversation,
+set the conversation parameter while calling `GetProjectResponsesClientForAgent`.
+
+```C# Snippet:ConversationClient
+ResponseCreationOptions responseCreationOptions = new();
+// Optionally, use a conversation to automatically maintain state between calls.
+ProjectConversation conversation = await projectClient.OpenAI.Conversations.CreateProjectConversationAsync();
+ProjectResponsesClient responseClient = projectClient.OpenAI.GetProjectResponsesClientForAgent(AGENT_NAME, conversation);
+```
+
+Conversations may be deleted to clean up the resources.
+
+```C# Snippet:DeleteConversationClient
+await openAIClient.GetConversationClient().DeleteConversationAsync(conversation.Id);
+```
+
+The conversation may be used to communicate messages to the agent.
+
+```C# Snippet:ExistingConversations
+ProjectConversationCreationOptions conversationOptions = new()
+{
+ Items = { ResponseItem.CreateSystemMessageItem("Your preferred genre of story today is: horror.") },
+ Metadata = { ["foo"] = "bar" },
+};
+ProjectConversation conversation = await projectClient.OpenAI.Conversations.CreateProjectConversationAsync(conversationOptions);
+
+//
+// Add items to an existing conversation to supplement the interaction state
+//
+string EXISTING_CONVERSATION_ID = conversation.Id;
+
+_ = await projectClient.OpenAI.Conversations.CreateProjectConversationItemsAsync(
+ EXISTING_CONVERSATION_ID,
+ [ResponseItem.CreateSystemMessageItem(inputTextContent: "Story theme to use: department of licensing.")]);
+//
+// Use the agent and conversation in a response
+//
+ProjectResponsesClient responseClient = projectClient.OpenAI.GetProjectResponsesClientForAgent(AGENT_NAME);
+ResponseCreationOptions responseCreationOptions = new()
+{
+ AgentConversationId = EXISTING_CONVERSATION_ID,
+};
+
+List items = [ResponseItem.CreateUserMessageItem("Tell me a one-line story.")];
+OpenAIResponse response = await responseClient.CreateResponseAsync(items, responseCreationOptions);
+```
+
+### Container App
+
+[Azure Container App](https://learn.microsoft.com/azure/container-apps/ai-integration) may act as an agent if it implements the OpenAI-like protocol. Azure.AI.Projects.OpenAI allow you to interact with these applications as with regular agents. The main difference is that in this case agent needs to be created with `ContainerAppAgentDefinition`. This agent can be used in responses API as a regular agent.
+
+```C# Snippet:Sample_CreateContainerApp_ContainerApp_Async
+AgentVersion containerAgentVersion = await projectClient.Agents.CreateAgentVersionAsync(
+ agentName: "containerAgent",
+ options: new(new ContainerApplicationAgentDefinition(
+ containerProtocolVersions: [new ProtocolVersionRecord(protocol: AgentCommunicationMethod.Responses, version: "1")],
+ containerAppResourceId: containerAppResourceId,
+ ingressSubdomainSuffix: ingressSubdomainSuffix)));
+```
+
+### File search
+
+If Agents are provided with `FileSearchTool`, they can give the responses based on the information from the uploaded file(s).
+Here are the steps needed to implement the file search. Upload the file:
+
+```C# Snippet:Sample_UploadFile_FileSearch_Async
+string filePath = "sample_file_for_upload.txt";
+File.WriteAllText(
+ path: filePath,
+ contents: "The word 'apple' uses the code 442345, while the word 'banana' uses the code 673457.");
+OpenAIFileClient fileClient = projectClient.OpenAI.GetOpenAIFileClient();
+OpenAIFile uploadedFile = await fileClient.UploadFileAsync(filePath: filePath, purpose: FileUploadPurpose.Assistants);
+File.Delete(filePath);
+```
+
+Add it to `VectorStore`:
+
+```C# Snippet:Sample_CreateVectorStore_FileSearch_Async
+VectorStoreClient vctStoreClient = projectClient.OpenAI.GetVectorStoreClient();
+VectorStoreCreationOptions options = new()
+{
+ Name = "MySampleStore",
+ FileIds = { uploadedFile.Id }
+};
+VectorStore vectorStore = await vctStoreClient.CreateVectorStoreAsync(options);
+```
+
+Finally, create the tool, aware of the vector store and add it to the Agent.
+
+```C# Snippet:Sample_CreateAgent_FileSearch_Async
+PromptAgentDefinition agentDefinition = new(model: modelDeploymentName)
+{
+ Instructions = "You are a helpful agent that can help fetch data from files you know about.",
+ Tools = { ResponseTool.CreateFileSearchTool(vectorStoreIds: [vectorStore.Id]), }
+};
+AgentVersion agentVersion = await projectClient.Agents.CreateAgentVersionAsync(
+ agentName: "myAgent",
+ options: new(agentDefinition));
+```
+
+### Code interpreter
+
+The `CodeInterpreterTool` allows Agents to run the code in the container. Here are the steps needed to run Code interpreter.
+Create an Agent:
+
+```C# Snippet:Sample_CreateAgent_CodeInterpreter_Async
+PromptAgentDefinition agentDefinition = new(model: modelDeploymentName)
+{
+ Instructions = "You are a personal math tutor. When asked a math question, write and run code using the python tool to answer the question.",
+ Tools = {
+ ResponseTool.CreateCodeInterpreterTool(
+ new CodeInterpreterToolContainer(
+ CodeInterpreterToolContainerConfiguration.CreateAutomaticContainerConfiguration([])
+ )
+ ),
+ }
+};
+AgentVersion agentVersion = await projectClient.Agents.CreateAgentVersionAsync(
+ agentName: "myAgent",
+ options: new(agentDefinition));
+```
+
+Now we can ask the agent a question, which requires running python code in the container.
+
+```C# Snippet:Sample_CreateResponse_CodeInterpreter_Async
+AgentReference agentReference = new(name: agentVersion.Name, version: agentVersion.Version);
+ProjectResponsesClient responseClient = projectClient.OpenAI.GetProjectResponsesClientForAgent(agentReference);
+
+OpenAIResponse response = await responseClient.CreateResponseAsync("I need to solve the equation sin(x) + x^2 = 42");
+```
+
+### Computer use
+
+`ComputerTool` allows Agents to assist customer in computer related tasks. Its constructor is provided with description of an operation system and screen resolution.
+
+```C# Snippet:Sample_CreateAgent_ComputerUse_Async
+PromptAgentDefinition agentDefinition = new(model: modelDeploymentName)
+{
+ Instructions = "You are a computer automation assistant.\n\n" +
+ "Be direct and efficient. When you reach the search results page, read and describe the actual search result titles and descriptions you can see.",
+ Tools = {
+ ResponseTool.CreateComputerTool(
+ environment: new ComputerToolEnvironment("windows"),
+ displayWidth: 1026,
+ displayHeight: 769
+ ),
+ }
+};
+AgentVersion agentVersion = await projectClient.Agents.CreateAgentVersionAsync(
+ agentName: "myAgent",
+ options: new(agentDefinition)
+);
+```
+
+Users can create a message to the Agent, which contains text and screenshots.
+
+```C# Snippet:Sample_CreateResponse_ComputerUse_Async
+ProjectResponsesClient responseClient = projectClient.OpenAI.GetProjectResponsesClientForAgent(agentVersion.Name);
+ResponseCreationOptions responseOptions = new();
+responseOptions.TruncationMode = ResponseTruncationMode.Auto;
+ResponseItem request = ResponseItem.CreateUserMessageItem(
+ [
+ ResponseContentPart.CreateInputTextPart("I need you to help me search for 'OpenAI news'. Please type 'OpenAI news' and submit the search. Once you see search results, the task is complete."),
+ ResponseContentPart.CreateInputImagePart(imageBytes: screenshots["browser_search"], imageBytesMediaType: "image/png", imageDetailLevel: ResponseImageDetailLevel.High)
+ ]
+);
+List inputItems = [request];
+bool computerUseCalled = false;
+string currentScreenshot = "browser_search";
+int limitIteration = 10;
+OpenAIResponse response;
+do
+{
+ response = await CreateResponseAsync(
+ responseClient,
+ inputItems,
+ responseOptions
+ );
+ computerUseCalled = false;
+ responseOptions.PreviousResponseId = response.Id;
+ inputItems.Clear();
+ foreach (ResponseItem responseItem in response.OutputItems)
+ {
+ inputItems.Add(responseItem);
+ if (responseItem is ComputerCallResponseItem computerCall)
+ {
+ currentScreenshot = ProcessComputerUseCall(computerCall, currentScreenshot);
+ inputItems.Add(ResponseItem.CreateComputerCallOutputItem(callId: computerCall.CallId, output: ComputerCallOutput.CreateScreenshotOutput(screenshotImageBytes: screenshots[currentScreenshot], screenshotImageBytesMediaType: "image/png")));
+ computerUseCalled = true;
+ }
+ }
+ limitIteration--;
+} while (computerUseCalled && limitIteration > 0);
+Console.WriteLine(response.GetOutputText());
+```
+
+The Agent in turn can analyze it, and return actions, user need to do, then user sends another screenshot with the actions result. This continues until the task is complete. In our example we have created a simple method, which analyzes Agent's actions and returns the appropriate screenshot name.
+
+```C# Snippet:Sample_ProcessComputerUseCall_ComputerUse
+private static string ProcessComputerUseCall(ComputerCallResponseItem item, string oldScreenshot)
+{
+ string currentScreenshot = "browser_search";
+ switch (item.Action.Kind)
+ {
+ case ComputerCallActionKind.Type:
+ Console.WriteLine($" Typing text \"{item.Action.TypeText}\" - Simulating keyboard input");
+ currentScreenshot = "search_typed";
+ break;
+ case ComputerCallActionKind.KeyPress:
+ HashSet codes = [.. item.Action.KeyPressKeyCodes];
+ if (codes.Contains("Return") || codes.Contains("ENTER"))
+ {
+ // If we have typed the value to the search field, go to search results.
+ if (string.Equals(oldScreenshot, "search_typed"))
+ {
+ Console.WriteLine(" -> Detected ENTER key press, when search field was populated, displaying results.");
+ currentScreenshot = "search_results";
+ }
+ else
+ {
+ Console.WriteLine(" -> Detected ENTER key press, on results or unpopulated search, do nothing.");
+ currentScreenshot = oldScreenshot;
+ }
+ }
+ else
+ {
+ Console.WriteLine($" Key press: {item.Action.KeyPressKeyCodes.Aggregate("", (agg, next) => agg + "+" + next)} - Simulating key combination");
+ }
+ break;
+ case ComputerCallActionKind.Click:
+ Console.WriteLine($" Click at ({item.Action.ClickCoordinates.Value.X}, {item.Action.ClickCoordinates.Value.Y}) - Simulating click on UI element");
+ if (string.Equals(oldScreenshot, "search_typed"))
+ {
+ Console.WriteLine(" -> Assuming click on Search button when search field was populated, displaying results.");
+ currentScreenshot = "search_results";
+ }
+ else
+ {
+ Console.WriteLine(" -> Assuming click on Search on results or when search was not populated, do nothing.");
+ currentScreenshot = oldScreenshot;
+ }
+ break;
+ case ComputerCallActionKind.Drag:
+ string pathStr = item.Action.DragPath.ToArray().Select(p => $"{p.X}, {p.Y}").Aggregate("", (agg, next) => $"{agg} -> {next}");
+ Console.WriteLine($" Drag path: {pathStr} - Simulating drag operation");
+ break;
+ case ComputerCallActionKind.Scroll:
+ Console.WriteLine($" Scroll at ({item.Action.ScrollCoordinates.Value.X}, {item.Action.ScrollCoordinates.Value.Y}) - Simulating scroll action");
+ break;
+ case ComputerCallActionKind.Screenshot:
+ Console.WriteLine(" Taking screenshot - Capturing current screen state");
+ break;
+ default:
+ break;
+ }
+ Console.WriteLine($" -> Action processed: {item.Action.Kind}");
+
+ return currentScreenshot;
+}
+```
+
+### Function call.
+
+To supply Agents with the information from running local functions the `FunctionTool` is used.
+In our example we define three toy functions: `GetUserFavoriteCity` that always returns "Seattle, WA" and `GetCityNickname`, which will handle only "Seattle, WA" and will throw exception in response to other city names. The last function `GetWeatherAtLocation` returns the weather in Seattle, WA.
+
+```C# Snippet:Sample_Functions_Function
+/// Example of a function that defines no parameters
+/// returns user favorite city.
+private static string GetUserFavoriteCity() => "Seattle, WA";
+
+///
+/// Example of a function with a single required parameter
+///
+/// The location to get nickname for.
+/// The city nickname.
+///
+private static string GetCityNickname(string location) => location switch
+{
+ "Seattle, WA" => "The Emerald City",
+ _ => throw new NotImplementedException(),
+};
+
+///
+/// Example of a function with one required and one optional, enum parameter
+///
+/// Get weather for location.
+/// "c" or "f"
+/// The weather in selected location.
+///
+public static string GetWeatherAtLocation(string location, string temperatureUnit = "f") => location switch
+{
+ "Seattle, WA" => temperatureUnit == "f" ? "70f" : "21c",
+ _ => throw new NotImplementedException()
+};
+```
+
+For each function we need to create `FunctionTool`, which defines function name, description and parameters.
+
+```C# Snippet:Sample_FunctionTools_Function
+public static readonly FunctionTool getUserFavoriteCityTool = ResponseTool.CreateFunctionTool(
+ functionName: "getUserFavoriteCity",
+ functionDescription: "Gets the user's favorite city.",
+ functionParameters: BinaryData.FromString("{}"),
+ strictModeEnabled: false
+);
+
+public static readonly FunctionTool getCityNicknameTool = ResponseTool.CreateFunctionTool(
+ functionName: "getCityNickname",
+ functionDescription: "Gets the nickname of a city, e.g. 'LA' for 'Los Angeles, CA'.",
+ functionParameters: BinaryData.FromObjectAsJson(
+ new
+ {
+ Type = "object",
+ Properties = new
+ {
+ Location = new
+ {
+ Type = "string",
+ Description = "The city and state, e.g. San Francisco, CA",
+ },
+ },
+ Required = new[] { "location" },
+ },
+ new JsonSerializerOptions() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }
+ ),
+ strictModeEnabled: false
+);
+
+private static readonly FunctionTool getCurrentWeatherAtLocationTool = ResponseTool.CreateFunctionTool(
+ functionName: "getCurrentWeatherAtLocation",
+ functionDescription: "Gets the current weather at a provided location.",
+ functionParameters: BinaryData.FromObjectAsJson(
+ new
+ {
+ Type = "object",
+ Properties = new
+ {
+ Location = new
+ {
+ Type = "string",
+ Description = "The city and state, e.g. San Francisco, CA",
+ },
+ Unit = new
+ {
+ Type = "string",
+ Enum = new[] { "c", "f" },
+ },
+ },
+ Required = new[] { "location" },
+ },
+ new JsonSerializerOptions() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }
+ ),
+ strictModeEnabled: false
+);
+```
+
+We have created the method `GetResolvedToolOutput`. It runs the abovementioned functions and wraps their outputs into `ResponseItem` object.
+
+```C# Snippet:Sample_Resolver_Function
+private static FunctionCallOutputResponseItem GetResolvedToolOutput(FunctionCallResponseItem item)
+{
+ if (item.FunctionName == getUserFavoriteCityTool.FunctionName)
+ {
+ return ResponseItem.CreateFunctionCallOutputItem(item.CallId, GetUserFavoriteCity());
+ }
+ using JsonDocument argumentsJson = JsonDocument.Parse(item.FunctionArguments);
+ if (item.FunctionName == getCityNicknameTool.FunctionName)
+ {
+ string locationArgument = argumentsJson.RootElement.GetProperty("location").GetString();
+ return ResponseItem.CreateFunctionCallOutputItem(item.CallId, GetCityNickname(locationArgument));
+ }
+ if (item.FunctionName == getCurrentWeatherAtLocationTool.FunctionName)
+ {
+ string locationArgument = argumentsJson.RootElement.GetProperty("location").GetString();
+ if (argumentsJson.RootElement.TryGetProperty("unit", out JsonElement unitElement))
+ {
+ string unitArgument = unitElement.GetString();
+ return ResponseItem.CreateFunctionCallOutputItem(item.CallId, GetWeatherAtLocation(locationArgument, unitArgument));
+ }
+ return ResponseItem.CreateFunctionCallOutputItem(item.CallId, GetWeatherAtLocation(locationArgument));
+ }
+ return null;
+}
+```
+
+Create Agent with the `FunctionTool`.
+
+```C# Snippet:Sample_CreateAgent_Function_Async
+PromptAgentDefinition agentDefinition = new(model: modelDeploymentName)
+{
+ Instructions = "You are a weather bot. Use the provided functions to help answer questions. "
+ + "Customize your responses to the user's preferences as much as possible and use friendly "
+ + "nicknames for cities whenever possible.",
+ Tools = { getUserFavoriteCityTool, getCityNicknameTool, getCurrentWeatherAtLocationTool }
+};
+AgentVersion agentVersion = await projectClient.Agents.CreateAgentVersionAsync(
+ agentName: "myAgent",
+ options: new(agentDefinition));
+```
+
+To supply functions outputs, we will need to obtain responses multiple times. We will define method `CreateAndWaitForResponseAsync` for brevity.
+
+```C# Snippet:Sample_CheckResponse_Function_Async
+public static async Task CreateAndCheckResponseAsync(OpenAIResponseClient responseClient, IEnumerable items)
+{
+ OpenAIResponse response = await responseClient.CreateResponseAsync(
+ inputItems: items);
+ Assert.That(response.Status, Is.EqualTo(ResponseStatus.Completed));
+ return response;
+}
+```
+
+If the local function call is required, the response item will be of `FunctionCallResponseItem` type and will contain the function name needed by the Agent. In this case we will use our helper method `GetResolvedToolOutput` to get the `FunctionCallOutputResponseItem` with function call result. To provide the right answer, we need to supply all the response items to `CreateResponse` or `CreateResponseAsync` call. At the end we will print out the function response.
+
+```C# Snippet:Sample_CreateResponse_Function_Async
+ProjectResponsesClient responseClient = projectClient.OpenAI.GetProjectResponsesClientForAgent(agentVersion.Name);
+
+ResponseItem request = ResponseItem.CreateUserMessageItem("What's the weather like in my favorite city?");
+List inputItems = [request];
+bool funcionCalled = false;
+OpenAIResponse response;
+do
+{
+ response = await CreateAndCheckResponseAsync(
+ responseClient,
+ inputItems);
+ funcionCalled = false;
+ foreach (ResponseItem responseItem in response.OutputItems)
+ {
+ inputItems.Add(responseItem);
+ if (responseItem is FunctionCallResponseItem functionToolCall)
+ {
+ Console.WriteLine($"Calling {functionToolCall.FunctionName}...");
+ inputItems.Add(GetResolvedToolOutput(functionToolCall));
+ funcionCalled = true;
+ }
+ }
+} while (funcionCalled);
+Console.WriteLine(response.GetOutputText());
+```
+
+### Web Search
+
+The `WebSearchTool` allows the agent to perform web search. To improve the results we can set up the search location. After the agent was created, it can be used as usual. When needed it will use web search to answer the question.
+
+```C# Snippet:Sample_CreateAgent_WebSearch_Async
+PromptAgentDefinition agentDefinition = new(model: modelDeploymentName)
+{
+ Instructions = "You are a helpful assistant that can search the web",
+ Tools = { ResponseTool.CreateWebSearchTool(userLocation: WebSearchToolLocation.CreateApproximateLocation(country: "GB", city: "London", region: "London")), }
+};
+AgentVersion agentVersion = await projectClient.Agents.CreateAgentVersionAsync(
+ agentName: "myAgent",
+ options: new(agentDefinition));
+```
+
+## Tracing
+**Note:** The tracing functionality is currently in preview with limited scope. Only agent creation operations generate dedicated gen_ai traces currently. As a preview feature, the trace structure including spans, attributes, and events may change in future releases.
+
+You can add an Application Insights Azure resource to your Azure AI Foundry project. See the Tracing tab in your AI Foundry project. If one was enabled, you use the Application Insights connection string, configure your Agents, and observe the full execution path through Azure Monitor. Typically, you might want to start tracing before you create an Agent.
+
+Tracing requires enabling OpenTelemetry support. One way to do this is to set the `AZURE_EXPERIMENTAL_ENABLE_ACTIVITY_SOURCE` environment variable value to `true`. You can also enable the feature with the following code:
+```C# Snippet:EnableActivitySourceToGetAgentTraces
+AppContext.SetSwitch("Azure.Experimental.EnableActivitySource", true);
+```
+
+To enabled content recording, set the `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT` environment variable to `true`. Content in this context refers to chat message content, function call tool related function names, function parameter names and values. Alternatively, you can control content recording with the following code:
+```C# Snippet:DisableContentRecordingForAgentTraces
+AppContext.SetSwitch("Azure.Experimental.TraceGenAIMessageContent", false);
+```
+Set the value to `true` to enable content recording.
+
+### Tracing to Azure Monitor
+First, set the `APPLICATIONINSIGHTS_CONNECTION_STRING` environment variable to point to your Azure Monitor resource. You can also retrieve the connection string programmatically using the Azure AI Projects client library (Azure.AI.Projects) by calling the `Telemetry.GetApplicationInsightsConnectionString()` method on the `AIProjectClient` class.
+
+For tracing to Azure Monitor from your application, the preferred option is to use Azure.Monitor.OpenTelemetry.AspNetCore. Install the package with [NuGet](https://www.nuget.org/ ):
+```shell
+dotnet add package Azure.Monitor.OpenTelemetry.AspNetCore
+```
+
+More information about using the Azure.Monitor.OpenTelemetry.AspNetCore package can be found [here](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/README.md ).
+
+Another option is to use Azure.Monitor.OpenTelemetry.Exporter package. Install the package with [NuGet](https://www.nuget.org/ )
+```shell
+dotnet add package Azure.Monitor.OpenTelemetry.Exporter
+```
+
+Here is an example how to set up tracing to Azure monitor using Azure.Monitor.OpenTelemetry.Exporter:
+```C# Snippet:AgentTelemetrySetupTracingToAzureMonitor
+var tracerProvider = Sdk.CreateTracerProviderBuilder()
+ .AddSource("Azure.AI.Projects.Persistent.*")
+ .SetResourceBuilder(ResourceBuilder.CreateDefault().AddService("AgentTracingSample"))
+ .AddAzureMonitorTraceExporter().Build();
+```
+
+### Tracing to Console
+
+For tracing to console from your application, install the OpenTelemetry.Exporter.Console with [NuGet](https://www.nuget.org/ ):
+
+```shell
+dotnet add package OpenTelemetry.Exporter.Console
+```
+
+
+Here is an example how to set up tracing to console:
+```C# Snippet:AgentTelemetrySetupTracingToConsole
+var tracerProvider = Sdk.CreateTracerProviderBuilder()
+ .AddSource("Azure.AI.Projects.Persistent.*") // Add the required sources name
+ .SetResourceBuilder(OpenTelemetry.Resources.ResourceBuilder.CreateDefault().AddService("AgentTracingSample"))
+ .AddConsoleExporter() // Export traces to the console
+ .Build();
+```
+
+## Troubleshooting
+
+Any operation that fails will throw a [ClientResultException][ClientResultException]. The exception's `Status` will hold the HTTP response status code. The exception's `Message` contains a detailed message that may be helpful in diagnosing the issue:
+
+```C# Snippet:ErrorHandling
+try
+{
+ AgentVersion agent = await projectClient.Agents.GetAgentVersionAsync(
+ agentName: "agent_which_dies_not_exist", agentVersion: "1");
+}
+catch (ClientResultException e) when (e.Status == 404)
+{
+ Console.WriteLine($"Exception status code: {e.Status}");
+ Console.WriteLine($"Exception message: {e.Message}");
+}
+```
+
+To further diagnose and troubleshoot issues, you can enable logging following the [Azure SDK logging documentation](https://learn.microsoft.com/dotnet/azure/sdk/logging). This allows you to capture additional insights into request and response details, which can be particularly helpful when diagnosing complex issues.
+
+## Next steps
+
+Beyond the introductory scenarios discussed, the AI Agents client library offers support for additional scenarios to help take advantage of the full feature set of the AI services. To help explore some of these scenarios, the AI Agents client library offers a set of samples to serve as an illustration for common scenarios. Please see the [Samples](https://github.com/Azure/azure-sdk-for-net/tree/feature/ai-foundry/agents-v2/sdk/ai/Azure.AI.Projects.OpenAI/samples)
+
+## Contributing
+
+See the [Azure SDK CONTRIBUTING.md][aiprojects_contrib] for details on building, testing, and contributing to this library.
+
+
+[style-guide-msft]: https://docs.microsoft.com/style-guide/capitalization
+[style-guide-cloud]: https://aka.ms/azsdk/cloud-style-guide
+
+
+
+
+[ClientResultException]: https://learn.microsoft.com/dotnet/api/system.clientmodel.clientresultexception
+
+[samples]: https://github.com/Azure/azure-sdk-for-net/tree/feature/ai-foundry/agents-v2/sdk/ai/Azure.AI.Projects.OpenAI/samples
+
+[api_ref_docs]: https://learn.microsoft.com/dotnet/api/overview/azure/ai.agents.persistent-readme
+
+[nuget]: https://dev.azure.com/azure-sdk/public/_artifacts/feed/azure-sdk-for-net/NuGet/Azure.AI.Projects.OpenAI
+
+[source_code]: https://github.com/Azure/azure-sdk-for-net/tree/feature/ai-foundry/agents-v2/sdk/ai/Azure.AI.Projects.OpenAI
+[product_doc]: https://learn.microsoft.com/azure/ai-studio/
+[azure_identity]: https://learn.microsoft.com/dotnet/api/overview/azure/identity-readme?view=azure-dotnet
+[azure_identity_dac]: https://learn.microsoft.com/dotnet/api/azure.identity.defaultazurecredential?view=azure-dotnet
+[aiprojects_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md
+[cla]: https://cla.microsoft.com
+[code_of_conduct]: https://opensource.microsoft.com/codeofconduct/
+[code_of_conduct_faq]: https://opensource.microsoft.com/codeofconduct/faq/
+[email_opencode]: mailto:opencode@microsoft.com
diff --git a/sdk/ai/Azure.AI.Projects.OpenAI/_tsp-location.yaml b/sdk/ai/Azure.AI.Projects.OpenAI/_tsp-location.yaml
new file mode 100644
index 000000000000..abade503b4d9
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.OpenAI/_tsp-location.yaml
@@ -0,0 +1,7 @@
+directory: specification/ai/Azure.AI.Projects.OpenAI
+additionalDirectories:
+ - specification/ai/Azure.AI.Projects
+commit: 36a958797ca18009a2008990674e71b0faf12def
+repo: Azure/azure-rest-api-specs-pr
+emitterPackageJsonPath: eng/http-client-csharp-emitter-package.json
+entrypointFile: client.csharp.tsp
\ No newline at end of file
diff --git a/sdk/ai/Azure.AI.Projects.OpenAI/api/Azure.AI.Projects.OpenAI.net8.0.cs b/sdk/ai/Azure.AI.Projects.OpenAI/api/Azure.AI.Projects.OpenAI.net8.0.cs
new file mode 100644
index 000000000000..876ccbc3d7c3
--- /dev/null
+++ b/sdk/ai/Azure.AI.Projects.OpenAI/api/Azure.AI.Projects.OpenAI.net8.0.cs
@@ -0,0 +1,1432 @@
+namespace Azure.AI.Projects
+{
+ public static partial class ClientConnectionProviderExtensions
+ {
+ public static Azure.AI.Projects.OpenAI.ProjectOpenAIClient GetProjectOpenAIClient(this System.ClientModel.Primitives.ClientConnectionProvider connectionProvider, Azure.AI.Projects.OpenAI.ProjectOpenAIClientOptions options = null) { throw null; }
+ public sealed partial class <>E__0
+ {
+ internal <>E__0() { }
+ public Azure.AI.Projects.OpenAI.ProjectOpenAIClient GetProjectOpenAIClient(Azure.AI.Projects.OpenAI.ProjectOpenAIClientOptions options = null) { throw null; }
+ }
+ }
+}
+namespace Azure.AI.Projects.OpenAI
+{
+ public partial class A2ATool : Azure.AI.Projects.OpenAI.AgentTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public A2ATool(System.Uri baseUri) { }
+ public string AgentCardPath { get { throw null; } set { } }
+ public System.Uri BaseUri { get { throw null; } set { } }
+ public string ProjectConnectionId { get { throw null; } set { } }
+ protected override Azure.AI.Projects.OpenAI.AgentTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected override Azure.AI.Projects.OpenAI.AgentTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.A2ATool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.A2ATool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct AgentCommunicationMethod : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public AgentCommunicationMethod(string value) { throw null; }
+ public static Azure.AI.Projects.OpenAI.AgentCommunicationMethod ActivityProtocol { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentCommunicationMethod Responses { get { throw null; } }
+ public bool Equals(Azure.AI.Projects.OpenAI.AgentCommunicationMethod other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.AI.Projects.OpenAI.AgentCommunicationMethod left, Azure.AI.Projects.OpenAI.AgentCommunicationMethod right) { throw null; }
+ public static implicit operator Azure.AI.Projects.OpenAI.AgentCommunicationMethod (string value) { throw null; }
+ public static implicit operator Azure.AI.Projects.OpenAI.AgentCommunicationMethod? (string value) { throw null; }
+ public static bool operator !=(Azure.AI.Projects.OpenAI.AgentCommunicationMethod left, Azure.AI.Projects.OpenAI.AgentCommunicationMethod right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public abstract partial class AgentDefinition : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal AgentDefinition() { }
+ public Azure.AI.Projects.OpenAI.ContentFilterConfiguration ContentFilterConfiguration { get { throw null; } set { } }
+ public static Azure.AI.Projects.OpenAI.ContainerApplicationAgentDefinition CreateContainerApplicationAgentDefinition(System.Collections.Generic.IEnumerable containerProtocolVersions, string containerAppResourceId, string ingressSubdomainSuffix) { throw null; }
+ public static Azure.AI.Projects.OpenAI.HostedAgentDefinition CreateHostedAgentDefinition(System.Collections.Generic.IEnumerable containerProtocolVersions, string cpuConfiguration, string memoryConfiguration) { throw null; }
+ public static Azure.AI.Projects.OpenAI.PromptAgentDefinition CreatePromptAgentDefinition(string model) { throw null; }
+ public static Azure.AI.Projects.OpenAI.WorkflowAgentDefinition CreateWorkflowAgentDefinitionFromYaml(string workflowYamlDocument) { throw null; }
+ protected virtual Azure.AI.Projects.OpenAI.AgentDefinition JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Projects.OpenAI.AgentDefinition PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.AgentDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.AgentDefinition System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class AgentInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal AgentInfo() { }
+ public string Name { get { throw null; } }
+ public string Type { get { throw null; } }
+ public string Version { get { throw null; } }
+ protected virtual Azure.AI.Projects.OpenAI.AgentInfo JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Projects.OpenAI.AgentInfo PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.AgentInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.AgentInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class AgentObjectVersions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal AgentObjectVersions() { }
+ public Azure.AI.Projects.OpenAI.AgentVersion Latest { get { throw null; } }
+ protected virtual Azure.AI.Projects.OpenAI.AgentObjectVersions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Projects.OpenAI.AgentObjectVersions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.AgentObjectVersions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.AgentObjectVersions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class AgentRecord : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal AgentRecord() { }
+ public string Id { get { throw null; } }
+ public string Name { get { throw null; } }
+ public Azure.AI.Projects.OpenAI.AgentObjectVersions Versions { get { throw null; } }
+ protected virtual Azure.AI.Projects.OpenAI.AgentRecord JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Projects.OpenAI.AgentRecord PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.AgentRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.AgentRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class AgentReference : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public AgentReference(string name, string version = null) { }
+ public string Name { get { throw null; } }
+ public string Version { get { throw null; } }
+ protected virtual Azure.AI.Projects.OpenAI.AgentReference JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ public static implicit operator Azure.AI.Projects.OpenAI.AgentReference (Azure.AI.Projects.OpenAI.AgentRecord agentRecord) { throw null; }
+ public static implicit operator Azure.AI.Projects.OpenAI.AgentReference (Azure.AI.Projects.OpenAI.AgentVersion agentVersion) { throw null; }
+ public static implicit operator Azure.AI.Projects.OpenAI.AgentReference (string agentName) { throw null; }
+ protected virtual Azure.AI.Projects.OpenAI.AgentReference PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.AgentReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.AgentReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public abstract partial class AgentResponseItem : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal AgentResponseItem() { }
+ public Azure.AI.Projects.OpenAI.AgentResponseItemSource CreatedBy { get { throw null; } }
+ public virtual string Id { get { throw null; } }
+ public OpenAI.Responses.ResponseItem AsOpenAIResponseItem() { throw null; }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItem CreateStructuredOutputsItem(System.BinaryData output = null) { throw null; }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItem CreateWorkflowActionItem(string actionKind, string actionId) { throw null; }
+ protected virtual Azure.AI.Projects.OpenAI.AgentResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ public static implicit operator OpenAI.Responses.ResponseItem (Azure.AI.Projects.OpenAI.AgentResponseItem agentResponseItem) { throw null; }
+ public static implicit operator Azure.AI.Projects.OpenAI.AgentResponseItem (OpenAI.Responses.ResponseItem responseItem) { throw null; }
+ protected virtual Azure.AI.Projects.OpenAI.AgentResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.AgentResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.AgentResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct AgentResponseItemKind : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public AgentResponseItemKind(string value) { throw null; }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind CodeInterpreterCall { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind ComputerCall { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind ComputerCallOutput { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind FileSearchCall { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind FunctionCall { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind FunctionCallOutput { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind ImageGenerationCall { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind ItemReference { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind LocalShellCall { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind LocalShellCallOutput { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind McpApprovalRequest { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind McpApprovalResponse { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind McpCall { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind McpListTools { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind MemorySearchCall { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind Message { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind OauthConsentRequest { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind Reasoning { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind StructuredOutputs { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind WebSearchCall { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentResponseItemKind WorkflowAction { get { throw null; } }
+ public bool Equals(Azure.AI.Projects.OpenAI.AgentResponseItemKind other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.AI.Projects.OpenAI.AgentResponseItemKind left, Azure.AI.Projects.OpenAI.AgentResponseItemKind right) { throw null; }
+ public static implicit operator Azure.AI.Projects.OpenAI.AgentResponseItemKind (string value) { throw null; }
+ public static implicit operator Azure.AI.Projects.OpenAI.AgentResponseItemKind? (string value) { throw null; }
+ public static bool operator !=(Azure.AI.Projects.OpenAI.AgentResponseItemKind left, Azure.AI.Projects.OpenAI.AgentResponseItemKind right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class AgentResponseItemSource : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal AgentResponseItemSource() { }
+ public Azure.AI.Projects.OpenAI.AgentInfo Agent { get { throw null; } }
+ public string ResponseId { get { throw null; } }
+ protected virtual Azure.AI.Projects.OpenAI.AgentResponseItemSource JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Projects.OpenAI.AgentResponseItemSource PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.AgentResponseItemSource System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.AgentResponseItemSource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class AgentStructuredOutputsResponseItem : Azure.AI.Projects.OpenAI.AgentResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public AgentStructuredOutputsResponseItem(System.BinaryData output) { }
+ public System.BinaryData Output { get { throw null; } }
+ protected override Azure.AI.Projects.OpenAI.AgentResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected override Azure.AI.Projects.OpenAI.AgentResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.AgentStructuredOutputsResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.AgentStructuredOutputsResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public abstract partial class AgentTool : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal AgentTool() { }
+ public static OpenAI.Responses.ResponseTool CreateA2ATool(System.Uri baseUri, string agentCardPath = null) { throw null; }
+ public static Azure.AI.Projects.OpenAI.AzureAISearchAgentTool CreateAzureAISearchTool(Azure.AI.Projects.OpenAI.AzureAISearchToolOptions options = null) { throw null; }
+ public static Azure.AI.Projects.OpenAI.BingCustomSearchAgentTool CreateBingCustomSearchTool(Azure.AI.Projects.OpenAI.BingCustomSearchToolParameters parameters) { throw null; }
+ public static Azure.AI.Projects.OpenAI.BingGroundingAgentTool CreateBingGroundingTool(Azure.AI.Projects.OpenAI.BingGroundingSearchToolOptions options) { throw null; }
+ public static Azure.AI.Projects.OpenAI.BrowserAutomationAgentTool CreateBrowserAutomationTool(Azure.AI.Projects.OpenAI.BrowserAutomationToolParameters parameters) { throw null; }
+ public static Azure.AI.Projects.OpenAI.LocalShellAgentTool CreateLocalShellTool() { throw null; }
+ public static Azure.AI.Projects.OpenAI.MicrosoftFabricAgentTool CreateMicrosoftFabricTool(Azure.AI.Projects.OpenAI.FabricDataAgentToolOptions options) { throw null; }
+ public static Azure.AI.Projects.OpenAI.OpenAPIAgentTool CreateOpenApiTool(Azure.AI.Projects.OpenAI.OpenAPIFunctionDefinition definition) { throw null; }
+ public static Azure.AI.Projects.OpenAI.SharepointAgentTool CreateSharepointTool(Azure.AI.Projects.OpenAI.SharePointGroundingToolOptions options) { throw null; }
+ public static Azure.AI.Projects.OpenAI.CaptureStructuredOutputsTool CreateStructuredOutputsTool(Azure.AI.Projects.OpenAI.StructuredOutputDefinition outputs) { throw null; }
+ protected virtual Azure.AI.Projects.OpenAI.AgentTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ public static implicit operator OpenAI.Responses.ResponseTool (Azure.AI.Projects.OpenAI.AgentTool agentTool) { throw null; }
+ protected virtual Azure.AI.Projects.OpenAI.AgentTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.AgentTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.AgentTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class AgentVersion : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal AgentVersion() { }
+ public System.DateTimeOffset CreatedAt { get { throw null; } }
+ public Azure.AI.Projects.OpenAI.AgentDefinition Definition { get { throw null; } }
+ public string Description { get { throw null; } }
+ public string Id { get { throw null; } }
+ public System.Collections.Generic.IDictionary Metadata { get { throw null; } }
+ public string Name { get { throw null; } }
+ public string Version { get { throw null; } }
+ protected virtual Azure.AI.Projects.OpenAI.AgentVersion JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Projects.OpenAI.AgentVersion PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.AgentVersion System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.AgentVersion System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class AgentWorkflowActionResponseItem : Azure.AI.Projects.OpenAI.AgentResponseItem, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ internal AgentWorkflowActionResponseItem() { }
+ public string ActionId { get { throw null; } }
+ public string Kind { get { throw null; } }
+ public string ParentActionId { get { throw null; } }
+ public string PreviousActionId { get { throw null; } }
+ public Azure.AI.Projects.OpenAI.AgentWorkflowActionStatus? Status { get { throw null; } }
+ protected override Azure.AI.Projects.OpenAI.AgentResponseItem JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected override Azure.AI.Projects.OpenAI.AgentResponseItem PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.AgentWorkflowActionResponseItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.AgentWorkflowActionResponseItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct AgentWorkflowActionStatus : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public AgentWorkflowActionStatus(string value) { throw null; }
+ public static Azure.AI.Projects.OpenAI.AgentWorkflowActionStatus Cancelled { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentWorkflowActionStatus Completed { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentWorkflowActionStatus Failed { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AgentWorkflowActionStatus InProgress { get { throw null; } }
+ public bool Equals(Azure.AI.Projects.OpenAI.AgentWorkflowActionStatus other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.AI.Projects.OpenAI.AgentWorkflowActionStatus left, Azure.AI.Projects.OpenAI.AgentWorkflowActionStatus right) { throw null; }
+ public static implicit operator Azure.AI.Projects.OpenAI.AgentWorkflowActionStatus (string value) { throw null; }
+ public static implicit operator Azure.AI.Projects.OpenAI.AgentWorkflowActionStatus? (string value) { throw null; }
+ public static bool operator !=(Azure.AI.Projects.OpenAI.AgentWorkflowActionStatus left, Azure.AI.Projects.OpenAI.AgentWorkflowActionStatus right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public static partial class AzureAIAgentsModelFactory
+ {
+ }
+ public partial class AzureAIProjectsOpenAIContext : System.ClientModel.Primitives.ModelReaderWriterContext
+ {
+ internal AzureAIProjectsOpenAIContext() { }
+ public static Azure.AI.Projects.OpenAI.AzureAIProjectsOpenAIContext Default { get { throw null; } }
+ protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; }
+ }
+ public partial class AzureAISearchAgentTool : Azure.AI.Projects.OpenAI.AgentTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public AzureAISearchAgentTool(Azure.AI.Projects.OpenAI.AzureAISearchToolOptions options) { }
+ public Azure.AI.Projects.OpenAI.AzureAISearchToolOptions Options { get { throw null; } set { } }
+ protected override Azure.AI.Projects.OpenAI.AgentTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected override Azure.AI.Projects.OpenAI.AgentTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.AzureAISearchAgentTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.AzureAISearchAgentTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
+ public readonly partial struct AzureAISearchQueryType : System.IEquatable
+ {
+ private readonly object _dummy;
+ private readonly int _dummyPrimitive;
+ public AzureAISearchQueryType(string value) { throw null; }
+ public static Azure.AI.Projects.OpenAI.AzureAISearchQueryType Semantic { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AzureAISearchQueryType Simple { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AzureAISearchQueryType Vector { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AzureAISearchQueryType VectorSemanticHybrid { get { throw null; } }
+ public static Azure.AI.Projects.OpenAI.AzureAISearchQueryType VectorSimpleHybrid { get { throw null; } }
+ public bool Equals(Azure.AI.Projects.OpenAI.AzureAISearchQueryType other) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override bool Equals(object obj) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public override int GetHashCode() { throw null; }
+ public static bool operator ==(Azure.AI.Projects.OpenAI.AzureAISearchQueryType left, Azure.AI.Projects.OpenAI.AzureAISearchQueryType right) { throw null; }
+ public static implicit operator Azure.AI.Projects.OpenAI.AzureAISearchQueryType (string value) { throw null; }
+ public static implicit operator Azure.AI.Projects.OpenAI.AzureAISearchQueryType? (string value) { throw null; }
+ public static bool operator !=(Azure.AI.Projects.OpenAI.AzureAISearchQueryType left, Azure.AI.Projects.OpenAI.AzureAISearchQueryType right) { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public partial class AzureAISearchToolIndex : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public AzureAISearchToolIndex() { }
+ public string Filter { get { throw null; } set { } }
+ public string IndexAssetId { get { throw null; } set { } }
+ public string IndexName { get { throw null; } set { } }
+ public string ProjectConnectionId { get { throw null; } set { } }
+ public Azure.AI.Projects.OpenAI.AzureAISearchQueryType? QueryType { get { throw null; } set { } }
+ public int? TopK { get { throw null; } set { } }
+ protected virtual Azure.AI.Projects.OpenAI.AzureAISearchToolIndex JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Projects.OpenAI.AzureAISearchToolIndex PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.AzureAISearchToolIndex System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.AzureAISearchToolIndex System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class AzureAISearchToolOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public AzureAISearchToolOptions(System.Collections.Generic.IEnumerable indexes) { }
+ public System.Collections.Generic.IList Indexes { get { throw null; } }
+ protected virtual Azure.AI.Projects.OpenAI.AzureAISearchToolOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Projects.OpenAI.AzureAISearchToolOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.AzureAISearchToolOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.AzureAISearchToolOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class AzureFunctionAgentTool : Azure.AI.Projects.OpenAI.AgentTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public AzureFunctionAgentTool(Azure.AI.Projects.OpenAI.AzureFunctionDefinition azureFunction) { }
+ public Azure.AI.Projects.OpenAI.AzureFunctionDefinition AzureFunction { get { throw null; } set { } }
+ protected override Azure.AI.Projects.OpenAI.AgentTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected override Azure.AI.Projects.OpenAI.AgentTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.AzureFunctionAgentTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.AzureFunctionAgentTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class AzureFunctionBinding : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public AzureFunctionBinding(Azure.AI.Projects.OpenAI.AzureFunctionStorageQueue storageQueue) { }
+ public Azure.AI.Projects.OpenAI.AzureFunctionStorageQueue StorageQueue { get { throw null; } set { } }
+ public string Type { get { throw null; } }
+ protected virtual Azure.AI.Projects.OpenAI.AzureFunctionBinding JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Projects.OpenAI.AzureFunctionBinding PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.AzureFunctionBinding System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.AzureFunctionBinding System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class AzureFunctionDefinition : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public AzureFunctionDefinition(Azure.AI.Projects.OpenAI.AzureFunctionDefinitionFunction function, Azure.AI.Projects.OpenAI.AzureFunctionBinding inputBinding, Azure.AI.Projects.OpenAI.AzureFunctionBinding outputBinding) { }
+ public Azure.AI.Projects.OpenAI.AzureFunctionDefinitionFunction Function { get { throw null; } set { } }
+ public Azure.AI.Projects.OpenAI.AzureFunctionBinding InputBinding { get { throw null; } set { } }
+ public Azure.AI.Projects.OpenAI.AzureFunctionBinding OutputBinding { get { throw null; } set { } }
+ protected virtual Azure.AI.Projects.OpenAI.AzureFunctionDefinition JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Projects.OpenAI.AzureFunctionDefinition PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.AzureFunctionDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.AzureFunctionDefinition System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class AzureFunctionDefinitionFunction : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public AzureFunctionDefinitionFunction(string name, System.BinaryData parameters) { }
+ public string Description { get { throw null; } set { } }
+ public string Name { get { throw null; } set { } }
+ public System.BinaryData Parameters { get { throw null; } set { } }
+ protected virtual Azure.AI.Projects.OpenAI.AzureFunctionDefinitionFunction JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Projects.OpenAI.AzureFunctionDefinitionFunction PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.AzureFunctionDefinitionFunction System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.AzureFunctionDefinitionFunction System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class AzureFunctionStorageQueue : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public AzureFunctionStorageQueue(string queueServiceEndpoint, string queueName) { }
+ public string QueueName { get { throw null; } set { } }
+ public string QueueServiceEndpoint { get { throw null; } set { } }
+ protected virtual Azure.AI.Projects.OpenAI.AzureFunctionStorageQueue JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Projects.OpenAI.AzureFunctionStorageQueue PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.AzureFunctionStorageQueue System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.AzureFunctionStorageQueue System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class BingCustomSearchAgentTool : Azure.AI.Projects.OpenAI.AgentTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public BingCustomSearchAgentTool(Azure.AI.Projects.OpenAI.BingCustomSearchToolParameters bingCustomSearchPreview) { }
+ public Azure.AI.Projects.OpenAI.BingCustomSearchToolParameters BingCustomSearchPreview { get { throw null; } set { } }
+ protected override Azure.AI.Projects.OpenAI.AgentTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected override Azure.AI.Projects.OpenAI.AgentTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.BingCustomSearchAgentTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.BingCustomSearchAgentTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class BingCustomSearchConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public BingCustomSearchConfiguration(string projectConnectionId, string instanceName) { }
+ public long? Count { get { throw null; } set { } }
+ public string Freshness { get { throw null; } set { } }
+ public string InstanceName { get { throw null; } set { } }
+ public string Market { get { throw null; } set { } }
+ public string ProjectConnectionId { get { throw null; } set { } }
+ public string SetLang { get { throw null; } set { } }
+ protected virtual Azure.AI.Projects.OpenAI.BingCustomSearchConfiguration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Projects.OpenAI.BingCustomSearchConfiguration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.BingCustomSearchConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.BingCustomSearchConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class BingCustomSearchToolParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public BingCustomSearchToolParameters(System.Collections.Generic.IEnumerable searchConfigurations) { }
+ public System.Collections.Generic.IList SearchConfigurations { get { throw null; } }
+ protected virtual Azure.AI.Projects.OpenAI.BingCustomSearchToolParameters JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Projects.OpenAI.BingCustomSearchToolParameters PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.BingCustomSearchToolParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.BingCustomSearchToolParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class BingGroundingAgentTool : Azure.AI.Projects.OpenAI.AgentTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public BingGroundingAgentTool(Azure.AI.Projects.OpenAI.BingGroundingSearchToolOptions bingGrounding) { }
+ public Azure.AI.Projects.OpenAI.BingGroundingSearchToolOptions BingGrounding { get { throw null; } set { } }
+ protected override Azure.AI.Projects.OpenAI.AgentTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected override Azure.AI.Projects.OpenAI.AgentTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.BingGroundingAgentTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.BingGroundingAgentTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class BingGroundingSearchConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public BingGroundingSearchConfiguration(string projectConnectionId) { }
+ public long? Count { get { throw null; } set { } }
+ public string Freshness { get { throw null; } set { } }
+ public string Market { get { throw null; } set { } }
+ public string ProjectConnectionId { get { throw null; } set { } }
+ public string SetLang { get { throw null; } set { } }
+ protected virtual Azure.AI.Projects.OpenAI.BingGroundingSearchConfiguration JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Projects.OpenAI.BingGroundingSearchConfiguration PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.BingGroundingSearchConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.BingGroundingSearchConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class BingGroundingSearchToolOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public BingGroundingSearchToolOptions(System.Collections.Generic.IEnumerable searchConfigurations) { }
+ public System.Collections.Generic.IList SearchConfigurations { get { throw null; } }
+ protected virtual Azure.AI.Projects.OpenAI.BingGroundingSearchToolOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Projects.OpenAI.BingGroundingSearchToolOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.BingGroundingSearchToolOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.BingGroundingSearchToolOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class BrowserAutomationAgentTool : Azure.AI.Projects.OpenAI.AgentTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public BrowserAutomationAgentTool(Azure.AI.Projects.OpenAI.BrowserAutomationToolParameters browserAutomationPreview) { }
+ public Azure.AI.Projects.OpenAI.BrowserAutomationToolParameters BrowserAutomationPreview { get { throw null; } set { } }
+ protected override Azure.AI.Projects.OpenAI.AgentTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected override Azure.AI.Projects.OpenAI.AgentTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.BrowserAutomationAgentTool System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.BrowserAutomationAgentTool System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class BrowserAutomationToolConnectionParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public BrowserAutomationToolConnectionParameters(string projectConnectionId) { }
+ public string ProjectConnectionId { get { throw null; } set { } }
+ protected virtual Azure.AI.Projects.OpenAI.BrowserAutomationToolConnectionParameters JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Projects.OpenAI.BrowserAutomationToolConnectionParameters PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.BrowserAutomationToolConnectionParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.BrowserAutomationToolConnectionParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class BrowserAutomationToolParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public BrowserAutomationToolParameters(Azure.AI.Projects.OpenAI.BrowserAutomationToolConnectionParameters connection) { }
+ public Azure.AI.Projects.OpenAI.BrowserAutomationToolConnectionParameters Connection { get { throw null; } set { } }
+ protected virtual Azure.AI.Projects.OpenAI.BrowserAutomationToolParameters JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Projects.OpenAI.BrowserAutomationToolParameters PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.BrowserAutomationToolParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Projects.OpenAI.BrowserAutomationToolParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
+ public partial class CaptureStructuredOutputsTool : Azure.AI.Projects.OpenAI.AgentTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public CaptureStructuredOutputsTool(Azure.AI.Projects.OpenAI.StructuredOutputDefinition outputs) { }
+ public Azure.AI.Projects.OpenAI.StructuredOutputDefinition Outputs { get { throw null; } set { } }
+ protected override Azure.AI.Projects.OpenAI.AgentTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected override Azure.AI.Projects.OpenAI.AgentTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected override System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Projects.OpenAI.CaptureStructuredOutputsTool System.ClientModel.Primitives.IJsonModel