MicrosoftExtensionsAIResponsesExtensions.AsOpenAIResponseTool Method       
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an OpenAI ResponseTool from an AIFunctionDeclaration.
public:
[System::Runtime::CompilerServices::Extension]
 static OpenAI::Responses::FunctionTool ^ AsOpenAIResponseTool(Microsoft::Extensions::AI::AIFunctionDeclaration ^ function);
	public static OpenAI.Responses.FunctionTool AsOpenAIResponseTool(this Microsoft.Extensions.AI.AIFunctionDeclaration function);
	static member AsOpenAIResponseTool : Microsoft.Extensions.AI.AIFunctionDeclaration -> OpenAI.Responses.FunctionTool
	<Extension()>
Public Function AsOpenAIResponseTool (function As AIFunctionDeclaration) As FunctionTool
	Parameters
- function
 - AIFunctionDeclaration
 
The function to convert.
Returns
An OpenAI ResponseTool representing function.
Exceptions
function is null.