Struct ToolType
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
FileSearch
File search tool, maps to Tool.file_search.
public static ToolType FileSearch { get; }
Property Value
GoogleMaps
Google maps tool, maps to Tool.google_maps.
public static ToolType GoogleMaps { get; }
Property Value
GoogleSearchImage
Image search tool, maps to Tool.google_search.search_types.image_search.
public static ToolType GoogleSearchImage { get; }
Property Value
GoogleSearchWeb
Google search tool, maps to Tool.google_search.search_types.web_search.
public static ToolType GoogleSearchWeb { get; }
Property Value
ToolTypeUnspecified
Unspecified tool type.
public static ToolType ToolTypeUnspecified { get; }
Property Value
UrlContext
URL context tool, maps to Tool.url_context.
public static ToolType UrlContext { get; }
Property Value
Value
public string Value { get; }
Property Value
Methods
Equals(ToolType)
public bool Equals(ToolType other)
Parameters
otherToolType
Returns
FromString(string)
public static ToolType FromString(string value)
Parameters
valuestring
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
implicit operator ToolType(string)
public static implicit operator ToolType(string value)
Parameters
valuestring