• bitcoinBitcoin(BTC)$86,082.000.05%
  • ethereumEthereum(ETH)$2,742.78-0.06%
  • tetherTether(USDT)$1.000.01%
  • binancecoinBNB(BNB)$789.200.19%
  • rippleXRP(XRP)$1.614.80%
  • usd-coinUSDC(USDC)$1.000.00%
  • solanaSolana(SOL)$117.950.63%
  • tronTRON(TRX)$0.343576-1.45%
  • zcashZcash(ZEC)$1,622.357.84%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.031.76%
  • HyperliquidHyperliquid(HYPE)$96.311.33%
  • dogecoinDogecoin(DOGE)$0.1008611.69%
  • moneroMonero(XMR)$567.11-0.62%
  • whitebitWhiteBIT Coin(WBT)$86.48-0.03%
  • chainlinkChainlink(LINK)$12.98-0.21%
  • cardanoCardano(ADA)$0.2559353.32%
  • USDSUSDS(USDS)$1.000.02%
  • RainRain(RAIN)$0.012984-4.31%
  • leo-tokenLEO Token(LEO)$8.980.03%
  • stellarStellar(XLM)$0.2181392.53%
  • bitcoin-cashBitcoin Cash(BCH)$360.9034.21%
  • uniswapUniswap(UNI)$10.4315.90%
  • nearNEAR Protocol(NEAR)$4.572.31%
  • avalanche-2Avalanche(AVAX)$11.132.20%
  • litecoinLitecoin(LTC)$63.213.87%
  • Ethena USDeEthena USDe(USDE)$1.000.03%
  • daiDai(DAI)$1.000.00%
  • CantonCanton(CC)$0.113028-5.76%
  • USD1USD1(USD1)$1.000.00%
  • hedera-hashgraphHedera(HBAR)$0.0981111.70%
  • suiSui(SUI)$1.02-0.28%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.461.87%
  • shiba-inuShiba Inu(SHIB)$0.0000061.60%
  • BittensorBittensor(TAO)$312.60-2.04%
  • crypto-com-chainCronos(CRO)$0.0673271.14%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • MemeCoreMemeCore(M)$1.28-4.96%
  • paypal-usdPayPal USD(PYUSD)$1.000.01%
  • tether-goldTether Gold(XAUT)$4,319.590.03%
  • okbOKB(OKB)$124.951.95%
  • BitwayBitway(BTW)$0.9517.59%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • Ripple USDRipple USD(RLUSD)$1.000.01%
  • aaveAave(AAVE)$151.486.32%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.39%
  • mantleMantle(MNT)$0.685.59%
  • EthenaEthena(ENA)$0.2152520.88%
  • OndoOndo(ONDO)$0.4376840.41%
  • pepePepe(PEPE)$0.000005-1.57%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

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

April 26, 2025
in AI & Technology
Reading Time: 5 mins read
A A
A Coding Implementation with Arcad: Integrating Gemini Developer API Tools into LangGraph Agents for Autonomous AI Workflows
ShareShareShareShareShare

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.

!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.

YOU MAY ALSO LIKE

Nokia Open-Sources AnyJev: A Training-Free Layer That Turns Any Open LLM Into a Calibrated Decision Model

OpenAI Releases GPT-6 Sol and Luna: 50% Cheaper API Pricing and Benchmarks

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.

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.

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.

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.

from langgraph.errors import NodeInterrupt


config = {
    "configurable": {
        "thread_id": "1",
        "user_id": "[email protected]"
    }
}
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🔒 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


Asif Razzaq is the CEO of Marktechpost Media Inc.. As a visionary entrepreneur and engineer, Asif is committed to harnessing the potential of Artificial Intelligence for social good. His most recent endeavor is the launch of an Artificial Intelligence Media Platform, Marktechpost, which stands out for its in-depth coverage of machine learning and deep learning news that is both technically sound and easily understandable by a wide audience. The platform boasts of over 2 million monthly views, illustrating its popularity among audiences.

Credit: Source link

ShareTweetSendSharePin

Related Posts

Nokia Open-Sources AnyJev: A Training-Free Layer That Turns Any Open LLM Into a Calibrated Decision Model
AI & Technology

Nokia Open-Sources AnyJev: A Training-Free Layer That Turns Any Open LLM Into a Calibrated Decision Model

September 23, 2026
OpenAI Releases GPT-6 Sol and Luna: 50% Cheaper API Pricing and Benchmarks
AI & Technology

OpenAI Releases GPT-6 Sol and Luna: 50% Cheaper API Pricing and Benchmarks

September 23, 2026
The Pros And Cons Of Using A Password Manager Over An Authenticator App
AI & Technology

The Pros And Cons Of Using A Password Manager Over An Authenticator App

September 23, 2026
How To Hide Or Replace The Audio Button In iMessages
AI & Technology

How To Hide Or Replace The Audio Button In iMessages

September 22, 2026
Next Post
I’m Broke And Don’t Know What To Do

I'm Broke And Don't Know What To Do

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
Nepali army rescues stranded man after devastating floods

Nepali army rescues stranded man after devastating floods

September 22, 2026
Trump Needs To Accept Iran Deal Soon?!

Trump Needs To Accept Iran Deal Soon?!

September 20, 2026
Evacuated house collapses in China after torrential rain

Evacuated house collapses in China after torrential rain

September 18, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!