Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      From Data To Decisions: UX Strategies For Real-Time Dashboards

      September 13, 2025

      Honeycomb launches AI observability suite for developers

      September 13, 2025

      Low-Code vs No-Code Platforms for Node.js: What CTOs Must Know Before Investing

      September 12, 2025

      ServiceNow unveils Zurich AI platform

      September 12, 2025

      Building personal apps with open source and AI

      September 12, 2025

      What Can We Actually Do With corner-shape?

      September 12, 2025

      Craft, Clarity, and Care: The Story and Work of Mengchu Yao

      September 12, 2025

      Distribution Release: Q4OS 6.1

      September 12, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Learning from PHP Log to File Example

      September 13, 2025
      Recent

      Learning from PHP Log to File Example

      September 13, 2025

      Online EMI Calculator using PHP – Calculate Loan EMI, Interest, and Amortization Schedule

      September 13, 2025

      Package efficiency and dependency hygiene

      September 13, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Dmitry — The Deep Magic

      September 13, 2025
      Recent

      Dmitry — The Deep Magic

      September 13, 2025

      Right way to record and share our Terminal sessions

      September 13, 2025

      Windows 11 Powers Up WSL: How GPU Acceleration & Kernel Upgrades Change the Game

      September 13, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Machine Learning»A Coding Implementation with Arcade: Integrating Gemini Developer API Tools into LangGraph Agents for Autonomous AI Workflows

    A Coding Implementation with Arcade: Integrating Gemini Developer API Tools into LangGraph Agents for Autonomous AI Workflows

    April 26, 2025

    Arcade transforms your LangGraph agents from static conversational interfaces into dynamic, action-driven assistants by providing a rich suite of ready-made tools, including web scraping and search, as well as specialized APIs for finance, maps, and more. In this tutorial, we will learn how to initialize ArcadeToolManager, fetch individual tools (such as Web.ScrapeUrl) or entire toolkits, and seamlessly integrate them into Google’s Gemini Developer API chat model via LangChain’s ChatGoogleGenerativeAI. With a few steps, we installed dependencies, securely loaded your API keys, retrieved and inspected your tools, configured the Gemini model, and spun up a ReAct-style agent complete with checkpointed memory. Throughout, Arcade’s intuitive Python interface kept your code concise and your focus squarely on crafting powerful, real-world workflows, no low-level HTTP calls or manual parsing required.

    Copy CodeCopiedUse a different Browser
    !pip install langchain langchain-arcade langchain-google-genai langgraph

    We integrate all the core libraries you need, including LangChain’s core functionality, the Arcade integration for fetching and managing external tools, the Google GenAI connector for Gemini access via API key, and LangGraph’s orchestration framework, so you can get up and running in one go.

    Copy CodeCopiedUse a different Browser
    from getpass import getpass
    import os
    if "GOOGLE_API_KEY" not in os.environ:
        os.environ["GOOGLE_API_KEY"] = getpass("Gemini API Key: ")
    if "ARCADE_API_KEY" not in os.environ:
        os.environ["ARCADE_API_KEY"] = getpass("Arcade API Key: ")

    We securely prompt you for your Gemini and Arcade API keys, without displaying them on the screen. It sets them as environment variables, only asking if they are not already defined, to keep your credentials out of your notebook code.

    Copy CodeCopiedUse a different Browser
    from langchain_arcade import ArcadeToolManager
    manager = ArcadeToolManager(api_key=os.environ["ARCADE_API_KEY"])
    tools = manager.get_tools(tools=["Web.ScrapeUrl"], toolkits=["Google"])
    print("Loaded tools:", [t.name for t in tools])

    We initialize the ArcadeToolManager with your API key, then fetch both the Web.ScrapeUrl tool and the full Google toolkit. It finally prints out the names of the loaded tools, allowing you to confirm which capabilities are now available to your agent.

    Copy CodeCopiedUse a different Browser
    from langchain_google_genai import ChatGoogleGenerativeAI
    from langgraph.checkpoint.memory import MemorySaver
    model = ChatGoogleGenerativeAI(
        model="gemini-1.5-flash",  
        temperature=0,
        max_tokens=None,
        timeout=None,
        max_retries=2,
    )
    bound_model = model.bind_tools(tools)
    memory = MemorySaver()
    

    We initialize the Gemini Developer API chat model (gemini-1.5-flash) with zero temperature for deterministic replies, bind in your Arcade tools so the agent can call them during its reasoning, and set up a MemorySaver to persist the agent’s state checkpoint by checkpoint.

    Copy CodeCopiedUse a different Browser
    from langgraph.prebuilt import create_react_agent
    graph = create_react_agent(
        model=bound_model,
        tools=tools,
        checkpointer=memory
    )
    

    We spin up a ReAct‐style LangGraph agent that wires together your bound Gemini model, the fetched Arcade tools, and the MemorySaver checkpointer, enabling your agent to iterate through thinking, tool invocation, and reflection with state persisted across calls.

    Copy CodeCopiedUse a different Browser
    from langgraph.errors import NodeInterrupt
    config = {
        "configurable": {
            "thread_id": "1",
            "user_id": "user@example.com"
        }
    }
    user_input = {
        "messages": [
            ("user", "List any new and important emails in my inbox.")
        ]
    }
    try:
        for chunk in graph.stream(user_input, config, stream_mode="values"):
            chunk["messages"][-1].pretty_print()
    except NodeInterrupt as exc:
        print(f"n<img src="https://s.w.org/images/core/emoji/15.1.0/72x72/1f512.png" alt="🔒" class="wp-smiley" /> NodeInterrupt: {exc}")
        print("Please update your tool authorization or adjust your request, then re-run.")

    We set up your agent’s config (thread ID and user ID) and user prompt, then stream the ReAct agent’s responses, pretty-printing each chunk as it arrives. If a tool call hits an authorization guard, it catches the NodeInterrupt and tells you to update your credentials or adjust the request before retrying.

    In conclusion, by centering our agent architecture on Arcade, we gain instant access to a plug-and-play ecosystem of external capabilities that would otherwise take days to build from scratch. The bind_tools pattern merges Arcade’s toolset with Gemini’s natural-language reasoning, while LangGraph’s ReAct framework orchestrates tool invocation in response to user queries. Whether you’re crawling websites for real-time data, automating routine lookups, or embedding domain-specific APIs, Arcade scales with your ambitions, letting you swap in new tools or toolkits as your use cases evolve.


    Here is the Colab Notebook. Also, don’t forget to follow us on Twitter and join our Telegram Channel and LinkedIn Group. Don’t Forget to join our 90k+ ML SubReddit.

    🔥 [Register Now] miniCON Virtual Conference on AGENTIC AI: FREE REGISTRATION + Certificate of Attendance + 4 Hour Short Event (May 21, 9 am- 1 pm PST) + Hands on Workshop

    The post A Coding Implementation with Arcade: Integrating Gemini Developer API Tools into LangGraph Agents for Autonomous AI Workflows appeared first on MarkTechPost.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleThis AI Paper from China Proposes a Novel Training-Free Approach DEER that Allows Large Reasoning Language Models to Achieve Dynamic Early Exit in Reasoning
    Next Article LLMs Can Now Simulate Massive Societies: Researchers from Fudan University Introduce SocioVerse, an LLM-Agent-Driven World Model for Social Simulation with a User Pool of 10 Million Real Individuals

    Related Posts

    Machine Learning

    How to Evaluate Jailbreak Methods: A Case Study with the StrongREJECT Benchmark

    September 3, 2025
    Machine Learning

    Announcing the new cluster creation experience for Amazon SageMaker HyperPod

    September 3, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    Imaging startup Eyeo raises €15M to for colour-splitting sensor tech

    News & Updates

    CVE-2025-52572 – Hikka Telegram Userbot Remote Code Execution and Account Takeover Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-47771 – PowSyBl SparseMatrix Deserialization Privilege Escalation Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Authorized Vertiv Partner in India for Power & Data Center Solutions

    Web Development

    Highlights

    CVE-2025-5791 – Rust Crate Root Group Privilege Escalation

    June 6, 2025

    CVE ID : CVE-2025-5791

    Published : June 6, 2025, 2:15 p.m. | 1 hour, 21 minutes ago

    Description : A flaw was found in the user’s crate for Rust. This vulnerability allows privilege escalation via incorrect group listing when a user or process has fewer than exactly 1024 groups, leading to the erroneous inclusion of the root group in the access list.

    Severity: 7.1 | HIGH

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    Russian Hackers Breach 20+ NGOs Using Evilginx Phishing via Fake Microsoft Entra Pages

    May 27, 2025

    CodeSOD: Dating in Another Language

    April 23, 2025

    CVE-2025-4273 – Intel UEFI Secure Boot Signature Validation Bypass

    May 4, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.