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

[Feature Request] Example with LangGraph #146

Open
nitin302 opened this issue Oct 10, 2024 · 5 comments
Open

[Feature Request] Example with LangGraph #146

nitin302 opened this issue Oct 10, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@nitin302
Copy link

Is your feature request related to a problem? Please describe.

How can we use temporal with LangGraph workflows - https://github.com/langchain-ai/langgraph? Could you give a example?

Describe the solution you'd like

LangGraph is typically used in agentic workflows and using temporal would give us the ability to scale execution.

Additional context

None

@nitin302 nitin302 added the enhancement New feature or request label Oct 10, 2024
@cretz
Copy link
Member

cretz commented Oct 10, 2024

Temporal does not really care what technology you use inside the activities, but the scaling/distribution of workflows/activities is controlled by Temporal server. https://github.com/temporalio/samples-python/tree/main/langchain sample shows using LangChain in activities and you can do the same for invoking a LangGraph workflow inside an activity. But despite using the same term "workflow", Temporal workflows and LangGraph workflows are unrelated.

@nitin302
Copy link
Author

Yes, I understand that, but an example would be helpful.

@cretz
Copy link
Member

cretz commented Oct 10, 2024

Can you use the LangChain sample, but call LangGraph instead of a LangChain in the activity? (same for any third party library, not specific to LangChain/LangGraph)

@nitin302
Copy link
Author

Yes, but i am looking for how we can make LangGraph nodes/edges become workflows/activities to make it easier to understand... It would help folks building AI agents use temporal for scaling.

@cretz
Copy link
Member

cretz commented Oct 10, 2024

I don't think LangGraph nodes/edges become workflows/activities. I think you interact with the LangGraph library via an activity like interacting with any other library occurs via activity. LangGraph primitives don't integrate in a special way with Temporal ones from what I can see at a quick glance. If there are specific suggestions to how integration could/should occur, that may help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants