Table of Contents

Struct ToolType

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

The type of tool in the function call.

[JsonConverter(typeof(ToolTypeConverter))]
public readonly record struct ToolType : IEquatable<ToolType>
Implements
Inherited Members

Properties

AllValues

public static IReadOnlyList<ToolType> AllValues { get; }

Property Value

IReadOnlyList<ToolType>

FileSearch

File search tool, maps to Tool.file_search.

public static ToolType FileSearch { get; }

Property Value

ToolType

GoogleMaps

Google maps tool, maps to Tool.google_maps.

public static ToolType GoogleMaps { get; }

Property Value

ToolType

GoogleSearchImage

Image search tool, maps to Tool.google_search.search_types.image_search.

public static ToolType GoogleSearchImage { get; }

Property Value

ToolType

GoogleSearchWeb

Google search tool, maps to Tool.google_search.search_types.web_search.

public static ToolType GoogleSearchWeb { get; }

Property Value

ToolType

ToolTypeUnspecified

Unspecified tool type.

public static ToolType ToolTypeUnspecified { get; }

Property Value

ToolType

UrlContext

URL context tool, maps to Tool.url_context.

public static ToolType UrlContext { get; }

Property Value

ToolType

Value

public string Value { get; }

Property Value

string

Methods

Equals(ToolType)

public bool Equals(ToolType other)

Parameters

other ToolType

Returns

bool

FromString(string)

public static ToolType FromString(string value)

Parameters

value string

Returns

ToolType

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator ToolType(string)

public static implicit operator ToolType(string value)

Parameters

value string

Returns

ToolType