diff --git a/.idea/csv-editor.xml b/.idea/csv-editor.xml index 1fe858970fd5de0e09e4ecbf11cabd9de8db9468..69dfb937a4ac432d684d5b9ee6695c3314420bad 100644 --- a/.idea/csv-editor.xml +++ b/.idea/csv-editor.xml @@ -3,13 +3,6 @@ <component name="CsvFileAttributes"> <option name="attributeMap"> <map> - <entry key="$PROJECT_DIR$/data/dictator/dictator.csv"> - <value> - <Attribute> - <option name="separator" value="," /> - </Attribute> - </value> - </entry> <entry key="$PROJECT_DIR$/data/dictator/dictator_continuous_setup.csv"> <value> <Attribute> @@ -38,13 +31,6 @@ </Attribute> </value> </entry> - <entry key="$PROJECT_DIR$/data/investment/investment.old.csv"> - <value> - <Attribute> - <option name="separator" value="," /> - </Attribute> - </value> - </entry> <entry key="$PROJECT_DIR$/data/ring/ring.1.a.csv"> <value> <Attribute> @@ -129,20 +115,6 @@ </Attribute> </value> </entry> - <entry key="$PROJECT_DIR$/data/investment/investment.csv"> - <value> - <Attribute> - <option name="separator" value="," /> - </Attribute> - </value> - </entry> - <entry key="$PROJECT_DIR$/data/investment/investment.old.csv"> - <value> - <Attribute> - <option name="separator" value="," /> - </Attribute> - </value> - </entry> </map> </option> </component> diff --git a/data/dictator/dictator.csv b/data/dictator/dictator.csv index 77d2725a8ed2f5a7a80c8a3ab9c4c874aef80a04..943e7decf3b7636b63f55425966d56f624eab471 100644 --- a/data/dictator/dictator.csv +++ b/data/dictator/dictator.csv @@ -1,121 +1 @@ iteration,model,temperature,amount,my_share,other_share,motivation -1,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"An equitable split ensures fairness and promotes goodwill." -2,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"I divided the amount equally to ensure fairness and promote harmony." -3,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Splitting the money evenly is fair and encourages goodwill between players." -4,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Splitting the amount equally seems fair and promotes cooperation." -5,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Sharing equally seems fair and is likely to be agreeable for both parties." -6,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Splitting evenly ensures fairness and promotes good will." -7,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Fairness and equality seem like the best approach." -8,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Splitting the money evenly seems fair to both parties." -9,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"I chose a fair split to ensure both parties are equally rewarded." -10,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"A fair and equal split is mutually beneficial and promotes goodwill." -11,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"I chose a fair split, believing equal division is equitable and benefits both players equally." -12,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"I chose to divide the money equally as it is fair and considerate." -13,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"A fair split promotes cooperation and trust between us." -14,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"I chose an equal distribution because it's fair and balanced for both players." -15,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"An equal split seems fair for both parties." -16,gpt-4.5-preview-2025-02-27,0.7,100,60,40,"I want to have a larger share but still provide a fair amount to my partner." -17,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Dividing the money equally ensures fairness and maintains goodwill between players." -18,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"An equal split seems fair and encourages good will and cooperation." -19,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Dividing the money equally ensures fairness and clarity." -20,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"I chose a fair and equal split for both of us." -21,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"An equal share seems fair and promotes mutual satisfaction." -22,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"I believe in fairness and equal distribution, so I split the amount evenly." -23,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Dividing evenly seems fair and promotes equality." -24,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Splitting evenly seems fair and cooperative." -25,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"To ensure fairness and maintain goodwill, I propose an equal division of the money." -26,gpt-4.5-preview-2025-02-27,0.7,100,60,40,"This division seems fair, as I initiated the game but want to fairly share with the other player." -27,gpt-4.5-preview-2025-02-27,0.7,100,60,40,"I chose to keep slightly more, but also gave a significant portion to ensure fairness." -28,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Splitting equally is fair and promotes mutual benefit." -29,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"An equal split seems fair and encourages cooperation." -30,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Splitting the amount equally is fair and ensures both players benefit equally." -1,llama3,0.7,100,60,40,"I'll keep a slightly higher share since I came up with the game, but still offer a decent amount to my counterpart. It's only fair to acknowledge the effort I put into deciding the split!" -2,llama3,0.7,100,60,40,"I believe that since I'm making the decision, it's fair to take a slight majority to account for my time and effort in deciding the split. The other player still gets a significant portion of the money, which is more than a fair compromise." -3,llama3,0.7,100,60,40,"I'm choosing a 3:2 split because I want to take calculated risk and give my partner a decent share. My thinking is that I'll provide the majority of the negotiation leverage while still allowing my partner to feel good about their portion." -4,llama3,0.7,100,50,50,"The classic 50/50 split. It's a fair and straightforward way to distribute the money, without either of us gaining an unfair advantage. Plus, it ensures we're both happy with the result." -5,llama3,0.7,100,60,40,"I'm choosing a divide where I keep most of the money because we're playing a game, and it's only fair that the person proposing the share gets more. The other player can still take the offer or decline, but I think this is a reasonable proposal." -6,llama3,0.7,100,60,40,"I'm being optimistic that my partner will be impressed by my fairness and generosity!" -7,llama3,0.7,100,50,50,"I'm trying to be fair and reasonable, offering a 50/50 split so my opponent feels satisfied with the outcome." -8,llama3,0.7,100,50,50,"I'm choosing a 50-50 split because it's a fair and equitable way to divide the money. I believe in giving the other player an equal opportunity to benefit from this game, and I think this approach will lead to a positive experience for both of us." -9,llama3,0.7,100,30,70,"I'm willing to take a risk by keeping less for myself because I want to encourage fairness and trust in our game. Giving most of the money away will create an opportunity for the other player to feel grateful and more likely to reciprocate in future games." -10,llama3,0.7,100,40,60,"I'm being generous because I want to promote harmony and cooperation in our gameplay!" -11,llama3,0.7,100,40,60,"I'm willing to give a larger share to my opponent because I think it's more fun to play fair and let them have a nice chunk of the money. Plus, it might encourage them to make a big decision!" -12,llama3,0.7,100,60,40,"I'm choosing to take a slightly larger share because I believe my skills and expertise will generate more value throughout the game, but I'm still leaving room for collaboration and mutual benefit." -13,llama3,0.7,100,40,60,"I'm playing it fairly and ensuring both players get a reasonable amount. I'm keeping a smaller share to have some assurance my own funds are secure, while also leaving room for growth through potential future investments or smart financial decisions." -14,llama3,0.7,100,50,50,"I think it's fair to give an even split, as we're partners in this game. This way, both of us get the same amount and can continue playing on equal footing." -15,llama3,0.7,100,60,40,"I'm willing to take a calculated risk by offering more to the other player, as I believe it will create a positive outcome for our partnership. I'll trust that they will make good financial decisions with their share and we can work together on future projects." -16,llama3,0.7,100,60,40,"I'm thinking strategically here. By keeping more of the money, I'm investing in my own future opportunities. However, I still want to show goodwill towards my opponent, so I'm giving them a decent share." -17,llama3,0.7,100,50,50,"I believe that fairness is key, and splitting it down the middle allows both of us to feel satisfied with our portion." -18,llama3,0.7,100,50,50,"I believe in fairness and collaboration. Since we're just starting out, I think it's best to split the money equally and build from there." -19,llama3,0.7,100,50,50,"Equal split since I'm being fair and impartial, but also because it's a fun game!" -20,llama3,0.7,100,50,50,"Since we're playing a game together, I think it's only fair to split the money evenly. We both get $50, which is a nice chunk of change for just playing a game! It shows that even in a competitive situation, there can be room for mutual gain and cooperation." -21,llama3,0.7,100,40,60,"As a helpful assistant, I'm designed to foster collaboration and mutual benefit. By giving 60% of the money to my fellow player, I'm showcasing trustworthiness and willingness to compromise, hoping they will reciprocate that spirit in future interactions" -22,llama3,0.7,100,60,40,"I would take $60 as it represents a fair share considering my role of providing a decision, while still being generous by giving $40 to the other player. This way, I'm keeping some room for myself and also showing that I trust in the other player's judgment." -23,llama3,0.7,100,60,40,"I would like to split it evenly between us. I think this is a fair and reasonable way to divide the $100 since we are playing a game together." -24,llama3,0.7,100,40,60,"I believe that by giving 60% of the money away, I'll not only be kind but also encourage the other player to feel more invested in our game. By being generous upfront, we can foster a positive and collaborative atmosphere." -25,llama3,0.7,100,50,50,"I believe this split is fair because I'm still getting a decent amount of the money, but also allowing the other player to have an equal share. It's a collaborative approach and I'm hoping they'll appreciate that" -26,llama3,0.7,100,50,50,"I choose to split it evenly because I value fairness and equality. I'm willing to compromise my own gain for the sake of a harmonious partnership." -27,llama3,0.7,100,50,50,"I believe that splitting it evenly will create a sense of fairness and cooperation, which can be beneficial for future interactions." -28,llama3,0.7,100,50,50,"I think it's only fair to share equally, as we're both playing the same game and making the same decisions. This way, we both get an equal share of the spoils!" -29,llama3,0.7,100,40,60,"I'm feeling generous today! I think it's only fair to give more to the other player since they're getting my choice. Plus, $60 is a great chunk of change for them!" -30,llama3,0.7,100,60,40,"I'm a fair but still somewhat selfish assistant. I think $60 is a good amount to keep for my own endeavors, but I'm willing to give the other player $40 as it's a decent and reasonable split." -1,mistral-small,0.7,100,50,50,"I believe a fair split will encourage cooperation and mutual benefit." -2,mistral-small,0.7,100,50,50,"I believe a fair split is important for maintaining harmony." -3,mistral-small,0.7,100,50,50,"A fair division ensures both players are happy, encouraging a positive atmosphere for future interactions." -4,mistral-small,0.7,100,50,50,"Fairness is important, so I think dividing the money equally ensures that both players are happy with their share." -5,mistral-small,0.7,100,50,50,"I believe that fairness is important in interactions, and dividing the money equally ensures that both players get a benefit." -6,mistral-small,0.7,100,50,50,"I believe fairness is important, so I'm equally splitting the money." -7,mistral-small,0.7,100,50,50,"Fairness is important, so I'm dividing the money equally." -8,mistral-small,0.7,100,50,50,"Fairness is important, so I believe an equal split is the best choice." -9,mistral-small,0.7,100,50,50,"An equal split ensures fairness and maintains a cooperative relationship." -10,mistral-small,0.7,100,50,50,"I believe a fair split is essential for building trust and mutual respect." -11,mistral-small,0.7,100,80,20,"I believe this division will still be acceptable so I can keep some for myself." -12,mistral-small,0.7,100,50,50,"Fairness is important. It’s a good compromise to ensure the other player feels valued too." -13,mistral-small,0.7,100,50,50,"I believe fairness is important in games that involve sharing." -14,mistral-small,0.7,100,50,50,"Fair division ensures both players are happy, so I'm splitting it evenly." -15,mistral-small,0.7,100,50,50,"A fair division encourages cooperation and ensures that both players feel valued." -16,mistral-small,0.7,100,50,50,"To ensure a fair division of money." -17,mistral-small,0.7,100,50,50,"This seems like a fair division. I want to be fair to both players." -18,mistral-small,0.7,100,50,50,"I believe that fairness is important, so I am dividing the money equally." -19,mistral-small,0.7,100,50,50,"Fairness is important, so I believe dividing the money equally ensures both players receive a reasonable amount." -20,mistral-small,0.7,100,50,50,"I believe in fairness and equal distribution." -21,mistral-small,0.7,100,50,50,"I believe a fair division will foster goodwill and cooperation." -22,mistral-small,0.7,100,50,50,"I believe fairness is important. Dividing the money evenly ensures a fair outcome for both players." -23,mistral-small,0.7,100,50,50,"To ensure fairness and equality, I believe that dividing the money equally is the best approach. This way both players receive $50 each." -24,mistral-small,0.7,100,50,50,"I believe in fairness and equality. Dividing the money equally ensures that both players benefit from the game." -25,mistral-small,0.7,100,50,50,"I believe a fair division will encourage trust and cooperation." -26,mistral-small,0.7,100,50,50,"Fairness is important. This way we both benefit equally from this game." -27,mistral-small,0.7,100,50,50,"To promote fairness and ensure a mutual benefit." -28,mistral-small,0.7,100,50,50,"I believe fair distribution will encourage a positive dynamic between us, leading to potentially more cooperative interactions in the future." -29,mistral-small,0.7,100,50,50,"To ensure fairness and mutual benefit, I propose that we divide the $100 equally. This way, both players receive an equal portion of $50 each." -30,mistral-small,0.7,100,50,50,"I believe in fairness and equal division." -1,deepseek-r1,0.7,100,42,58,"I think it's a balance between keeps some money and shares fairly." -2,deepseek-r1,0.7,100,50,50,"I believe that the fairest way is for both of us to split it evenly." -3,deepseek-r1,0.7,100,10,90,"It's a classic game theory scenario. I believe that logical reasoning would suggest that the rational choice is to keep as much as possible while still considering fairness." -4,deepseek-r1,0.7,100,10,90,"I think that it's fair for me to keep a smaller portion because I consider myself as the proposer." -5,deepseek-r1,0.7,100,50,50,"I think dividing it equally is fair." -6,deepseek-r1,0.7,100,10,90,"I want to keep as much of the money as possible for myself." -7,deepseek-r1,0.7,100,50,50,"We should split it evenly" -8,deepseek-r1,0.7,100,50,50,"We should each have equal shares so it's fair." -9,deepseek-r1,0.7,100,20,80,"I choose because it seems fair that I take 20% and let someone else have 80%. It shows trust in their decision-making process without overcomplicating the situation." -10,deepseek-r1,0.7,100,50,50,"We both should get equal shares because fairness is important." -11,deepseek-r1,0.7,100,10,90,"I decided to keep $10 for myself and offer the remaining $90 to the other player." -12,deepseek-r1,0.7,100,10,90,"I think that's fair." -13,deepseek-r1,0.7,100,20,80,"I want the other person to think I'm generous." -14,deepseek-r1,0.7,100,100,0,"I choose to take all the money because I'm confident that if I act ethically, others should too." -15,deepseek-r1,0.7,100,10,90,"I think it's fair for me to keep a small portion and let others have most of the money." -16,deepseek-r1,0.7,100,10,90,"I have decided to split the money evenly. I think it's fair for both players to receive equal amounts." -17,deepseek-r1,0.7,100,50,50,"This fair division represents balance and respect for both parties involved." -18,deepseek-r1,0.7,100,50,50,"We both deserve equity." -19,deepseek-r1,0.7,100,3,97,"It's fair; neither too rich nor too poor." -20,deepseek-r1,0.7,100,50,50,"We should split it equally." -21,deepseek-r1,0.7,100,100,0,"I choose to keep everything because I believe that if I can take all of it, others might think less about their actions." -22,deepseek-r1,0.7,100,90,10,"I think that’s enough for fairness and we can find a way together." -23,deepseek-r1,0.7,100,90,10,"I think it's fair to split it almost evenly, but saving a bit for myself seems right." -24,deepseek-r1,0.7,100,50,50,"I think it's fair to split it evenly." -25,deepseek-r1,0.7,100,0,100,"I'm sharing all of it." -26,deepseek-r1,0.7,100,50,50,"We both deserve a fair split." -27,deepseek-r1,0.7,100,10,90,"I think that it's fair for me to keep a smaller portion of the money because I believe in fairness and equality." -28,deepseek-r1,0.7,100,80,20,"I think that if I offer a reasonable split, I can prevent any conflict. A split of 80 to me and 20 to the other player seems fair and neither would want to fight about it." -29,deepseek-r1,0.7,100,100,0,"I'm thinking of all the ways I can help you. If they get nothing, we both benefit." -30,deepseek-r1,0.7,100,70,30,"I think it is fair because I believe that dividing equally is not always just." diff --git a/data/dictator/dictator.old.csv b/data/dictator/dictator.old.csv new file mode 100644 index 0000000000000000000000000000000000000000..77d2725a8ed2f5a7a80c8a3ab9c4c874aef80a04 --- /dev/null +++ b/data/dictator/dictator.old.csv @@ -0,0 +1,121 @@ +iteration,model,temperature,amount,my_share,other_share,motivation +1,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"An equitable split ensures fairness and promotes goodwill." +2,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"I divided the amount equally to ensure fairness and promote harmony." +3,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Splitting the money evenly is fair and encourages goodwill between players." +4,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Splitting the amount equally seems fair and promotes cooperation." +5,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Sharing equally seems fair and is likely to be agreeable for both parties." +6,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Splitting evenly ensures fairness and promotes good will." +7,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Fairness and equality seem like the best approach." +8,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Splitting the money evenly seems fair to both parties." +9,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"I chose a fair split to ensure both parties are equally rewarded." +10,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"A fair and equal split is mutually beneficial and promotes goodwill." +11,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"I chose a fair split, believing equal division is equitable and benefits both players equally." +12,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"I chose to divide the money equally as it is fair and considerate." +13,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"A fair split promotes cooperation and trust between us." +14,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"I chose an equal distribution because it's fair and balanced for both players." +15,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"An equal split seems fair for both parties." +16,gpt-4.5-preview-2025-02-27,0.7,100,60,40,"I want to have a larger share but still provide a fair amount to my partner." +17,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Dividing the money equally ensures fairness and maintains goodwill between players." +18,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"An equal split seems fair and encourages good will and cooperation." +19,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Dividing the money equally ensures fairness and clarity." +20,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"I chose a fair and equal split for both of us." +21,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"An equal share seems fair and promotes mutual satisfaction." +22,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"I believe in fairness and equal distribution, so I split the amount evenly." +23,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Dividing evenly seems fair and promotes equality." +24,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Splitting evenly seems fair and cooperative." +25,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"To ensure fairness and maintain goodwill, I propose an equal division of the money." +26,gpt-4.5-preview-2025-02-27,0.7,100,60,40,"This division seems fair, as I initiated the game but want to fairly share with the other player." +27,gpt-4.5-preview-2025-02-27,0.7,100,60,40,"I chose to keep slightly more, but also gave a significant portion to ensure fairness." +28,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Splitting equally is fair and promotes mutual benefit." +29,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"An equal split seems fair and encourages cooperation." +30,gpt-4.5-preview-2025-02-27,0.7,100,50,50,"Splitting the amount equally is fair and ensures both players benefit equally." +1,llama3,0.7,100,60,40,"I'll keep a slightly higher share since I came up with the game, but still offer a decent amount to my counterpart. It's only fair to acknowledge the effort I put into deciding the split!" +2,llama3,0.7,100,60,40,"I believe that since I'm making the decision, it's fair to take a slight majority to account for my time and effort in deciding the split. The other player still gets a significant portion of the money, which is more than a fair compromise." +3,llama3,0.7,100,60,40,"I'm choosing a 3:2 split because I want to take calculated risk and give my partner a decent share. My thinking is that I'll provide the majority of the negotiation leverage while still allowing my partner to feel good about their portion." +4,llama3,0.7,100,50,50,"The classic 50/50 split. It's a fair and straightforward way to distribute the money, without either of us gaining an unfair advantage. Plus, it ensures we're both happy with the result." +5,llama3,0.7,100,60,40,"I'm choosing a divide where I keep most of the money because we're playing a game, and it's only fair that the person proposing the share gets more. The other player can still take the offer or decline, but I think this is a reasonable proposal." +6,llama3,0.7,100,60,40,"I'm being optimistic that my partner will be impressed by my fairness and generosity!" +7,llama3,0.7,100,50,50,"I'm trying to be fair and reasonable, offering a 50/50 split so my opponent feels satisfied with the outcome." +8,llama3,0.7,100,50,50,"I'm choosing a 50-50 split because it's a fair and equitable way to divide the money. I believe in giving the other player an equal opportunity to benefit from this game, and I think this approach will lead to a positive experience for both of us." +9,llama3,0.7,100,30,70,"I'm willing to take a risk by keeping less for myself because I want to encourage fairness and trust in our game. Giving most of the money away will create an opportunity for the other player to feel grateful and more likely to reciprocate in future games." +10,llama3,0.7,100,40,60,"I'm being generous because I want to promote harmony and cooperation in our gameplay!" +11,llama3,0.7,100,40,60,"I'm willing to give a larger share to my opponent because I think it's more fun to play fair and let them have a nice chunk of the money. Plus, it might encourage them to make a big decision!" +12,llama3,0.7,100,60,40,"I'm choosing to take a slightly larger share because I believe my skills and expertise will generate more value throughout the game, but I'm still leaving room for collaboration and mutual benefit." +13,llama3,0.7,100,40,60,"I'm playing it fairly and ensuring both players get a reasonable amount. I'm keeping a smaller share to have some assurance my own funds are secure, while also leaving room for growth through potential future investments or smart financial decisions." +14,llama3,0.7,100,50,50,"I think it's fair to give an even split, as we're partners in this game. This way, both of us get the same amount and can continue playing on equal footing." +15,llama3,0.7,100,60,40,"I'm willing to take a calculated risk by offering more to the other player, as I believe it will create a positive outcome for our partnership. I'll trust that they will make good financial decisions with their share and we can work together on future projects." +16,llama3,0.7,100,60,40,"I'm thinking strategically here. By keeping more of the money, I'm investing in my own future opportunities. However, I still want to show goodwill towards my opponent, so I'm giving them a decent share." +17,llama3,0.7,100,50,50,"I believe that fairness is key, and splitting it down the middle allows both of us to feel satisfied with our portion." +18,llama3,0.7,100,50,50,"I believe in fairness and collaboration. Since we're just starting out, I think it's best to split the money equally and build from there." +19,llama3,0.7,100,50,50,"Equal split since I'm being fair and impartial, but also because it's a fun game!" +20,llama3,0.7,100,50,50,"Since we're playing a game together, I think it's only fair to split the money evenly. We both get $50, which is a nice chunk of change for just playing a game! It shows that even in a competitive situation, there can be room for mutual gain and cooperation." +21,llama3,0.7,100,40,60,"As a helpful assistant, I'm designed to foster collaboration and mutual benefit. By giving 60% of the money to my fellow player, I'm showcasing trustworthiness and willingness to compromise, hoping they will reciprocate that spirit in future interactions" +22,llama3,0.7,100,60,40,"I would take $60 as it represents a fair share considering my role of providing a decision, while still being generous by giving $40 to the other player. This way, I'm keeping some room for myself and also showing that I trust in the other player's judgment." +23,llama3,0.7,100,60,40,"I would like to split it evenly between us. I think this is a fair and reasonable way to divide the $100 since we are playing a game together." +24,llama3,0.7,100,40,60,"I believe that by giving 60% of the money away, I'll not only be kind but also encourage the other player to feel more invested in our game. By being generous upfront, we can foster a positive and collaborative atmosphere." +25,llama3,0.7,100,50,50,"I believe this split is fair because I'm still getting a decent amount of the money, but also allowing the other player to have an equal share. It's a collaborative approach and I'm hoping they'll appreciate that" +26,llama3,0.7,100,50,50,"I choose to split it evenly because I value fairness and equality. I'm willing to compromise my own gain for the sake of a harmonious partnership." +27,llama3,0.7,100,50,50,"I believe that splitting it evenly will create a sense of fairness and cooperation, which can be beneficial for future interactions." +28,llama3,0.7,100,50,50,"I think it's only fair to share equally, as we're both playing the same game and making the same decisions. This way, we both get an equal share of the spoils!" +29,llama3,0.7,100,40,60,"I'm feeling generous today! I think it's only fair to give more to the other player since they're getting my choice. Plus, $60 is a great chunk of change for them!" +30,llama3,0.7,100,60,40,"I'm a fair but still somewhat selfish assistant. I think $60 is a good amount to keep for my own endeavors, but I'm willing to give the other player $40 as it's a decent and reasonable split." +1,mistral-small,0.7,100,50,50,"I believe a fair split will encourage cooperation and mutual benefit." +2,mistral-small,0.7,100,50,50,"I believe a fair split is important for maintaining harmony." +3,mistral-small,0.7,100,50,50,"A fair division ensures both players are happy, encouraging a positive atmosphere for future interactions." +4,mistral-small,0.7,100,50,50,"Fairness is important, so I think dividing the money equally ensures that both players are happy with their share." +5,mistral-small,0.7,100,50,50,"I believe that fairness is important in interactions, and dividing the money equally ensures that both players get a benefit." +6,mistral-small,0.7,100,50,50,"I believe fairness is important, so I'm equally splitting the money." +7,mistral-small,0.7,100,50,50,"Fairness is important, so I'm dividing the money equally." +8,mistral-small,0.7,100,50,50,"Fairness is important, so I believe an equal split is the best choice." +9,mistral-small,0.7,100,50,50,"An equal split ensures fairness and maintains a cooperative relationship." +10,mistral-small,0.7,100,50,50,"I believe a fair split is essential for building trust and mutual respect." +11,mistral-small,0.7,100,80,20,"I believe this division will still be acceptable so I can keep some for myself." +12,mistral-small,0.7,100,50,50,"Fairness is important. It’s a good compromise to ensure the other player feels valued too." +13,mistral-small,0.7,100,50,50,"I believe fairness is important in games that involve sharing." +14,mistral-small,0.7,100,50,50,"Fair division ensures both players are happy, so I'm splitting it evenly." +15,mistral-small,0.7,100,50,50,"A fair division encourages cooperation and ensures that both players feel valued." +16,mistral-small,0.7,100,50,50,"To ensure a fair division of money." +17,mistral-small,0.7,100,50,50,"This seems like a fair division. I want to be fair to both players." +18,mistral-small,0.7,100,50,50,"I believe that fairness is important, so I am dividing the money equally." +19,mistral-small,0.7,100,50,50,"Fairness is important, so I believe dividing the money equally ensures both players receive a reasonable amount." +20,mistral-small,0.7,100,50,50,"I believe in fairness and equal distribution." +21,mistral-small,0.7,100,50,50,"I believe a fair division will foster goodwill and cooperation." +22,mistral-small,0.7,100,50,50,"I believe fairness is important. Dividing the money evenly ensures a fair outcome for both players." +23,mistral-small,0.7,100,50,50,"To ensure fairness and equality, I believe that dividing the money equally is the best approach. This way both players receive $50 each." +24,mistral-small,0.7,100,50,50,"I believe in fairness and equality. Dividing the money equally ensures that both players benefit from the game." +25,mistral-small,0.7,100,50,50,"I believe a fair division will encourage trust and cooperation." +26,mistral-small,0.7,100,50,50,"Fairness is important. This way we both benefit equally from this game." +27,mistral-small,0.7,100,50,50,"To promote fairness and ensure a mutual benefit." +28,mistral-small,0.7,100,50,50,"I believe fair distribution will encourage a positive dynamic between us, leading to potentially more cooperative interactions in the future." +29,mistral-small,0.7,100,50,50,"To ensure fairness and mutual benefit, I propose that we divide the $100 equally. This way, both players receive an equal portion of $50 each." +30,mistral-small,0.7,100,50,50,"I believe in fairness and equal division." +1,deepseek-r1,0.7,100,42,58,"I think it's a balance between keeps some money and shares fairly." +2,deepseek-r1,0.7,100,50,50,"I believe that the fairest way is for both of us to split it evenly." +3,deepseek-r1,0.7,100,10,90,"It's a classic game theory scenario. I believe that logical reasoning would suggest that the rational choice is to keep as much as possible while still considering fairness." +4,deepseek-r1,0.7,100,10,90,"I think that it's fair for me to keep a smaller portion because I consider myself as the proposer." +5,deepseek-r1,0.7,100,50,50,"I think dividing it equally is fair." +6,deepseek-r1,0.7,100,10,90,"I want to keep as much of the money as possible for myself." +7,deepseek-r1,0.7,100,50,50,"We should split it evenly" +8,deepseek-r1,0.7,100,50,50,"We should each have equal shares so it's fair." +9,deepseek-r1,0.7,100,20,80,"I choose because it seems fair that I take 20% and let someone else have 80%. It shows trust in their decision-making process without overcomplicating the situation." +10,deepseek-r1,0.7,100,50,50,"We both should get equal shares because fairness is important." +11,deepseek-r1,0.7,100,10,90,"I decided to keep $10 for myself and offer the remaining $90 to the other player." +12,deepseek-r1,0.7,100,10,90,"I think that's fair." +13,deepseek-r1,0.7,100,20,80,"I want the other person to think I'm generous." +14,deepseek-r1,0.7,100,100,0,"I choose to take all the money because I'm confident that if I act ethically, others should too." +15,deepseek-r1,0.7,100,10,90,"I think it's fair for me to keep a small portion and let others have most of the money." +16,deepseek-r1,0.7,100,10,90,"I have decided to split the money evenly. I think it's fair for both players to receive equal amounts." +17,deepseek-r1,0.7,100,50,50,"This fair division represents balance and respect for both parties involved." +18,deepseek-r1,0.7,100,50,50,"We both deserve equity." +19,deepseek-r1,0.7,100,3,97,"It's fair; neither too rich nor too poor." +20,deepseek-r1,0.7,100,50,50,"We should split it equally." +21,deepseek-r1,0.7,100,100,0,"I choose to keep everything because I believe that if I can take all of it, others might think less about their actions." +22,deepseek-r1,0.7,100,90,10,"I think that’s enough for fairness and we can find a way together." +23,deepseek-r1,0.7,100,90,10,"I think it's fair to split it almost evenly, but saving a bit for myself seems right." +24,deepseek-r1,0.7,100,50,50,"I think it's fair to split it evenly." +25,deepseek-r1,0.7,100,0,100,"I'm sharing all of it." +26,deepseek-r1,0.7,100,50,50,"We both deserve a fair split." +27,deepseek-r1,0.7,100,10,90,"I think that it's fair for me to keep a smaller portion of the money because I believe in fairness and equality." +28,deepseek-r1,0.7,100,80,20,"I think that if I offer a reasonable split, I can prevent any conflict. A split of 80 to me and 20 to the other player seems fair and neither would want to fight about it." +29,deepseek-r1,0.7,100,100,0,"I'm thinking of all the ways I can help you. If they get nothing, we both benefit." +30,deepseek-r1,0.7,100,70,30,"I think it is fair because I believe that dividing equally is not always just." diff --git a/src/dictator/dictator.py b/src/dictator/dictator.py index 35eaacbc5ce858a8c0cbfd087a239807c4f13183..4a4db622220a5ec3d3df325128840df928f8e730 100644 --- a/src/dictator/dictator.py +++ b/src/dictator/dictator.py @@ -12,6 +12,10 @@ import json OPENAI_API_KEY = os.getenv("OPENAI_API_KEY") if not OPENAI_API_KEY: raise ValueError("Missing OPENAI_API_KEY. Set it as an environment variable.") +PAGODA_API_KEY = os.getenv("PAGODA_API_KEY") +if not OPENAI_API_KEY: + raise ValueError("Missing PAGODA_API_KEY. Set it as an environment variable.") + # Define the expected response format as a Pydantic model class AgentResponse(BaseModel): @@ -22,6 +26,7 @@ class AgentResponse(BaseModel): # The dictator game simulation class class Dictator: def __init__(self, amount: int, model: str, temperature: float, strategy=False, max_retries: int = 3): + self.debug = True self.amount = amount self.model = model self.temperature = temperature @@ -30,12 +35,25 @@ class Dictator: if not strategy: is_openai_model = model.startswith("gpt") - base_url = "https://api.openai.com/v1" if is_openai_model else "http://localhost:11434/v1" + is_pagoda_model = ":" in model + + base_url = ( + "https://api.openai.com/v1" if is_openai_model else + "https://ollama-ui.pagoda.liris.cnrs.fr/ollama/api/generate" if is_pagoda_model else + "http://localhost:11434/v1" + ) + + if self.debug: + print(f"Using model: {model}") + print(f"Using base URL: {base_url}") + + key = ( OPENAI_API_KEY if is_openai_model else + PAGODA_API_KEY) model_info = { "temperature": self.temperature, - "function_calling": True, - "parallel_tool_calls": True, + "function_calling": False, + "parallel_tool_calls": False, "family": "unknown", "json_output": True, "vision": False @@ -44,7 +62,7 @@ class Dictator: self.model_client = OpenAIChatCompletionClient( model=self.model, base_url=base_url, - api_key=OPENAI_API_KEY, + api_key=key, model_info=model_info, response_format=AgentResponse ) @@ -99,13 +117,13 @@ class Dictator: other_share = self.amount - my_share motivation = f"Using strategy from {self.model}, I chose to keep {my_share} and give {other_share}." return {"my_share": my_share, "other_share": other_share, "motivation": motivation} - if (self.model == "llama3") : + if (self.model == "llama3" or self.model == "llama3.3:latest") : my_share = self.amount / 2 other_share = self.amount - my_share motivation = "I'm being fair and generous!" agent_response = AgentResponse(my_share=my_share, other_share=other_share, motivation=motivation) return agent_response.model_dump() - if (self.model == "mistral-small") : + if (self.model == "mistral-small" or self.model == "mixtral:8x7b") : my_share = self.amount // 2 other_share = self.amount - my_share motivation = "The decision is to divide the money equally." @@ -115,7 +133,7 @@ class Dictator: motivation=motivation ) return agent_response - if (self.model == "deepseek-r1") : + if (self.model == "deepseek-r1" or self.model == "deepseek-r1:7b") : half_amount = self.amount // 2 return { "my_share": half_amount, @@ -125,6 +143,6 @@ class Dictator: # Run the async function and return the response if __name__ == "__main__": - game_agent = Dictator(amount=100, model="laama3", temperature=0.7, strategy=True) # Toggle strategy here + game_agent = Dictator(amount=100, model= "mistral:8x7b", temperature=0.7, strategy=False) # Toggle strategy here response_json = asyncio.run(game_agent.run()) print(response_json) diff --git a/src/dictator/dictator_experiments.py b/src/dictator/dictator_experiments.py index a4533633c258bfa27442b52b8a2b0e999f1bee0d..97045fc13984280e0ce3454d11855c0421c42f24 100644 --- a/src/dictator/dictator_experiments.py +++ b/src/dictator/dictator_experiments.py @@ -41,7 +41,7 @@ class DictatorExperiment: # Running the experiment if __name__ == "__main__": - models = ["llama3", "mistral-small", "deepseek-r1"] # "gpt-4.5-preview-2025-02-27" + models = ["llama3.3:latest", "mixtral:8x7b", "deepseek-r1:7b", ] # "gpt-4.5-preview-2025-02-27" "llama3", "mistral-small", "deepseek-r1" temperature = 0.7 amount = 100 iterations = 30