Class ToolParallelAiSearch
ParallelAiSearch tool type. A tool that uses the Parallel.ai search engine for grounding. This data type is not supported in Gemini API.
public record ToolParallelAiSearch : IEquatable<ToolParallelAiSearch>
- Inheritance
-
ToolParallelAiSearch
- Implements
- Inherited Members
Properties
ApiKey
Optional. The API key for ParallelAiSearch. If an API key is not provided, the system will attempt to verify access by checking for an active Parallel.ai subscription through the Google Cloud Marketplace. See https://docs.parallel.ai/search/search-quickstart for more details.
[JsonPropertyName("apiKey")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ApiKey { get; set; }
Property Value
CustomConfigs
Optional. Custom configs for ParallelAiSearch. This field can be used to pass any parameter
from the Parallel.ai Search API. See the Parallel.ai documentation for the full list of
available parameters and their usage:
https://docs.parallel.ai/api-reference/search-beta/search Currently only source_policy,
excerpts, max_results, mode, fetch_policy can be set via this field. For example: {
"source_policy": { "include_domains": ["google.com", "wikipedia.org"], "exclude_domains":
["example.com"] }, "fetch_policy": { "max_age_seconds": 3600 } }
[JsonPropertyName("customConfigs")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Dictionary<string, object>? CustomConfigs { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a ToolParallelAiSearch object.
public static ToolParallelAiSearch? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- ToolParallelAiSearch
The deserialized ToolParallelAiSearch object, or null if deserialization fails.