Table of Contents

Class WorkflowHistoryAdvisor

Namespace
JD.AI.Workflows.History
Assembly
JD.AI.Workflows.dll
public sealed class WorkflowHistoryAdvisor : IWorkflowHistoryAdvisor
Inheritance
WorkflowHistoryAdvisor
Implements
Inherited Members

Constructors

WorkflowHistoryAdvisor(IWorkflowHistoryGraphStore)

public WorkflowHistoryAdvisor(IWorkflowHistoryGraphStore store)

Parameters

store IWorkflowHistoryGraphStore

Methods

AdviseAsync(AgentWorkflowDefinition, CancellationToken)

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

Parameters

definition AgentWorkflowDefinition
ct CancellationToken

Returns

Task<HistoryAdvisory>

FindSimilarPathsAsync(AgentWorkflowDefinition, int, CancellationToken)

public 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)

public 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)

public 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>>