Choose an Agent type based on search strategy
masterSaplings provides several agent implementations, each balancing speed, cost, and effectiveness differently:
- GreedyAgent: Implements greedy best-first search. It is the fastest and cheapest but cannot backtrack, making it the least effective.
- MonteCarloAgent: Implements Monte Carlo Tree Search (MCTS). It is the most effective as it balances exploration and exploitation, but it is the slowest and most expensive.
- AStarAgent: Implements a variation of the A* pathfinding algorithm. It is a middle-ground option that can backtrack and recover from mistakes but does not update its strategy based on past trajectories.
- COTAgent: A standard Chain-of-Thought agent. It does not implement any search; it simply calls tools sequentially. Use this as a baseline for comparison.