Skip to content

Conversation

sydney-runkle
Copy link
Collaborator

@sydney-runkle sydney-runkle commented Sep 3, 2025

Working on swarm impl w/ this change to verify architectural value

Copy link

vercel bot commented Sep 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
langgraph-docs-preview Ignored Ignored Preview Sep 4, 2025 8:05pm

Comment on lines +474 to +476

from langgraph.agent import create_agent

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Experiencing some import issues, temporary workaround

@@ -113,7 +168,7 @@ def create_agent(
[first_node, END],
)
graph.add_conditional_edges(
last_node, _make_model_to_tools_edge(first_node), ["tools", END]
last_node, _make_model_to_tools_edge(first_node), [first_node, "tools", END]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

post_model should be able to route to model

Comment on lines 102 to 108
else:
model_ = request.model.bind_tools(request.tools, tool_choice=request.tool_choice)
output = model_.invoke(messages)
if state.response is not None:
return {"messages": output, "response": None}
else:
return {"messages": output}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We need to rebind each time here, also side note, need to add more complex structured output logic from the other agent

@sydney-runkle
Copy link
Collaborator Author

Closing for now, have ported this over to LC via langchain-ai/langchain#32828

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.

1 participant