Share via


UserInputResponseContent Class

Definition

Represents the response to a request for user input.

public ref class UserInputResponseContent : Microsoft::Extensions::AI::AIContent
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.FunctionApprovalResponseContent), "functionApprovalResponse")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.McpServerToolApprovalResponseContent), "mcpServerToolApprovalResponse")]
[System.Text.Json.Serialization.JsonPolymorphic(TypeDiscriminatorPropertyName="$type")]
public class UserInputResponseContent : Microsoft.Extensions.AI.AIContent
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.FunctionApprovalResponseContent), "functionApprovalResponse")]
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.McpServerToolApprovalResponseContent), "mcpServerToolApprovalResponse")]
[System.Text.Json.Serialization.JsonPolymorphic(TypeDiscriminatorPropertyName="$type")]
public class UserInputResponseContent : Microsoft.Extensions.AI.AIContent
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.FunctionApprovalResponseContent), "functionApprovalResponse")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.McpServerToolApprovalResponseContent), "mcpServerToolApprovalResponse")>]
[<System.Text.Json.Serialization.JsonPolymorphic(TypeDiscriminatorPropertyName="$type")>]
type UserInputResponseContent = class
    inherit AIContent
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.FunctionApprovalResponseContent), "functionApprovalResponse")>]
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.McpServerToolApprovalResponseContent), "mcpServerToolApprovalResponse")>]
[<System.Text.Json.Serialization.JsonPolymorphic(TypeDiscriminatorPropertyName="$type")>]
type UserInputResponseContent = class
    inherit AIContent
Public Class UserInputResponseContent
Inherits AIContent
Inheritance
UserInputResponseContent
Derived
Attributes

Constructors

Name Description
UserInputResponseContent(String)

Initializes a new instance of the UserInputResponseContent class.

Properties

Name Description
AdditionalProperties

Gets or sets additional properties for the content.

(Inherited from AIContent)
Annotations

Gets or sets a list of annotations on this content.

(Inherited from AIContent)
Id

Gets the ID that uniquely identifies the user input request/response pair.

RawRepresentation

Gets or sets the raw representation of the content from an underlying implementation.

(Inherited from AIContent)

Applies to