Skip to content

[Question] runtime entity_id with ComposioToolSet in LangGraph #1536

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

Open
austinmw opened this issue Apr 10, 2025 · 0 comments
Open

[Question] runtime entity_id with ComposioToolSet in LangGraph #1536

austinmw opened this issue Apr 10, 2025 · 0 comments

Comments

@austinmw
Copy link

I'm using Composio with LangGraph and want to define tools using the App enum pattern:

composio_toolset = ComposioToolSet()
tools = composio_toolset.get_tools(apps=[App.GOOGLEDRIVE])

Currently, I need to provide an entity_id when initializing ComposioToolSet or calling get_tools. Since entity_id changes per user, I'm currently recompiling my graph for each user session.

My application has separate frontend authentication that provides the entity_id at runtime via config:

config = {
    "configurable": {
        "entity_id": user_id  # Available at runtime
    }
}

Is there a way to initialize tools once and provide the entity_id at execution time instead? Are there docs or recommended patterns for handling this use case? I'd like to avoid graph recompilation as much as possible.

Really appreciate any help you can offer, thanks!

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

1 participant