Skip to content

WorkflowFunctionDescriptor

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

Describes a function node registered in code.

public sealed record WorkflowFunctionDescriptor : IEquatable<WorkflowFunctionDescriptor>

objectWorkflowFunctionDescriptor

IEquatable<WorkflowFunctionDescriptor>

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

public WorkflowFunctionDescriptor()

Gets the short description of what the function does.

public string? Description { get; init; }

string?

Gets the CLR type the function accepts as input.

public required Type InputType { get; init; }

Type

Gets the function’s unique name. Serves as the key a workflow node points to.

public required string Name { get; init; }

string

Gets the CLR type the function returns.

public required Type OutputType { get; init; }

Type

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(WorkflowFunctionDescriptor? other)

other WorkflowFunctionDescriptor?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(WorkflowFunctionDescriptor?, WorkflowFunctionDescriptor?)

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

left WorkflowFunctionDescriptor?

right WorkflowFunctionDescriptor?

bool

operator !=(WorkflowFunctionDescriptor?, WorkflowFunctionDescriptor?)

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

left WorkflowFunctionDescriptor?

right WorkflowFunctionDescriptor?

bool