-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ravi Prakash
authored
Sep 27, 2024
1 parent
5546a87
commit 1601e96
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# State Machine for an Agentic Workflow | ||
Below is the state machine of an agentic workflow on a BAP | ||
|
||
```mermaid | ||
stateDiagram-v2 | ||
[*] --> AgentOrchestrator | ||
AgentOrchestrator --> DiscoveryAgent | ||
AgentOrchestrator --> PriceNegotiationAgent | ||
AgentOrchestrator --> TermsNegotiationAgent | ||
AgentOrchestrator --> FulfillmentAgent | ||
AgentOrchestrator --> SupportAgent | ||
DiscoveryAgent --> PriceNegotiationAgent | ||
DiscoveryAgent --> TermsNegotiationAgent | ||
PriceNegotiationAgent --> ConfirmationAgent | ||
TermsNegotiationAgent --> ConfirmationAgent | ||
ConfirmationAgent --> FulfillmentAgent | ||
FulfillmentAgent --> TrackingAgent | ||
FulfillmentAgent --> CancellationAgent | ||
FulfillmentAgent --> ModificationAgent | ||
CancellationAgent --> FulfillmentAgent | ||
CancellationAgent --> SupportAgent | ||
ModificationAgent --> FulfillmentAgent | ||
TrackingAgent --> SupportAgent | ||
SupportAgent --> Tool | ||
RatingAgent --> SupportAgent | ||
PriceNegotiationAgent --> DiscoveryAgent : Continue browsing after price negotiation | ||
TermsNegotiationAgent --> DiscoveryAgent : Return to browsing due to undesirable terms | ||
TermsNegotiationAgent --> PriceNegotiationAgent : Adjust price based on terms | ||
PriceNegotiationAgent --> TermsNegotiationAgent : Adjust terms based on pricing | ||
ConfirmationAgent --> TermsNegotiationAgent : Revisit terms before confirming | ||
FulfillmentAgent --> ModificationAgent : Update fulfillment based on modifications | ||
FulfillmentAgent --> TrackingAgent : Reverse connection to update fulfillment | ||
SupportAgent --> DiscoveryAgent : Assist in rediscovering services | ||
SupportAgent --> PriceNegotiationAgent : Assist in pricing-related issues | ||
SupportAgent --> TermsNegotiationAgent : Assist in terms-related issues | ||
CancellationAgent --> TermsNegotiationAgent : Renegotiate terms before cancellation | ||
RatingAgent --> FulfillmentAgent : Feedback for fulfillment process |