Table of Contents

Interface IWorkflowHistoryAdvisor

Namespace
JD.AI.Workflows.History
Assembly
JD.AI.Workflows.dll
public interface IWorkflowHistoryAdvisor

Methods

AdviseAsync(AgentWorkflowDefinition, CancellationToken)

Task<HistoryAdvisory> AdviseAsync(AgentWorkflowDefinition definition, CancellationToken ct = default)

Parameters

definition AgentWorkflowDefinition
ct CancellationToken

Returns

Task<HistoryAdvisory>

FindSimilarPathsAsync(AgentWorkflowDefinition, int, CancellationToken)

Task<IReadOnlyList<SimilarPathResult>> FindSimilarPathsAsync(AgentWorkflowDefinition definition, int topN = 5, CancellationToken ct = default)

Parameters

definition AgentWorkflowDefinition
topN int
ct CancellationToken

Returns

Task<IReadOnlyList<SimilarPathResult>>

FindWorkflowsThroughStepAsync(string, int, CancellationToken)

Task<IReadOnlyList<WorkflowPathSummary>> FindWorkflowsThroughStepAsync(string stepNameOrFingerprint, int limit = 20, CancellationToken ct = default)

Parameters

stepNameOrFingerprint string
limit int
ct CancellationToken

Returns

Task<IReadOnlyList<WorkflowPathSummary>>

GetCommonPathsFromAsync(string, int, int, CancellationToken)

Task<IReadOnlyList<WeightedPath>> GetCommonPathsFromAsync(string stepNameOrFingerprint, int topN = 5, int maxDepth = 10, CancellationToken ct = default)

Parameters

stepNameOrFingerprint string
topN int
maxDepth int
ct CancellationToken

Returns

Task<IReadOnlyList<WeightedPath>>