AI Agent UN

Experimentary implementation of a model real life political body populated by representative AI agents

About This Project

AI-Agent-UN is an experimental Python project that models a Model United Nations body populated by AI agents, each representing a specific country. Each agent is defined by a system prompt describing that country's foreign policy positions, diplomatic style, and national interests. Motions, such as the included Gaza ceasefire resolution, are run as tasks in which each agent returns a structured JSON response containing a yes, no, or abstain vote and a supporting statement. Results are saved as timestamped and latest JSON files and can be processed by bilateral impact analysis, PDF report generation, and CSV export scripts.

The project supports both cloud-hosted models through OpenAI and Anthropic APIs, as well as any OpenAI-compatible endpoint, and local inference through Ollama. It is built around multi-agent orchestration, prompt-based persona modeling, and constrained structured outputs to make agent responses machine-readable. The repository is documented as a proof of concept rather than a predictive tool, and its outputs are explicitly not intended to represent actual government policy.

The project may be of interest to instructors of international relations courses, Model UN coaches preparing students, researchers comparing how different language models reason about geopolitics, and those studying emergent behavior in multi-agent systems. Journalists and policy analysts may also find it useful for exploring hypothetical resolutions and how votes might affect bilateral relationships, with the understanding that the results are illustrative rather than authoritative.

Project Details

Tags

ai-agentsexperimentsgeopoliticssimulations

Explore More Projects