Skip to content

Commit

Permalink
Create state-machine version 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravi Prakash authored Sep 27, 2024
1 parent 5546a87 commit 1601e96
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions arch/state-machine.md
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

0 comments on commit 1601e96

Please sign in to comment.