ExternalRequest.CreateResponse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.