WorkflowDescriptor
AgentPrism.Abstractions.dllRepresents a summary view of a workflow listed in the catalog.
public sealed record WorkflowDescriptor : IEquatable<WorkflowDescriptor>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<WorkflowDescriptor>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”Workflows defined in code do not carry a declarative WorkflowDefinition: they come from a factory, and their graph is only known after compilation. For such a record, WorkflowDescriptor.Kind and WorkflowDescriptor.AgentNames stay empty; the catalog still shows the name and description.
Constructors
Section titled “Constructors”WorkflowDescriptor()
Section titled “ WorkflowDescriptor()”public WorkflowDescriptor()Properties
Section titled “Properties”AgentNames
Section titled “ AgentNames”Gets the agent names entering the graph. Can be empty for code-defined workflows.
public IReadOnlyList<string> AgentNames { get; init; }Property Value
Section titled “Property Value”Description
Section titled “ Description”Gets the short description.
public string? Description { get; init; }Property Value
Section titled “Property Value”DisplayName
Section titled “ DisplayName”Gets the display name shown in the UI.
public string? DisplayName { get; init; }Property Value
Section titled “Property Value”Gets the built-in pattern. null for workflows defined by a factory in code: a free-form graph does not correspond to a pattern.
public WorkflowKind? Kind { get; init; }Property Value
Section titled “Property Value”Gets the workflow’s unique name.
public required string Name { get; init; }Property Value
Section titled “Property Value”Gets the mixed agent/function node list for a Sequential workflow that uses function nodes. Empty for every other definition.
public IReadOnlyList<WorkflowNodeReference> Nodes { get; init; }Property Value
Section titled “Property Value”IReadOnlyList<WorkflowNodeReference>
Origin
Section titled “ Origin”Gets the source of the definition.
public required AgentDefinitionOrigin Origin { get; init; }Property Value
Section titled “Property Value”UpdatedAt
Section titled “ UpdatedAt”Gets the last modification time (UTC).
public DateTimeOffset? UpdatedAt { get; init; }Property Value
Section titled “Property Value”Version
Section titled “ Version”Gets the definition version. Always 1 for code-defined workflows.
public int Version { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(WorkflowDescriptor?)
Section titled “ Equals(WorkflowDescriptor?)”public bool Equals(WorkflowDescriptor? other)Parameters
Section titled “Parameters”other WorkflowDescriptor?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(WorkflowDescriptor?, WorkflowDescriptor?)
Section titled “ operator ==(WorkflowDescriptor?, WorkflowDescriptor?)”public static bool operator ==(WorkflowDescriptor? left, WorkflowDescriptor? right)Parameters
Section titled “Parameters”left WorkflowDescriptor?
right WorkflowDescriptor?
Returns
Section titled “Returns”operator !=(WorkflowDescriptor?, WorkflowDescriptor?)
Section titled “ operator !=(WorkflowDescriptor?, WorkflowDescriptor?)”public static bool operator !=(WorkflowDescriptor? left, WorkflowDescriptor? right)Parameters
Section titled “Parameters”left WorkflowDescriptor?
right WorkflowDescriptor?