WorkflowSaveRequest
AgentPrism.AspNetCore.dllRequest to save a workflow definition.
public sealed record WorkflowSaveRequest : IEquatable<WorkflowSaveRequest>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<WorkflowSaveRequest>
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”The name comes from the path, not the body. Having two sources would raise the question of which one wins when they conflict.
Constructors
Section titled “Constructors”WorkflowSaveRequest()
Section titled “ WorkflowSaveRequest()”public WorkflowSaveRequest()Properties
Section titled “Properties”AgentNames
Section titled “ AgentNames”Names of agents to add to the graph.
public IReadOnlyList<string>? AgentNames { get; init; }Property Value
Section titled “Property Value”Description
Section titled “ Description”Short description of what the workflow does.
public string? Description { get; init; }Property Value
Section titled “Property Value”DisplayName
Section titled “ DisplayName”Name shown in the UI.
public string? DisplayName { get; init; }Property Value
Section titled “Property Value”HandoffInstructions
Section titled “ HandoffInstructions”Handoff instructions. Only for WorkflowKind.Handoff.
public string? HandoffInstructions { get; init; }Property Value
Section titled “Property Value”Built-in pattern to use.
public WorkflowKind Kind { get; init; }Property Value
Section titled “Property Value”ManagerAgentName
Section titled “ ManagerAgentName”Name of the manager agent. Only for WorkflowKind.Magentic.
public string? ManagerAgentName { get; init; }Property Value
Section titled “Property Value”MaxIterations
Section titled “ MaxIterations”Maximum number of turns.
public int? MaxIterations { get; init; }Property Value
Section titled “Property Value”int?
Ordered agent/function node list for a Sequential workflow that mixes function nodes in with agents. Mutually exclusive with WorkflowSaveRequest.AgentNames; leave both empty or set only one.
public IReadOnlyList<WorkflowNodeReference>? Nodes { get; init; }Property Value
Section titled “Property Value”IReadOnlyList<WorkflowNodeReference>?
RequirePlanApproval
Section titled “ RequirePlanApproval”Whether the manager agent’s plan must be approved by a human. Only for WorkflowKind.Magentic.
public bool RequirePlanApproval { 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(WorkflowSaveRequest?)
Section titled “ Equals(WorkflowSaveRequest?)”public bool Equals(WorkflowSaveRequest? other)Parameters
Section titled “Parameters”other WorkflowSaveRequest?
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 ==(WorkflowSaveRequest?, WorkflowSaveRequest?)
Section titled “ operator ==(WorkflowSaveRequest?, WorkflowSaveRequest?)”public static bool operator ==(WorkflowSaveRequest? left, WorkflowSaveRequest? right)Parameters
Section titled “Parameters”left WorkflowSaveRequest?
right WorkflowSaveRequest?
Returns
Section titled “Returns”operator !=(WorkflowSaveRequest?, WorkflowSaveRequest?)
Section titled “ operator !=(WorkflowSaveRequest?, WorkflowSaveRequest?)”public static bool operator !=(WorkflowSaveRequest? left, WorkflowSaveRequest? right)Parameters
Section titled “Parameters”left WorkflowSaveRequest?
right WorkflowSaveRequest?