Class SearchTypes
Different types of search that can be enabled on the GoogleSearch tool.
public record SearchTypes : IEquatable<SearchTypes>
- Inheritance
-
SearchTypes
- Implements
- Inherited Members
Properties
ImageSearch
Optional. Setting this field enables image search. Image bytes are returned.
[JsonPropertyName("imageSearch")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ImageSearch? ImageSearch { get; set; }
Property Value
WebSearch
Optional. Setting this field enables web search. Only text results are returned.
[JsonPropertyName("webSearch")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public WebSearch? WebSearch { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a SearchTypes object.
public static SearchTypes? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- SearchTypes
The deserialized SearchTypes object, or null if deserialization fails.