Algorithm 6 LLM-Mediated Agent Negotiation Protocol |
-
1:
Input: Agents , ; initial offers , ; LLM model ; negotiation limit T
-
2:
Output: Final agreement or failure
-
3:
Initialize history buffer
-
4:
for to T do
-
5:
generates offer based on local state and preferences
-
6:
generates counter-offer based on prior offer and utility evaluation
-
7:
Append to
|
|
▹ LLM summarizes intents and preferences |
-
9:
Compute utility scores from
-
10:
if and then
-
11:
return Agreement
-
12:
else
-
13:
Agents update proposal strategy based on feedback or regret
-
14:
end if
-
15:
end for
-
16:
return Negotiation failed
|