Table of Contents

Class InteractionStep

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

A step of an interaction (user input, model output, thought, tool call or tool result), discriminated by type. Unknown step types are read as UnknownInteractionStep.

[JsonConverter(typeof(InteractionStepConverter))]
public abstract class InteractionStep
Inheritance
InteractionStep
Derived
Inherited Members
Extension Methods

Constructors

InteractionStep(string)

Initializes a new step with the given discriminator.

protected InteractionStep(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 step type discriminator (see InteractionStepTypes).

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

Property Value

string