Skip to content

Failed to debug a custom engine agent in Playground #15113

@rickywck

Description

@rickywck

Describe the bug
I have followed the options and instructions with Microsoft 365 Agents Toolkit to create a LangChain weather agent - I didn't write any code and just took the default generated from the Toolkit. However, I was failed to run the agent even in Playground.

To Reproduce
Steps to reproduce the behavior:

  1. Create a custom engine agent with Microsoft 365 Agent Toolkit using VS Code.
  2. Select "Weather Agent" and then "OpenAI".
  3. Paste the OpenAI key.
  4. Select a folder and provide a name of the agent.
  5. Agent created. Goto Microsoft 365 Agents Toolkit extension and select "local" under "ENVIRONMENT".
  6. Select "Debug in Microsoft 365 Agent Playground".
  7. Encounter the following errors: "TypeError: Cannot read properties of undefined (reading 'prototype')
    at 53918 (/opt/homebrew/lib/node_modules/@microsoft/m365agentsplayground/dist/index.js:2:2480393)
    at webpack_require (/opt/homebrew/lib/node_modules/@microsoft/m365agentsplayground/dist/index.js:8:3085)
    at 6816 (/opt/homebrew/lib/node_modules/@microsoft/m365agentsplayground/dist/index.js:2:313944)
    at webpack_require (/opt/homebrew/lib/node_modules/@microsoft/m365agentsplayground/dist/index.js:8:3085)
    at 32670 (/opt/homebrew/lib/node_modules/@microsoft/m365agentsplayground/dist/index.js:2:1544654)
    at webpack_require (/opt/homebrew/lib/node_modules/@microsoft/m365agentsplayground/dist/index.js:8:3085)
    at 23410 (/opt/homebrew/lib/node_modules/@microsoft/m365agentsplayground/dist/index.js:2:1201025)
    at webpack_require (/opt/homebrew/lib/node_modules/@microsoft/m365agentsplayground/dist/index.js:8:3085)
    at 62049 (/opt/homebrew/lib/node_modules/@microsoft/m365agentsplayground/dist/index.js:2:2750125)
    at webpack_require (/opt/homebrew/lib/node_modules/@microsoft/m365agentsplayground/dist/index.js:8:3085)"

Expected behavior
Can test the generated agent.

Screenshots
If applicable, add screenshots to help explain your problem.

VS Code Extension Information (please complete the following information):

  • OS: [e.g. MacOS 15.5]
  • Version [e.g. 1.107.1]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions