Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't enable "LANGCHAIN_TRACING_V2" to do tracing in Hierarchical Agent Teams example #514

Open
timeff opened this issue Sep 25, 2024 · 3 comments

Comments

@timeff
Copy link

timeff commented Sep 25, 2024

Hi, I am building the application using a hierarchical agent team. But when I enable the "LANGCHAIN_TRACING_V2" environment variable to send the data to the langsmith. I got the error

Error: Key team_members not found in channels
    at validateKeys (/Users/xxx/Lab/langchain-hierarchy-supervisor/node_modules/@langchain/langgraph/dist/pregel/validate.cjs:84:23)
    at CompiledStateGraph._defaults (/Users/xxx/Lab/langchain-hierarchy-supervisor/node_modules/@langchain/langgraph/dist/pregel/index.cjs:400:44)
    at CompiledStateGraph._streamIterator (/Users/xxx/Lab/langchain-hierarchy-supervisor/node_modules/@langchain/langgraph/dist/pregel/index.cjs:517:112)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  pregelTaskId: '2aa7cc38-a59e-5593-8b06-2b6963bc24fd'

At first, I thought it might be a problem with my application. But I created a new project and try copy and paste anything from the official tutorial at https://langchain-ai.github.io/langgraphjs/tutorials/multi_agent/hierarchical_agent_teams/. It turned out the same error happened again.

I can disable tracing by putting the environment variable to false but it will lose all of the tracing capability using langsmith.

@lemonps
Copy link

lemonps commented Sep 25, 2024

I have the same problem. Anyone know the solution?

@jacoblee93
Copy link
Collaborator

Very weird - will investigate!

@rpatel15-hue
Copy link

rpatel15-hue commented Oct 3, 2024

same issue for me, I wonder if it has to do with the way state is defined in the subgraphs

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

No branches or pull requests

4 participants