Share via


ExternalRequest.CreateResponse Method

Definition

Overloads

Name Description
CreateResponse(Object)

Creates a new ExternalResponse corresponding to the request, with the speicified data payload.

CreateResponse<T>(T)

Creates a new ExternalResponse corresponding to the request, with the speicified data payload.

CreateResponse(Object)

Creates a new ExternalResponse corresponding to the request, with the speicified data payload.

public Microsoft.Agents.AI.Workflows.ExternalResponse CreateResponse(object data);
member this.CreateResponse : obj -> Microsoft.Agents.AI.Workflows.ExternalResponse
Public Function CreateResponse (data As Object) As ExternalResponse

Parameters

data
Object

The data contained in the response.

Returns

An ExternalResponse instance corresponding to this request with the specified data.

Exceptions

Thrown when the input data object does not match the expected response type.

Applies to

CreateResponse<T>(T)

Creates a new ExternalResponse corresponding to the request, with the speicified data payload.

public Microsoft.Agents.AI.Workflows.ExternalResponse CreateResponse<T>(T data);
member this.CreateResponse : 'T -> Microsoft.Agents.AI.Workflows.ExternalResponse
Public Function CreateResponse(Of T) (data As T) As ExternalResponse

Type Parameters

T

The type of the response data.

Parameters

data
T

The data contained in the response.

Returns

An ExternalResponse instance corresponding to this request with the specified data.

Applies to