Class Auction

java.lang.Object
com.tnsai.coordination.auction.Auction

public final class Auction extends Object
Multi-agent auction mechanism supporting various auction types.

Supported auction types:

Example usage:


 AuctionResult result = Auction.builder()
     .type(Auction.Type.VICKREY)
     .task("Translate document to French")
     .bidders(List.of(agent1, agent2, agent3))
     .bidStrategy((agent, task, price, round, prev) -> {
         // Parse agent's bid from LLM response
         String response = agent.chat("Bid on: " + task + " (current: " + price + ")");
         return Double.parseDouble(response.trim());
     })
     .build()
     .execute();