Abstract
Computer-Supported Collaborative Learning (CSCL) has traditionally relied on rule-based conversational agents that often struggle with the fluid, non-linear nature of human interaction. This paper introduces LLM Bazaar, an open-source extension to the Bazaar framework that integrates Large Language Models (LLMs) to provide flexible, multi-agent support. By implementing a "listener-actor-coordinator" architecture, LLM Bazaar manages context and agent personas to facilitate group learning within shared technical environments like JupyterLab.
Introduction
The primary challenge in CSCL is guiding student interactions effectively. Traditional agents are often too rigid to handle off-topic queries or messy discussions. While LLMs offer generative capabilities to address this, their deployment in multi-party settings introduces complexities regarding context tracking, agent coordination, and persona maintenance. LLM Bazaar addresses these "plumbing" issues, providing a robust infrastructure for researchers to deploy specialized AI agents that can facilitate discussions and provide technical tutoring.
System Architecture and Methods
LLM Bazaar extends the existing Bazaar architecture using a three-tier logic designed for real-time collaboration support:
- Listeners: Monitor event streams, including chat messages and workspace actions (e.g., running code), to identify intervention opportunities.
- Actors: Propose responses based on conversation history and specific pedagogical personas (e.g., a technical tutor or a motivational coach).
- Output Coordinator: Evaluates and prioritizes proposed responses to ensure coherent group interaction and prevent redundant messaging.
The system is integrated into JupyterLab using NodeJS and Socket.IO, allowing students to engage in coding and discussion simultaneously while AI agents observe and participate in the background.
Implementation and Insights
The framework is model-agnostic, supporting both commercial APIs (e.g., GPT-4) and local open-source models (e.g., Llama). Key design insights include:
- Persona Engineering: Structured prompts allow for diverse agent roles, such as an "expert programming tutor" focused on logic or a "sociable chef" encouraging participation.
- Context Management: Researchers can tune the "context length" (number of previous chat turns) to balance situational awareness with computational performance.
- Handling Unstructured Input: Unlike rule-based systems, LLM Bazaar can respond productively to vague requests or off-topic chatter, maintaining student engagement without breaking logic.
Results: Pilot Application
The system was pilot-tested in a community college Python course focusing on Regular Expressions (regex). The curriculum consisted of eight tasks where the bot could progressively disclose new notebook cells based on group progress.
The pilot demonstrated the system's ability to provide technical tutoring and manage group dynamics across various platforms. The infrastructure allows for iterative prompting, making it easy for non-engineers to tweak an agent's personality or instructional strategy.
Conclusion and Future Work
LLM Bazaar provides a functional, open-source infrastructure for the CSCL community to integrate LLMs into collaborative workspaces. While initial results are promising, future work will focus on large-scale quantitative evaluations of learning gains and the impact of multi-agent interactions on group dynamics. The authors invite researchers to use this framework to explore how LLM-empowered environments reshape collaborative learning patterns.
Summary updated