Cannot read properties of undefined (reading 'id') while using supoervisor #268

Closed
opened 2026-02-15 18:15:19 -05:00 by yindo · 0 comments
Owner

Originally created by @rechaviamit on GitHub (May 28, 2025).

Checked other resources

  • I have checked other resources (e.g., documentation, issues, forums) for answers.
  • This is a bug report, not a usage question. For general questions, please use GitHub Discussions.
  • I have added a clear and descriptive title that summarizes the issue.
  • I have read how to create a minimal, reproducible example.
  • I have included a self-contained, minimal code example that reproduces the issue — including all relevant imports. The code can be run as is.
  const geminiLlm = googleGenAIProviderFactory.create(geminiLlmConfig);

  // Create specialized agents using createReactAgent
  const automationDataCollectorAgent = createReactAgent({
    llm: geminiLlm.model,
    tools: coralogixTools,
    name: 'automation_data_collector',
    prompt:
      'Gather Coralogix metrics for the given automationId using the provided MCP tools. Query the "automations" Coralogix account only.',
    includeAgentName: 'inline',
  });

  const automationInsightsSummarizerAgent = createReactAgent({
    llm: openAIProviderFactory.create(llmConfig).model,
    tools: [],
    name: 'automation-insights-summarizer',
    prompt: 'Summarize the previously collected Coralogix data into clear insights and recommendations',
  });

  const workflow = createSupervisor({
    agents: [automationDataCollectorAgent, automationInsightsSummarizerAgent],
    llm: openAIProviderFactory.create(llmConfig).model,
    prompt: 'You are managing automation diagnostics. Use the automation_data_collector for all tasks.',
  });

  return workflow.compile({
    checkpointer,
  });
Originally created by @rechaviamit on GitHub (May 28, 2025). Checked other resources - [x] I have checked other resources (e.g., documentation, issues, forums) for answers. - [x] This is a bug report, **not** a usage question. For general questions, please use [GitHub Discussions](https://github.com/OWNER/REPO/discussions). - [x] I have added a clear and descriptive title that summarizes the issue. - [x] I have read [how to create a minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example). - [x] I have included a **self-contained**, minimal code example that reproduces the issue — including **all relevant imports**. The code can be run *as is*. ``` const geminiLlm = googleGenAIProviderFactory.create(geminiLlmConfig); // Create specialized agents using createReactAgent const automationDataCollectorAgent = createReactAgent({ llm: geminiLlm.model, tools: coralogixTools, name: 'automation_data_collector', prompt: 'Gather Coralogix metrics for the given automationId using the provided MCP tools. Query the "automations" Coralogix account only.', includeAgentName: 'inline', }); const automationInsightsSummarizerAgent = createReactAgent({ llm: openAIProviderFactory.create(llmConfig).model, tools: [], name: 'automation-insights-summarizer', prompt: 'Summarize the previously collected Coralogix data into clear insights and recommendations', }); const workflow = createSupervisor({ agents: [automationDataCollectorAgent, automationInsightsSummarizerAgent], llm: openAIProviderFactory.create(llmConfig).model, prompt: 'You are managing automation diagnostics. Use the automation_data_collector for all tasks.', }); return workflow.compile({ checkpointer, }); ```
yindo closed this issue 2026-02-15 18:15:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#268