Uploaded November 2026 | Updated December 2026, 1 day ago
Simulating real-world human institutions with LLMs introduces unique technical challenges.
For example, how do you enforce strict procedural rules without destroying dynamic debate
flow? How do you keep agents grounded in distinct political identities without leaning into
caricature? And how do you measure the systemic impact of structural changes? These
topics will be addressed in this presentation.
Outline:
1. Introduction & Problem Statement (4 min): Context on parliament simulation,
project scope, and the motivation behind modeling democratic reforms.
2. Architecture & Deterministic State (6 min): Using LangGraph to manage state
transitions, turn-taking, and procedural parliamentary rules throughout the debate.
3. Traceability & Debugging (3 min): Using LangSmith to monitor prompt inputs, tool
calls, and token costs for debugging
4. Grounding Agents & Mitigating Bias (6 min): Combining structured context,
party-filtered RAG, and voting histories to ground agent speeches and reduce base
model bias.
5. A/B Testing Systemic Reforms & Findings (7 min): Evaluates structural
democratic reforms by simulating 238 debate runs to measure their impact on debate
quality and policy outcomes.
6. Limitations & Conclusions (4 min): Addressing the inherent limitations of using
LLMs for simulations and validating transcripts with domain experts.
7. Q&A
Takeaways:
- How do you transfer a real-world system such as debates into a full multi-agent
simulation
- How to control next-turn decisions in this multi-agent using custom bidding phases
- Grounding the agent personas using RAG to make sure the agent doesn’t rely on
internal knowledge
- How to create an A/B experiment to test systemic changes.
Impact
The impact of this project created additional evidence that reforms in the parliament are
necessary. The findings have been used in a report by this think tank with advice on how to
strengthen democracy and is read by politicians, journalists and policy experts.
Generalized applications
This multi-agent simulation could be interesting in any team environment where you would
like to have multiple agents with distinct opinions, expertise and philosophies. You could
instruct them to come to a consensus and see how that plays out. For instance, engineering
teams, executive boards, focus groups or cross-functional teams could be simulated.
Generalized applications
This multi-agent simulation could be interesting in any team environment where you would
like to have multiple agents with distinct opinions, expertise and philosophies. You could
instruct them to come to a consensus and see how that plays out. For instance, engineering
teams, executive boards, focus groups or cross-functional teams could be simulated.
Target audience
This talk is interesting for Machine Learning Engineers, Data Scientists, and Developers who
want to start or have experience with building AI agents, RAG and layered prompting.
pydata.org
PyData is an educational program of NumFOCUS, a 501(c)3 non-profit organization in the United States. PyData provides a forum for the international community of users and developers of data analysis tools to share ideas and learn from each other. The global PyData network promotes discussion of best practices, new approaches, and emerging technologies for data management, processing, analytics, and visualization. PyData communities approach data science using many languages, including (but not limited to) Python, Julia, and R.
PyData conferences aim to be accessible and community-driven, with novice to advanced level presentations. PyData tutorials and talks bring attendees the latest project features along with cutting-edge use cases.
00:00 Welcome!
00:10 Help us add time stamps or captions to this video! See the description for details.
Want to help add timestamps to our YouTube videos to help with discoverability? Find out more here: github.com/numfocus/YouTubeVideoTimestamps
Simulating real-world human institutions with LLMs introduces unique technical challenges.
For example, how do you enforce strict procedural rules without destroying dynamic debate
flow? How do you keep agents grounded in distinct political identities without leaning into
caricature? And how do you measure the systemic impact of structural changes? These
topics will be addressed in this presentation.
Outline:
1. Introduction & Problem Statement (4 min): Context on parliament simulation,
project scope, and the motivation behind modeling democratic reforms.
2. Architecture & Deterministic State (6 min): Using LangGraph to manage state
transitions, turn-taking, and procedural parliamentary rules throughout the debate.
3. Traceability & Debugging (3 min): Using LangSmith to monitor prompt inputs, tool
calls, and token costs for debugging
4. Grounding Agents & Mitigating Bias (6 min): Combining structured context,
party-filtered RAG, and voting histories to ground agent speeches and reduce base
model bias.
5. A/B Testing Systemic Reforms & Findings (7 min): Evaluates structural
democratic reforms by simulating 238 debate runs to measure their impact on debate
quality and policy outcomes.
6. Limitations & Conclusions (4 min): Addressing the inherent limitations of using
LLMs for simulations and validating transcripts with domain experts.
7. Q&A
Takeaways:
- How do you transfer a real-world system such as debates into a full multi-agent
simulation
- How to control next-turn decisions in this multi-agent using custom bidding phases
- Grounding the agent personas using RAG to make sure the agent doesn’t rely on
internal knowledge
- How to create an A/B experiment to test systemic changes.
Impact
The impact of this project created additional evidence that reforms in the parliament are
necessary. The findings have been used in a report by this think tank with advice on how to
strengthen democracy and is read by politicians, journalists and policy experts.
Generalized applications
This multi-agent simulation could be interesting in any team environment where you would
like to have multiple agents with distinct opinions, expertise and philosophies. You could
instruct them to come to a consensus and see how that plays out. For instance, engineering
teams, executive boards, focus groups or cross-functional teams could be simulated.
Generalized applications
This multi-agent simulation could be interesting in any team environment where you would
like to have multiple agents with distinct opinions, expertise and philosophies. You could
instruct them to come to a consensus and see how that plays out. For instance, engineering
teams, executive boards, focus groups or cross-functional teams could be simulated.
Target audience
This talk is interesting for Machine Learning Engineers, Data Scientists, and Developers who
want to start or have experience with building AI agents, RAG and layered prompting.
pydata.org
PyData is an educational program of NumFOCUS, a 501(c)3 non-profit organization in the United States. PyData provides a forum for the international community of users and developers of data analysis tools to share ideas and learn from each other. The global PyData network promotes discussion of best practices, new approaches, and emerging technologies for data management, processing, analytics, and visualization. PyData communities approach data science using many languages, including (but not limited to) Python, Julia, and R.
PyData conferences aim to be accessible and community-driven, with novice to advanced level presentations. PyData tutorials and talks bring attendees the latest project features along with cutting-edge use cases.
00:00 Welcome!
00:10 Help us add time stamps or captions to this video! See the description for details.
Want to help add timestamps to our YouTube videos to help with discoverability? Find out more here: github.com/numfocus/YouTubeVideoTimestamps


![On Interventional Generalisation [PyCon DE & PyData 2026]
🔊 Recorded at PyCon DE & PyData 2026, 16.04.2026
https://2026.pycon.de/talks/BRRHGY/
🎓 Watch Andy Kitchen explore interventional generalisation to learn how to move beyond simple predictions and master the art of evaluating hypothetical choices in unseen situations.
Speakers:
Andy Kitchen
Description:
Interventional generalization addresses the challenge of determining whether a specific action will improve a desired outcome in novel, unseen situations. Standard machine learning validation sets are insufficient for this problem because predicting an observation differs fundamentally from intervening in a system. A primary difficulty is that counterfactual outcomes are unobservable; once an action is taken, the alternative reality where a different action was chosen cannot be seen.
The proposed approach integrates structural causal models (SCMs), Bayesian hierarchical modeling, and decision theory. SCMs use Directed Acyclic Graphs (DAGs) to distinguish between conditioning and intervention, employing do-notation to break links from parents to the intervened variable. To handle known unknowns and transferability across different groups or regions, Bayesian hierarchical models estimate between-group and between-sample variances. This allows uncertainty regarding how an effect generalizes to a new environment to be internalized within the model.
Key takeaways include the use of KL divergence to measure interventional detectability—the ability to perceive the consequences of an action. Decision-making is further refined by splitting uncertainty into epistemic (reducible through experimentation) and aleatoric (inherent randomness). By calculating the expected value of an intervention both with and without perfect information, practitioners can determine if further data collection is necessary. Finally, the methodology suggests incorporating safety margins to account for unknown unknowns, acknowledging that unmodeled confounders typically cause interventions to perform worse than predicted.
⭐️ About PyCon DE:
PyCon DE is the leading conference on open-source Python applications in AI and data science. It brings together industry professionals, researchers, AI and data science practitioners, and software engineering communities, providing a unique platform for collaboration, knowledge sharing, and innovation.
The PyCon DE & PyData 2026 conference delivered an exceptional experience, fostering stronger connections within the Python community while showcasing the latest advancements in artificial intelligence and data science. Attendees enjoyed a diverse and engaging program of talks, workshops, and networking opportunities, further establishing the conference as a premier event for Python, AI, and data science enthusiasts across Germany.
PyCon DE 2027 will take place in Heidelberg from 19 to 23 April 2027.
Follow us:
• Newsletter: https://2027.pycon.de/newsletter/
• LinkedIn: https://www.linkedin.com/company/pyconde
• X: https://www.x.com/pyconde
Links:
• Conference website: http://pycon.de
• Other sessions: https://2026.pycon.de/talks/
The conference was organized by
• Python Softwareverband e.V.: http://pysv.org
• Pioneers Hub gemeinnützige GmbH: http://pioneershub.org
in collaboration with NumFOCUS Inc.: http://numfocus.org
If you enjoyed this session, please like, and subscribe to our channel for more insightful talks and discussions.
Share this video with your network to spread the knowledge!
Hashtags:
#Python #PyConDE #PyData #OpenSource #AI #DataScience #MachineLearning #SoftwareEngineering #LLMs #Community #Sovereignty
Acknowledgements:
Special thanks to all the volunteers and sponsors who made this event possible.
About:
Python Softwareverband e.V.:
PySV is a non-profit that promotes the use and development of Python in Germany through events, education, and advocacy, fostering an open Python community.
Pioneers Hub gemeinnützige GmbH:
is a non-profit fostering innovation in AI and tech by connecting experts and promoting knowledge exchange through events and collaborative initiatives.
NumFOCUS Inc.
supports open-source scientific computing by providing financial and logistical support to key projects like NumPy and Jupyter, promoting sustainable development and collaboration.
www.pydata.org
PyData is an educational program of NumFOCUS, a 501(c)3 non-profit organization in the United States. PyData provides a forum for the international community of users and developers of data analysis tools to share ideas and learn from each other. The global PyData network promotes discussion of best practices, new approaches, and emerging technologies for data management, processing, analytics, and visualization. PyData communities approach data science using many languages, including (but not limited to) Python, Julia, and R. On Interventional Generalisation [PyCon DE & PyData 2026]](https://i.ytimg.com/vi/qpRzSPGeHkE/mqdefault.jpg)




![Building Agentic Systems with Python, LangGraph, MCP, and A2A [PyCon DE & PyData 2026]
🔊 Recorded at PyCon DE & PyData 2026, 15.04.2026
https://2026.pycon.de/talks/JBFGCA/
🎓 Watch Holger Nösekabel, CTO at TD Reply, reveal how to build scalable, real-world agentic systems using Python, LangGraph, MCP, and A2A to orchestrate dynamic data acquisition and validation.
Speakers:
Holger Nösekabel
Description:
Agentic systems can be constructed using a hub-and-spoke architecture to automate complex business processes, such as identifying and scoring companies for mergers and acquisitions. This approach utilizes a coordinator agent to delegate tasks to specialized agents responsible for data retrieval, scoring, and outreach. To ensure the system remains flexible and loosely coupled, the architecture separates the conversational interface, built with FastAPI and Nginx, from the underlying agent logic and data storage, which employs SQLite for structured data and Redis for real-time status propagation to the user interface.
The system integrates the Model Context Protocol (MCP) to expose specific tools—such as web scrapers and API connectors—to agents, allowing them to fetch dynamic data from sources like LinkedIn, partner websites, and Perplexity. To prevent context window saturation and agent confusion, tools are limited to approximately ten per agent. While autonomous ReAct patterns are useful, the system employs LangGraph to implement structured workflows. This ensures that critical data retrieval steps occur in parallel and are completed before the agent processes the final result, avoiding the reliability issues associated with over-prompting.
Agent-to-agent (A2A) communication allows the coordinator to interact with specialized agents via URIs, facilitating a scalable ecosystem where new capabilities can be added without rewriting the core logic. To maintain data integrity, a dedicated check agent validates outputs for hallucinations or outliers, such as unrealistic revenue-to-employee ratios. Final system reliability is ensured through AI-generated test suites and human evaluation of the response quality.
⭐️ About PyCon DE:
PyCon DE is the leading conference on open-source Python applications in AI and data science. It brings together industry professionals, researchers, AI and data science practitioners, and software engineering communities, providing a unique platform for collaboration, knowledge sharing, and innovation.
The PyCon DE & PyData 2026 conference delivered an exceptional experience, fostering stronger connections within the Python community while showcasing the latest advancements in artificial intelligence and data science. Attendees enjoyed a diverse and engaging program of talks, workshops, and networking opportunities, further establishing the conference as a premier event for Python, AI, and data science enthusiasts across Germany.
PyCon DE 2027 will take place in Heidelberg from 19 to 23 April 2027.
Follow us:
• Newsletter: https://2027.pycon.de/newsletter/
• LinkedIn: https://www.linkedin.com/company/pyconde
• X: https://www.x.com/pyconde
Links:
• Conference website: http://pycon.de
• Other sessions: https://2026.pycon.de/talks/
The conference was organized by
• Python Softwareverband e.V.: http://pysv.org
• Pioneers Hub gemeinnützige GmbH: http://pioneershub.org
in collaboration with NumFOCUS Inc.: http://numfocus.org
If you enjoyed this session, please like, and subscribe to our channel for more insightful talks and discussions.
Share this video with your network to spread the knowledge!
Hashtags:
#Python #PyConDE #PyData #OpenSource #AI #DataScience #MachineLearning #SoftwareEngineering #LLMs #Community #Sovereignty
Acknowledgements:
Special thanks to all the volunteers and sponsors who made this event possible.
About:
Python Softwareverband e.V.:
PySV is a non-profit that promotes the use and development of Python in Germany through events, education, and advocacy, fostering an open Python community.
Pioneers Hub gemeinnützige GmbH:
is a non-profit fostering innovation in AI and tech by connecting experts and promoting knowledge exchange through events and collaborative initiatives.
NumFOCUS Inc.
supports open-source scientific computing by providing financial and logistical support to key projects like NumPy and Jupyter, promoting sustainable development and collaboration.
www.pydata.org
PyData is an educational program of NumFOCUS, a 501(c)3 non-profit organization in the United States. PyData provides a forum for the international community of users and developers of data analysis tools to share ideas and learn from each other. The global PyData network promotes discussion of best practices, new approaches, and emerging technologies for data management, processing, analytics, and visualization. PyData communities approach data science using many languages, including (but not limited to) Python, Julia, and R. Building Agentic Systems with Python, LangGraph, MCP, and A2A [PyCon DE & PyData 2026]](https://i.ytimg.com/vi/rJKBnHYicQA/mqdefault.jpg)


