Skip to content

WorkflowFunctionResponse

Namespace AgentPrism · Assembly AgentPrism.AspNetCore.dll

Wire-safe view of a registered function node.

public sealed record WorkflowFunctionResponse : IEquatable<WorkflowFunctionResponse>

objectWorkflowFunctionResponse

IEquatable<WorkflowFunctionResponse>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

WorkflowFunctionDescriptor carries Type properties, and System.Text.Json refuses to serialize a Type instance (measured: NotSupportedException) - the HTTP layer projects the CLR type down to its display name instead.

public WorkflowFunctionResponse()

The short description of what the function does.

public string? Description { get; init; }

string?

The display name of the CLR type the function accepts.

public required string InputType { get; init; }

string

The function’s unique name.

public required string Name { get; init; }

string

The display name of the CLR type the function returns.

public required string OutputType { get; init; }

string

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(WorkflowFunctionResponse? other)

other WorkflowFunctionResponse?

bool

Projects a descriptor into its wire-safe view.

public static WorkflowFunctionResponse From(WorkflowFunctionDescriptor descriptor)

descriptor WorkflowFunctionDescriptor

The descriptor to project.

WorkflowFunctionResponse

public override int GetHashCode()

int

public override string ToString()

string

operator ==(WorkflowFunctionResponse?, WorkflowFunctionResponse?)

Section titled “ operator ==(WorkflowFunctionResponse?, WorkflowFunctionResponse?)”
public static bool operator ==(WorkflowFunctionResponse? left, WorkflowFunctionResponse? right)

left WorkflowFunctionResponse?

right WorkflowFunctionResponse?

bool

operator !=(WorkflowFunctionResponse?, WorkflowFunctionResponse?)

Section titled “ operator !=(WorkflowFunctionResponse?, WorkflowFunctionResponse?)”
public static bool operator !=(WorkflowFunctionResponse? left, WorkflowFunctionResponse? right)

left WorkflowFunctionResponse?

right WorkflowFunctionResponse?

bool