{"id":15005,"library":"uipath-langchain","title":"UiPath LangChain Integration","description":"The UiPath LangChain Integration SDK enables developers to build and deploy LangGraph agents that interact with the UiPath Cloud Platform. It provides tools for interacting with UiPath processes and activities within LangChain workflows. The current PyPI version is 0.9.26. Its release cadence is currently irregular, with significant future releases (v0.1.0, v0.2.0) announced for late 2025.","status":"active","version":"0.9.26","language":"en","source_language":"en","source_url":"https://github.com/UiPath/uipath-langchain-python","tags":["langchain","uipath","automation","rpa","llm","agent"],"install":[{"cmd":"pip install uipath-langchain","lang":"bash","label":"Install stable version"}],"dependencies":[{"reason":"Core dependency for building LLM applications.","package":"langchain","optional":false},{"reason":"Core dependency for building robust, stateful LLM agents.","package":"langgraph","optional":false},{"reason":"Required for interaction with UiPath services and platform.","package":"uipath","optional":false},{"reason":"Specific runtime components for UiPath integration.","package":"uipath-runtime","optional":false},{"reason":"Used for data validation and settings management within LangChain and UiPath integrations.","package":"pydantic","optional":false}],"imports":[{"symbol":"UiPathTools","correct":"from uipath_langchain.tool_interfaces import UiPathTools"},{"symbol":"UiPathChatModel","correct":"from uipath_langchain.chat_models import UiPathChatModel"},{"symbol":"UiPathLLM","correct":"from uipath_langchain.llms import UiPathLLM"},{"symbol":"UiPathEmbeddings","correct":"from uipath_langchain.embeddings import UiPathEmbeddings"}],"quickstart":{"code":"import os\nfrom uipath_langchain.tool_interfaces import UiPathTools\n\n# Configure UiPath LangChain integration\n# Replace with your actual values or ensure environment variables are set.\n# These are placeholders and must be valid for the integration to work.\nos.environ[\"LANGCHAIN_API_KEY\"] = os.environ.get(\"LANGCHAIN_API_KEY\", \"your_langchain_api_key_here\")\nos.environ[\"LANGCHAIN_API_URL\"] = os.environ.get(\"LANGCHAIN_API_URL\", \"https://cloud.uipath.com/langchain_api\")\nos.environ[\"UIPATH_AGENT_ID\"] = os.environ.get(\"UIPATH_AGENT_ID\", \"your_uipath_agent_id_here\")\n\nprint(\"Attempting to initialize UiPathTools...\")\ntry:\n    uipath_tools = UiPathTools()\n    available_tools = uipath_tools.get_available_tools()\n    print(f\"\\nSuccessfully initialized UiPathTools. Found {len(available_tools)} tools.\")\n    for tool in available_tools:\n        print(f\"- Tool Name: {tool.name}, Description: {tool.description}\")\n\n    print(\"\\nFor full agent integration, you would typically integrate these tools with a LangChain LLM and AgentExecutor.\")\n    print(\"Example:\")\n    print(\"  from uipath_langchain.chat_models import UiPathChatModel\")\n    print(\"  from langchain.agents import AgentExecutor, create_react_agent\")\n    print(\"  from langchain import hub\")\n    print(\"  from langchain_core.tools import Tool\")\n    print(\"  # llm = UiPathChatModel()\")\n    print(\"  # tools_for_agent = [Tool(name=t.name, func=t.func, description=t.description) for t in available_tools]\")\n    print(\"  # prompt = hub.pull('hwchase17/react')\")\n    print(\"  # agent = create_react_agent(llm, tools_for_agent, prompt)\")\n    print(\"  # agent_executor = AgentExecutor(agent=agent, tools=tools_for_agent, verbose=True)\")\n    print(\"  # response = agent_executor.invoke({'input': 'Your query that uses a UiPath tool'})\")\n\nexcept Exception as e:\n    print(f\"\\nFailed to initialize UiPathTools: {e}\")\n    print(\"Please ensure your LANGCHAIN_API_KEY, LANGCHAIN_API_URL, and UIPATH_AGENT_ID are correctly configured and reachable.\")\n    print(\"Also, verify that the UiPath Assistant is running and connected if you expect specific tools.\")\n","lang":"python","description":"This quickstart demonstrates how to initialize the UiPathTools and list available UiPath automation tools. It requires environment variables for UiPath LangChain API Key, API URL, and an optional Agent ID to connect to the UiPath platform. A successful run will list the tools discovered, or provide an error if configuration is incorrect."},"warnings":[{"fix":"For versions <0.1.0 (like 0.9.26), ensure your LangChain and LangGraph versions adhere to the `install_requires` specified in the `0.9.x` series (e.g., LangChain <0.3.0, LangGraph <0.1.0). When upgrading to v0.1.0+, update your LangChain and LangGraph dependencies accordingly.","message":"Future versions (v0.1.0 and above, projected for Dec 2025) will require LangChain 1.0.0+ and LangGraph 1.0.0+. This is a significant dependency upgrade.","severity":"breaking","affected_versions":">=0.1.0"},{"fix":"Stick to LangChain versions `<0.3.0` and LangGraph versions `<0.1.0` when using `uipath-langchain` version `0.9.26`.","message":"The current PyPI version `0.9.26` is incompatible with LangChain `1.0.0+` and LangGraph `1.0.0+`. Attempting to use these newer versions will likely result in import errors or runtime issues.","severity":"gotcha","affected_versions":"<0.1.0"},{"fix":"Always review the specific dependency requirements for the `uipath-langchain` version you are using to avoid version conflicts with the core `uipath` library.","message":"Dependency requirements for the `uipath` library also change between `uipath-langchain` versions. `0.9.26` expects `uipath>=2.0.0,<3.0.0`, while future releases like `v0.1.0` specify `uipath 2.2.0` and `v0.2.0` specifies `uipath 2.3.0` and `uipath-runtime 0.3.0`.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-15T00:00:00.000Z","next_check":"2026-07-14T00:00:00.000Z","problems":[],"ecosystem":"pypi"}