Table of Contents

Class ToolConfig

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

The Tool configuration containing parameters for specifying Tool use in the request.

public class ToolConfig
Inheritance
ToolConfig
Inherited Members
Extension Methods

Properties

FunctionCallingConfig

Optional. Function calling config.

[JsonPropertyName("functionCallingConfig")]
public FunctionCallingConfig? FunctionCallingConfig { get; set; }

Property Value

FunctionCallingConfig

IncludeServerSideToolInvocations

If true, the response includes toolCall and toolResponse parts for server-side tools such as Google Search.

[JsonPropertyName("includeServerSideToolInvocations")]
public bool? IncludeServerSideToolInvocations { get; set; }

Property Value

bool?

RetrievalConfig

Optional. Retrieval config for tool configuration.

[JsonPropertyName("retrievalConfig")]
public RetrievalConfig? RetrievalConfig { get; set; }

Property Value

RetrievalConfig

See Also