The core components of the Beckn Protocol include:
- BAP (Beckn Application Provider): Client-side applications
- BPP (Beckn Provider Platform): Provider-side platforms
- BG (Beckn Gateway): Intermediary for discovery and communication
- Catalog: Collection of items or services offered by a provider
- Item: Individual product or service
- Order: Transaction details
- Fulfillment: Delivery or service execution details
- Rating: Feedback mechanism
- search: Discover products or services
- select: Choose specific items to order
- init: Initiate an order
- confirm: Finalize a transaction
- track: Monitor order status
- cancel: Cancel an order
- update: Modify order/transaction details
- rating: Provide feedback
- support: Request assistance
Please see the architecture document for AgentTorch.
BAP, BPP, and BG will be considered agents, that interact with each other in the simulation.
-
BAP (Beckn Application Provider)
- intent
- current_order
- items_ordered
- feedback_provided
- requests_made
- money_spent
-
BPP (Beckn Provider Platform)
- network_traffic
- revenue_earned
- search_to_select_to_order
- cancelled_orders
-
BG (Beckn Gateway)
- (object)
Catalog, Item, Order, Fulfillment, and Rating will be considered as objects. These objects encapsulate the data structures defined in the Beckn Protocol.
Each Beckn action (search, select, init, etc.) is mapped to an AgentTorch substep, that is executed to move the simulation forward.
The BAP-Gateway-BPP network is structured as shown.
This will be represented in AgentTorch using a pair of heterogeneous
agent_object
networks, of the BAPs and BGs, as well as the BPPs and BGs.
Note
All the Beckn operations are asynchronous by definition. This means that when
a select
API call is made by a BAP to a BPP, the BPP will only respond to
the BAP with an acknowledgement of the received request. The actual response
will be sent back in a on_select
API call from the BPP to the BAP. However,
for simplicity, we will assume that the API calls are synchronous in the
simulation.