Table of Contents

Class InteractionTool

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

A tool the model may use during an interaction, discriminated by type. Unknown tool types are read as UnknownInteractionTool.

[JsonConverter(typeof(InteractionToolConverter))]
public abstract class InteractionTool
Inheritance
InteractionTool
Derived
Inherited Members
Extension Methods

Constructors

InteractionTool(string)

Initializes a new tool with the given discriminator.

protected InteractionTool(string type)

Parameters

type string

The type discriminator.

Properties

ExtensionData

Fields returned by the API that this SDK does not model yet.

[JsonExtensionData]
public Dictionary<string, JsonElement>? ExtensionData { get; set; }

Property Value

Dictionary<string, JsonElement>

Type

The tool type discriminator (see InteractionToolTypes).

[JsonPropertyName("type")]
public string Type { get; }

Property Value

string