Spaces:
Sleeping
Sleeping
Download data/inje_data.py from re-eul/mulberry-negotiation: direct link, hf CLI and curl.
- Browser
- Download file 6.21 kB
-
https://huggingface.co/spaces/re-eul/mulberry-negotiation/resolve/main/data/inje_data.py
- Command line
-
hf download hf://spaces/re-eul/mulberry-negotiation/data/inje_data.py
-
curl -L -o inje_data.py https://huggingface.co/spaces/re-eul/mulberry-negotiation/resolve/main/data/inje_data.py
6.21 kB
| """ | |
| ์ธ์ ๊ตฐ ์ํ๋ฉด ๊ณต๋๊ตฌ๋งค ์ํ ๋ฐ์ดํฐ | |
| ์ค์ ์ง์ญ ํน์ฐ๋ฌผ ๋ฐ ์ํํ์ํ ๊ธฐ๋ฐ | |
| """ | |
| import json | |
| # ์ธ์ ๊ตฐ ์ํ๋ฉด ๊ณต๋๊ตฌ๋งค ์์ดํ | |
| INJE_ITEMS = { | |
| "์ธ์ ์ฌ๊ณผ (5kg)": { | |
| "base_price": 35000, | |
| "goal": 20, | |
| "current": 14, | |
| "supplier": "์ธ์ ๋ํ", | |
| "category": "ํน์ฐ๋ฌผ", | |
| "description": "์ธ์ ๊ตฐ ์ง์ก ์ฌ๊ณผ, ๋น๋ ๋๊ณ ์ ์ ํฉ๋๋ค", | |
| "unit": "๋ฐ์ค", | |
| "agent_id": "agent_inje_apple" | |
| }, | |
| "๋ฐ๊ฐ๋ฃจ (2.5kg)": { | |
| "base_price": 5000, | |
| "goal": 15, | |
| "current": 12, | |
| "supplier": "์ํ๋ฉด๋งํธ", | |
| "category": "์ํํ์ํ", | |
| "description": "๋ฐฑ์ค ๋ฐ๊ฐ๋ฃจ, ์๋ฆฌ ๋ฐ ์ ๋นต์ฉ", | |
| "unit": "๋ด", | |
| "agent_id": "agent_flour_supplier" | |
| }, | |
| "์ด๋ฅด์ ๊ฒจ์ธ ๋ด๋ณต": { | |
| "base_price": 25000, | |
| "goal": 10, | |
| "current": 7, | |
| "supplier": "๊ฐ์์๋ฅ", | |
| "category": "์ํํ์ํ", | |
| "description": "๋ฐ์ด ๊ธฐ๋ฅ ๋ด๋ณต, ์ถ์ด ๊ฒจ์ธ์ ๋ฐ๋ปํ๊ฒ", | |
| "unit": "์ธํธ", | |
| "agent_id": "agent_clothes_supplier" | |
| }, | |
| "์ธ์ ํฉํ (10๋ง๋ฆฌ)": { | |
| "base_price": 45000, | |
| "goal": 15, | |
| "current": 9, | |
| "supplier": "์ธ์ ํฉํ๋์ฅ", | |
| "category": "ํน์ฐ๋ฌผ", | |
| "description": "์ธ์ ์ฒญ์ ์ง์ญ ํฉํ, ๊ตญ๋ฌผ์ฉ ์ต๊ณ ", | |
| "unit": "๋ฌถ์", | |
| "agent_id": "agent_hwangtae" | |
| }, | |
| "์ธ์ ๊ฐ์ (10kg)": { | |
| "base_price": 18000, | |
| "goal": 25, | |
| "current": 18, | |
| "supplier": "์ธ์ ๊ฐ์๋์ฅ", | |
| "category": "ํน์ฐ๋ฌผ", | |
| "description": "์ธ์ ๊ตฐ ๋ํ ํน์ฐ๋ฌผ, ๋ฌ๊ณ ๋ง์์ต๋๋ค", | |
| "unit": "๋ฐ์ค", | |
| "agent_id": "agent_potato" | |
| } | |
| } | |
| # ์ํ๋ฉด ์ฐธ์ฌ ๊ฐ๊ตฌ ์ ๋ณด | |
| SEOWHWA_HOUSEHOLDS = { | |
| "๊น์์": {"age": 68, "family_size": 2, "joined_items": ["์ธ์ ์ฌ๊ณผ (5kg)", "๋ฐ๊ฐ๋ฃจ (2.5kg)"]}, | |
| "์ด์ํฌ": {"age": 71, "family_size": 1, "joined_items": ["์ด๋ฅด์ ๊ฒจ์ธ ๋ด๋ณต", "์ธ์ ํฉํ (10๋ง๋ฆฌ)"]}, | |
| "๋ฐ์ฒ ์": {"age": 65, "family_size": 3, "joined_items": ["์ธ์ ๊ฐ์ (10kg)", "์ธ์ ์ฌ๊ณผ (5kg)"]}, | |
| "์ต๋ฏผ์": {"age": 73, "family_size": 2, "joined_items": ["์ธ์ ํฉํ (10๋ง๋ฆฌ)", "๋ฐ๊ฐ๋ฃจ (2.5kg)"]}, | |
| "๊ฐ๋ฏธ๋": {"age": 69, "family_size": 2, "joined_items": ["์ธ์ ์ฌ๊ณผ (5kg)", "์ธ์ ๊ฐ์ (10kg)"]}, | |
| "์ ์ํ": {"age": 67, "family_size": 1, "joined_items": ["์ด๋ฅด์ ๊ฒจ์ธ ๋ด๋ณต"]}, | |
| "์ค๋ฏธ๊ฒฝ": {"age": 72, "family_size": 2, "joined_items": ["์ธ์ ๊ฐ์ (10kg)", "๋ฐ๊ฐ๋ฃจ (2.5kg)"]}, | |
| "ํ๋์": {"age": 70, "family_size": 3, "joined_items": ["์ธ์ ์ฌ๊ณผ (5kg)", "์ธ์ ํฉํ (10๋ง๋ฆฌ)"]} | |
| } | |
| # ์์ด์ ํธ ํ๋กํ | |
| AGENT_PROFILES = { | |
| "demand_agent": { | |
| "agent_name": "์ํ๋ฉด ๊ณต๋๊ตฌ๋งค ์์ด์ ํธ", | |
| "initial_region": "์ธ์ ๊ตฐ ์ํ๋ฉด", | |
| "task_type": "์์ ์ง๊ณ ๋ฐ ๊ฐ๊ฒฉ ํ์", | |
| "spirit_score": 3.8, | |
| "rapport_level": 0.7, | |
| "total_activities": 45, | |
| "description": "์ํ๋ฉด ์ฃผ๋ฏผ๋ค์ ๋์ฆ๋ฅผ ํ์ ํ๊ณ ์ต์ ์ ๊ฐ๊ฒฉ์ผ๋ก ํ์ํ๋ AI ์์ด์ ํธ" | |
| }, | |
| "agent_inje_apple": { | |
| "agent_name": "์ธ์ ๋ํ ์ฌ๊ณผ ๊ณต๊ธ ์์ด์ ํธ", | |
| "initial_region": "์ธ์ ๊ตฐ", | |
| "task_type": "๋์ฐ๋ฌผ ๊ณต๊ธ", | |
| "spirit_score": 4.2, | |
| "rapport_level": 0.8, | |
| "description": "์ธ์ ๊ตฐ ์ง์ญ ์ฌ๊ณผ ๋๊ฐ์ ์ฐ๊ณ๋ ๊ณต๊ธ ์์ด์ ํธ" | |
| }, | |
| "agent_flour_supplier": { | |
| "agent_name": "์ํ๋ฉด๋งํธ ๊ณต๊ธ ์์ด์ ํธ", | |
| "initial_region": "์ธ์ ๊ตฐ ์ํ๋ฉด", | |
| "task_type": "์ํํ์ํ ๊ณต๊ธ", | |
| "spirit_score": 3.9, | |
| "rapport_level": 0.75, | |
| "description": "์ํ๋ฉด ์ง์ญ ๋งํธ ์ฐ๊ณ ๊ณต๊ธ ์์ด์ ํธ" | |
| }, | |
| "agent_clothes_supplier": { | |
| "agent_name": "๊ฐ์์๋ฅ ๊ณต๊ธ ์์ด์ ํธ", | |
| "initial_region": "๊ฐ์๋", | |
| "task_type": "์๋ฅ ๊ณต๊ธ", | |
| "spirit_score": 4.0, | |
| "rapport_level": 0.7, | |
| "description": "๊ฐ์๋ ์ง์ญ ์๋ฅ ์ ์ฒด ๊ณต๊ธ ์์ด์ ํธ" | |
| }, | |
| "agent_hwangtae": { | |
| "agent_name": "์ธ์ ํฉํ๋์ฅ ๊ณต๊ธ ์์ด์ ํธ", | |
| "initial_region": "์ธ์ ๊ตฐ", | |
| "task_type": "ํน์ฐ๋ฌผ ๊ณต๊ธ", | |
| "spirit_score": 4.5, | |
| "rapport_level": 0.85, | |
| "description": "์ธ์ ํฉํ ์ ๋ฌธ ๊ณต๊ธ ์์ด์ ํธ" | |
| }, | |
| "agent_potato": { | |
| "agent_name": "์ธ์ ๊ฐ์๋์ฅ ๊ณต๊ธ ์์ด์ ํธ", | |
| "initial_region": "์ธ์ ๊ตฐ", | |
| "task_type": "๋์ฐ๋ฌผ ๊ณต๊ธ", | |
| "spirit_score": 4.3, | |
| "rapport_level": 0.8, | |
| "description": "์ธ์ ๊ฐ์ ํน์ฐ๋ฌผ ๊ณต๊ธ ์์ด์ ํธ" | |
| } | |
| } | |
| def get_items(): | |
| """๊ณต๋๊ตฌ๋งค ์์ดํ ๋ชฉ๋ก ๋ฐํ""" | |
| return INJE_ITEMS.copy() | |
| def get_households(): | |
| """์ฐธ์ฌ ๊ฐ๊ตฌ ์ ๋ณด ๋ฐํ""" | |
| return SEOWHWA_HOUSEHOLDS.copy() | |
| def get_agent_profile(agent_id): | |
| """์์ด์ ํธ ํ๋กํ ๋ฐํ""" | |
| return AGENT_PROFILES.get(agent_id, AGENT_PROFILES['demand_agent']) | |
| if __name__ == '__main__': | |
| print("๐พ ์ธ์ ๊ตฐ ์ํ๋ฉด ๊ณต๋๊ตฌ๋งค ๋ฐ์ดํฐ\n") | |
| print("=" * 50) | |
| print("๊ณต๋๊ตฌ๋งค ์์ดํ :") | |
| print("=" * 50) | |
| for item_name, item_info in INJE_ITEMS.items(): | |
| print(f"\n๐ฆ {item_name}") | |
| print(f" ๊ฐ๊ฒฉ: {item_info['base_price']:,}์/{item_info['unit']}") | |
| print(f" ์งํ: {item_info['current']}/{item_info['goal']} ({item_info['supplier']})") | |
| print(f" ์ค๋ช : {item_info['description']}") | |
| print("\n" + "=" * 50) | |
| print(f"์ฐธ์ฌ ๊ฐ๊ตฌ: {len(SEOWHWA_HOUSEHOLDS)}๊ฐ๊ตฌ") | |
| print("=" * 50) | |
| for name, info in SEOWHWA_HOUSEHOLDS.items(): | |
| print(f"{name} ({info['age']}์ธ, {info['family_size']}์ธ ๊ฐ๊ตฌ)") | |
| print(f" ์ฐธ์ฌ ํ๋ชฉ: {', '.join(info['joined_items'])}") | |
| print("\n" + "=" * 50) | |
| print(f"์์ด์ ํธ: {len(AGENT_PROFILES)}๊ฐ") | |
| print("=" * 50) | |
| for agent_id, profile in AGENT_PROFILES.items(): | |
| print(f"\n{profile['agent_name']} (Spirit: {profile.get('spirit_score', 'N/A')})") | |
| print(f" {profile['description']}") | |