Share via


ExternalRequest Class

Definition

Represents a request to an external input port.

public class ExternalRequest : IEquatable<Microsoft.Agents.AI.Workflows.ExternalRequest>
type ExternalRequest = class
    interface IEquatable<ExternalRequest>
Public Class ExternalRequest
Implements IEquatable(Of ExternalRequest)
Inheritance
ExternalRequest
Implements

Constructors

Name Description
ExternalRequest(ExternalRequest)
ExternalRequest(RequestPortInfo, String, PortableValue)

Represents a request to an external input port.

Properties

Name Description
Data

The data contained in the request.

EqualityContract
PortInfo

The port to invoke.

RequestId

A unique identifier for this request instance.

Methods

Name Description
<Clone>$()
Create(RequestPort, Object, String)

Creates a new ExternalRequest for the specified input port and data payload.

Create<T>(RequestPort, T, String)

Creates a new ExternalRequest for the specified input port and data payload.

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.

Deconstruct(RequestPortInfo, String, PortableValue)
Equals(ExternalRequest)
Equals(Object)
GetHashCode()
IsDataOfType<TValue>()

Determines whether the underlying data is of the specified type.

PrintMembers(StringBuilder)
ToString()
TryGetDataAs(Type, Object)

Attempts to retrieve the underlying data as the specified type.

TryGetDataAs<TValue>(TValue)

Determines whether the underlying data is of the specified type and outputs the value if it is.

Operators

Name Description
Equality(ExternalRequest, ExternalRequest)
Inequality(ExternalRequest, ExternalRequest)

Applies to