Skip to content

Comments

FCE-2836: Document multiple agents in a single room#230

Open
MiloszFilimowski wants to merge 2 commits intomainfrom
mfilimowski/FCE-2836-multiple-agents-docs
Open

FCE-2836: Document multiple agents in a single room#230
MiloszFilimowski wants to merge 2 commits intomainfrom
mfilimowski/FCE-2836-multiple-agents-docs

Conversation

@MiloszFilimowski
Copy link
Contributor

Description

Add a section about the possibility of creating multiple agents.

@linear
Copy link

linear bot commented Feb 20, 2026

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds documentation for creating multiple agents within a single Fishjam room. This feature allows users to run multiple independent agents (e.g., different AI assistants or processing pipelines) in the same room, each with their own tracks and callbacks.

Changes:

  • Added a new "Multiple Agents in a Room" section to the agents tutorial
  • Included code examples for both TypeScript and Python demonstrating how to create multiple agents

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Comment on lines +152 to +159
const agentCallbacks = {
onError: console.error,
onClose: (code, reason) => console.log('Agent closed', code, reason)
} satisfies AgentCallbacks;

// ---cut---
const { agent: agent1 } = await fishjamClient.createAgent(room.id, agentOptions, agentCallbacks);
const { agent: agent2 } = await fishjamClient.createAgent(room.id, agentOptions, agentCallbacks);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion:

Suggested change
const agentCallbacks = {
onError: console.error,
onClose: (code, reason) => console.log('Agent closed', code, reason)
} satisfies AgentCallbacks;
// ---cut---
const { agent: agent1 } = await fishjamClient.createAgent(room.id, agentOptions, agentCallbacks);
const { agent: agent2 } = await fishjamClient.createAgent(room.id, agentOptions, agentCallbacks);
const agentCallbacks1 = {
onError: console.error,
onClose: (code, reason) => console.log('Agent 1 closed', code, reason)
} satisfies AgentCallbacks;
const agentCallbacks2 = {
onError: console.error,
onClose: (code, reason) => console.log('Agent 2 closed', code, reason)
} satisfies AgentCallbacks;
// ---cut---
const { agent: agent1 } = await fishjamClient.createAgent(room.id, agentOptions, agentCallbacks1);
const { agent: agent2 } = await fishjamClient.createAgent(room.id, agentOptions, agentCallbacks2);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants