Class HostedToolChoice
Only for Responses API.
Indicates that the model should use a built-in tool to generate a response.
Learn more about built-in tools: https://platform.openai.com/docs/guides/tools
Allowed types (2025-09-21):
- file_search
- web_search_preview
- computer_use_preview
- code_interpreter
- image_generation
Inheritance
HostedToolChoice
Assembly: Glitch9.AIDevKit.dll
public class HostedToolChoice : ToolChoice
Constructors
|
Edit this page
View Source
Declaration
public HostedToolChoice(string type)
Parameters
| Type |
Name |
Description |
| string |
type |
|
Properties
|
Edit this page
View Source
Declaration
[JsonProperty("type")]
public override string Type { get; }
Property Value
Overrides
Methods
|
Edit this page
View Source
Declaration
public static HostedToolChoice CodeInterpreter()
Returns
|
Edit this page
View Source
Declaration
public static HostedToolChoice ComputerUse()
Returns
|
Edit this page
View Source
Declaration
public static HostedToolChoice FileSearch()
Returns
|
Edit this page
View Source
Declaration
public static HostedToolChoice ImageGeneration()
Returns
|
Edit this page
View Source
Declaration
public static HostedToolChoice WebSearchPreview()
Returns
Extension Methods