<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python on MCP Toolbox for Databases</title><link>/documentation/connect-to/toolbox-sdks/python-sdk/</link><description>Recent content in Python on MCP Toolbox for Databases</description><generator>Hugo</generator><language>en</language><atom:link href="/documentation/connect-to/toolbox-sdks/python-sdk/index.xml" rel="self" type="application/rss+xml"/><item><title>ADK</title><link>/documentation/connect-to/toolbox-sdks/python-sdk/adk/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/documentation/connect-to/toolbox-sdks/python-sdk/adk/</guid><description>&lt;h2 id="overview">Overview&lt;/h2>
&lt;p>The &lt;code>toolbox-adk&lt;/code> package provides a Python interface to the MCP Toolbox service, enabling you to load and invoke tools from your own applications.&lt;/p>
&lt;h2 id="installation">Installation&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">pip install google-adk&lt;span class="o">[&lt;/span>toolbox&lt;span class="o">]&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="usage">Usage&lt;/h2>
&lt;p>The primary entry point is the &lt;code>ToolboxToolset&lt;/code>, which loads tools from a remote Toolbox server and adapts them for use with ADK agents.&lt;/p>
&lt;style type="text/css">
 
 .notice {
 --title-color: #fff;
 --title-background-color: #6be;
 --content-color: #444;
 --content-background-color: #e7f2fa;
 }

 .notice.info {
 --title-background-color: #fb7;
 --content-background-color: #fec;
 }

 .notice.tip {
 --title-background-color: #5a5;
 --content-background-color: #efe;
 }

 .notice.warning {
 --title-background-color: #c33;
 --content-background-color: #fee;
 }

 
 @media (prefers-color-scheme:dark) {
 .notice {
 --title-color: #fff;
 --title-background-color: #069;
 --content-color: #ddd;
 --content-background-color: #023;
 }

 .notice.info {
 --title-background-color: #a50;
 --content-background-color: #420;
 }

 .notice.tip {
 --title-background-color: #363;
 --content-background-color: #121;
 }

 .notice.warning {
 --title-background-color: #800;
 --content-background-color: #400;
 }
 }

 body.dark .notice {
 --title-color: #fff;
 --title-background-color: #069;
 --content-color: #ddd;
 --content-background-color: #023;
 }

 body.dark .notice.info {
 --title-background-color: #a50;
 --content-background-color: #420;
 }

 body.dark .notice.tip {
 --title-background-color: #363;
 --content-background-color: #121;
 }

 body.dark .notice.warning {
 --title-background-color: #800;
 --content-background-color: #400;
 }

 
 .notice {
 padding: 18px;
 line-height: 24px;
 margin-bottom: 24px;
 border-radius: 4px;
 color: var(--content-color);
 background: var(--content-background-color);
 }

 .notice p:last-child {
 margin-bottom: 0
 }

 
 .notice-title {
 margin: -18px -18px 12px;
 padding: 4px 18px;
 border-radius: 4px 4px 0 0;
 font-weight: 700;
 color: var(--title-color);
 background: var(--title-background-color);
 }

 
 .icon-notice {
 display: inline-flex;
 align-self: center;
 margin-right: 8px;
 }

 .icon-notice img,
 .icon-notice svg {
 height: 1em;
 width: 1em;
 fill: currentColor;
 }

 .icon-notice img,
 .icon-notice.baseline svg {
 top: .125em;
 position: relative;
 }
&lt;/style>&lt;div class="notice note" >
 &lt;p class="notice-title">
 &lt;span class="icon-notice baseline">
 &lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 128 300 300">
 &lt;path d="M150 128c82.813 0 150 67.188 150 150 0 82.813-67.188 150-150 150C67.187 428 0 360.812 0 278c0-82.813 67.188-150 150-150Zm25 243.555v-37.11c0-3.515-2.734-6.445-6.055-6.445h-37.5c-3.515 0-6.445 2.93-6.445 6.445v37.11c0 3.515 2.93 6.445 6.445 6.445h37.5c3.32 0 6.055-2.93 6.055-6.445Zm-.39-67.188 3.515-121.289c0-1.367-.586-2.734-1.953-3.516-1.172-.976-2.93-1.562-4.688-1.562h-42.968c-1.758 0-3.516.586-4.688 1.563-1.367.78-1.953 2.148-1.953 3.515l3.32 121.29c0 2.734 2.93 4.882 6.64 4.882h36.134c3.515 0 6.445-2.148 6.64-4.883Z"/>
&lt;/svg>

 &lt;/span>Note&lt;/p></description></item><item><title>Core</title><link>/documentation/connect-to/toolbox-sdks/python-sdk/core/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/documentation/connect-to/toolbox-sdks/python-sdk/core/</guid><description>&lt;h2 id="overview">Overview&lt;/h2>
&lt;p>The &lt;code>toolbox-core&lt;/code> package provides a Python interface to the MCP Toolbox service, enabling you to load and invoke tools from your own applications.&lt;/p>
&lt;h2 id="installation">Installation&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">pip install toolbox-core
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;style type="text/css">
 
 .notice {
 --title-color: #fff;
 --title-background-color: #6be;
 --content-color: #444;
 --content-background-color: #e7f2fa;
 }

 .notice.info {
 --title-background-color: #fb7;
 --content-background-color: #fec;
 }

 .notice.tip {
 --title-background-color: #5a5;
 --content-background-color: #efe;
 }

 .notice.warning {
 --title-background-color: #c33;
 --content-background-color: #fee;
 }

 
 @media (prefers-color-scheme:dark) {
 .notice {
 --title-color: #fff;
 --title-background-color: #069;
 --content-color: #ddd;
 --content-background-color: #023;
 }

 .notice.info {
 --title-background-color: #a50;
 --content-background-color: #420;
 }

 .notice.tip {
 --title-background-color: #363;
 --content-background-color: #121;
 }

 .notice.warning {
 --title-background-color: #800;
 --content-background-color: #400;
 }
 }

 body.dark .notice {
 --title-color: #fff;
 --title-background-color: #069;
 --content-color: #ddd;
 --content-background-color: #023;
 }

 body.dark .notice.info {
 --title-background-color: #a50;
 --content-background-color: #420;
 }

 body.dark .notice.tip {
 --title-background-color: #363;
 --content-background-color: #121;
 }

 body.dark .notice.warning {
 --title-background-color: #800;
 --content-background-color: #400;
 }

 
 .notice {
 padding: 18px;
 line-height: 24px;
 margin-bottom: 24px;
 border-radius: 4px;
 color: var(--content-color);
 background: var(--content-background-color);
 }

 .notice p:last-child {
 margin-bottom: 0
 }

 
 .notice-title {
 margin: -18px -18px 12px;
 padding: 4px 18px;
 border-radius: 4px 4px 0 0;
 font-weight: 700;
 color: var(--title-color);
 background: var(--title-background-color);
 }

 
 .icon-notice {
 display: inline-flex;
 align-self: center;
 margin-right: 8px;
 }

 .icon-notice img,
 .icon-notice svg {
 height: 1em;
 width: 1em;
 fill: currentColor;
 }

 .icon-notice img,
 .icon-notice.baseline svg {
 top: .125em;
 position: relative;
 }
&lt;/style>&lt;div class="notice note" >
 &lt;p class="notice-title">
 &lt;span class="icon-notice baseline">
 &lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 128 300 300">
 &lt;path d="M150 128c82.813 0 150 67.188 150 150 0 82.813-67.188 150-150 150C67.187 428 0 360.812 0 278c0-82.813 67.188-150 150-150Zm25 243.555v-37.11c0-3.515-2.734-6.445-6.055-6.445h-37.5c-3.515 0-6.445 2.93-6.445 6.445v37.11c0 3.515 2.93 6.445 6.445 6.445h37.5c3.32 0 6.055-2.93 6.055-6.445Zm-.39-67.188 3.515-121.289c0-1.367-.586-2.734-1.953-3.516-1.172-.976-2.93-1.562-4.688-1.562h-42.968c-1.758 0-3.516.586-4.688 1.563-1.367.78-1.953 2.148-1.953 3.515l3.32 121.29c0 2.734 2.93 4.882 6.64 4.882h36.134c3.515 0 6.445-2.148 6.64-4.883Z"/>
&lt;/svg>

 &lt;/span>Note&lt;/p></description></item><item><title>LangChain/LangGraph</title><link>/documentation/connect-to/toolbox-sdks/python-sdk/langchain/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/documentation/connect-to/toolbox-sdks/python-sdk/langchain/</guid><description>&lt;h2 id="overview">Overview&lt;/h2>
&lt;p>The &lt;code>toolbox-langchain&lt;/code> package provides a Python interface to the MCP Toolbox service, enabling you to load and invoke tools from your own applications.&lt;/p>
&lt;h2 id="installation">Installation&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">pip install toolbox-langchain
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="quickstart">Quickstart&lt;/h2>
&lt;p>Here&amp;rsquo;s a minimal example to get you started using
&lt;a href="https://langchain-ai.github.io/langgraph/reference/prebuilt/#langgraph.prebuilt.chat_agent_executor.create_react_agent">LangGraph&lt;/a>:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-py" data-lang="py">&lt;span class="line">&lt;span class="cl">&lt;span class="kn">from&lt;/span> &lt;span class="nn">toolbox_langchain&lt;/span> &lt;span class="kn">import&lt;/span> &lt;span class="n">ToolboxClient&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="kn">from&lt;/span> &lt;span class="nn">langchain_google_vertexai&lt;/span> &lt;span class="kn">import&lt;/span> &lt;span class="n">ChatVertexAI&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="kn">from&lt;/span> &lt;span class="nn">langgraph.prebuilt&lt;/span> &lt;span class="kn">import&lt;/span> &lt;span class="n">create_react_agent&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">async&lt;/span> &lt;span class="k">with&lt;/span> &lt;span class="n">ToolboxClient&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s2">&amp;#34;http://127.0.0.1:5000&amp;#34;&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="k">as&lt;/span> &lt;span class="n">toolbox&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">tools&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">toolbox&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">load_toolset&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">model&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">ChatVertexAI&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">model&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s2">&amp;#34;gemini-3-flash-preview&amp;#34;&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">agent&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">create_react_agent&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">model&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">tools&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">prompt&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="s2">&amp;#34;How&amp;#39;s the weather today?&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">for&lt;/span> &lt;span class="n">s&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="n">agent&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">stream&lt;/span>&lt;span class="p">({&lt;/span>&lt;span class="s2">&amp;#34;messages&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">[(&lt;/span>&lt;span class="s2">&amp;#34;user&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">prompt&lt;/span>&lt;span class="p">)]},&lt;/span> &lt;span class="n">stream_mode&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s2">&amp;#34;values&amp;#34;&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">message&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">s&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="s2">&amp;#34;messages&amp;#34;&lt;/span>&lt;span class="p">][&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="nb">isinstance&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">message&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nb">tuple&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nb">print&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">message&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">else&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">message&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">pretty_print&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;style type="text/css">
 
 .notice {
 --title-color: #fff;
 --title-background-color: #6be;
 --content-color: #444;
 --content-background-color: #e7f2fa;
 }

 .notice.info {
 --title-background-color: #fb7;
 --content-background-color: #fec;
 }

 .notice.tip {
 --title-background-color: #5a5;
 --content-background-color: #efe;
 }

 .notice.warning {
 --title-background-color: #c33;
 --content-background-color: #fee;
 }

 
 @media (prefers-color-scheme:dark) {
 .notice {
 --title-color: #fff;
 --title-background-color: #069;
 --content-color: #ddd;
 --content-background-color: #023;
 }

 .notice.info {
 --title-background-color: #a50;
 --content-background-color: #420;
 }

 .notice.tip {
 --title-background-color: #363;
 --content-background-color: #121;
 }

 .notice.warning {
 --title-background-color: #800;
 --content-background-color: #400;
 }
 }

 body.dark .notice {
 --title-color: #fff;
 --title-background-color: #069;
 --content-color: #ddd;
 --content-background-color: #023;
 }

 body.dark .notice.info {
 --title-background-color: #a50;
 --content-background-color: #420;
 }

 body.dark .notice.tip {
 --title-background-color: #363;
 --content-background-color: #121;
 }

 body.dark .notice.warning {
 --title-background-color: #800;
 --content-background-color: #400;
 }

 
 .notice {
 padding: 18px;
 line-height: 24px;
 margin-bottom: 24px;
 border-radius: 4px;
 color: var(--content-color);
 background: var(--content-background-color);
 }

 .notice p:last-child {
 margin-bottom: 0
 }

 
 .notice-title {
 margin: -18px -18px 12px;
 padding: 4px 18px;
 border-radius: 4px 4px 0 0;
 font-weight: 700;
 color: var(--title-color);
 background: var(--title-background-color);
 }

 
 .icon-notice {
 display: inline-flex;
 align-self: center;
 margin-right: 8px;
 }

 .icon-notice img,
 .icon-notice svg {
 height: 1em;
 width: 1em;
 fill: currentColor;
 }

 .icon-notice img,
 .icon-notice.baseline svg {
 top: .125em;
 position: relative;
 }
&lt;/style>&lt;div class="notice tip" >
 &lt;p class="notice-title">
 &lt;span class="icon-notice baseline">
 &lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="300.5 134 300 300">
 &lt;path d="M551.281 252.36c0-3.32-1.172-6.641-3.515-8.985l-17.774-17.578c-2.344-2.344-5.469-3.711-8.789-3.711-3.32 0-6.445 1.367-8.789 3.71l-79.687 79.493-44.141-44.14c-2.344-2.344-5.469-3.712-8.79-3.712-3.32 0-6.444 1.368-8.788 3.711l-17.774 17.579c-2.343 2.343-3.515 5.664-3.515 8.984 0 3.32 1.172 6.445 3.515 8.789l70.704 70.703c2.343 2.344 5.664 3.711 8.789 3.711 3.32 0 6.64-1.367 8.984-3.71l106.055-106.056c2.343-2.343 3.515-5.468 3.515-8.789ZM600.5 284c0 82.813-67.188 150-150 150-82.813 0-150-67.188-150-150 0-82.813 67.188-150 150-150 82.813 0 150 67.188 150 150Z"/>
&lt;/svg>

 &lt;/span>Tip&lt;/p></description></item><item><title>LlamaIndex</title><link>/documentation/connect-to/toolbox-sdks/python-sdk/llamaindex/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/documentation/connect-to/toolbox-sdks/python-sdk/llamaindex/</guid><description>&lt;h2 id="overview">Overview&lt;/h2>
&lt;p>The &lt;code>toolbox-llamaindex&lt;/code> package provides a Python interface to the MCP Toolbox service, enabling you to load and invoke tools from your own applications.&lt;/p>
&lt;h2 id="installation">Installation&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">pip install toolbox-llamaindex
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="quickstart">Quickstart&lt;/h2>
&lt;p>Here&amp;rsquo;s a minimal example to get you started using
&lt;a href="https://docs.llamaindex.ai/en/stable/#getting-started">LlamaIndex&lt;/a>:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-py" data-lang="py">&lt;span class="line">&lt;span class="cl">&lt;span class="kn">import&lt;/span> &lt;span class="nn">asyncio&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="kn">from&lt;/span> &lt;span class="nn">llama_index.llms.google_genai&lt;/span> &lt;span class="kn">import&lt;/span> &lt;span class="n">GoogleGenAI&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="kn">from&lt;/span> &lt;span class="nn">llama_index.core.agent.workflow&lt;/span> &lt;span class="kn">import&lt;/span> &lt;span class="n">AgentWorkflow&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="kn">from&lt;/span> &lt;span class="nn">toolbox_llamaindex&lt;/span> &lt;span class="kn">import&lt;/span> &lt;span class="n">ToolboxClient&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">async&lt;/span> &lt;span class="k">def&lt;/span> &lt;span class="nf">run_agent&lt;/span>&lt;span class="p">():&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">async&lt;/span> &lt;span class="k">with&lt;/span> &lt;span class="n">ToolboxClient&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s2">&amp;#34;http://127.0.0.1:5000&amp;#34;&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="k">as&lt;/span> &lt;span class="n">toolbox&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">tools&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">toolbox&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">load_toolset&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">vertex_model&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">GoogleGenAI&lt;/span>&lt;span class="p">(&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">model&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s2">&amp;#34;gemini-3-flash-preview&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">vertexai_config&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="p">{&lt;/span>&lt;span class="s2">&amp;#34;project&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;project-id&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s2">&amp;#34;location&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;us-central1&amp;#34;&lt;/span>&lt;span class="p">},&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">agent&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">AgentWorkflow&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">from_tools_or_functions&lt;/span>&lt;span class="p">(&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">tools&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">llm&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">vertex_model&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">system_prompt&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s2">&amp;#34;You are a helpful assistant.&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">response&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="k">await&lt;/span> &lt;span class="n">agent&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">run&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">user_msg&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s2">&amp;#34;Get some response from the agent.&amp;#34;&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nb">print&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">response&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">asyncio&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">run&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">run_agent&lt;/span>&lt;span class="p">())&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;style type="text/css">
 
 .notice {
 --title-color: #fff;
 --title-background-color: #6be;
 --content-color: #444;
 --content-background-color: #e7f2fa;
 }

 .notice.info {
 --title-background-color: #fb7;
 --content-background-color: #fec;
 }

 .notice.tip {
 --title-background-color: #5a5;
 --content-background-color: #efe;
 }

 .notice.warning {
 --title-background-color: #c33;
 --content-background-color: #fee;
 }

 
 @media (prefers-color-scheme:dark) {
 .notice {
 --title-color: #fff;
 --title-background-color: #069;
 --content-color: #ddd;
 --content-background-color: #023;
 }

 .notice.info {
 --title-background-color: #a50;
 --content-background-color: #420;
 }

 .notice.tip {
 --title-background-color: #363;
 --content-background-color: #121;
 }

 .notice.warning {
 --title-background-color: #800;
 --content-background-color: #400;
 }
 }

 body.dark .notice {
 --title-color: #fff;
 --title-background-color: #069;
 --content-color: #ddd;
 --content-background-color: #023;
 }

 body.dark .notice.info {
 --title-background-color: #a50;
 --content-background-color: #420;
 }

 body.dark .notice.tip {
 --title-background-color: #363;
 --content-background-color: #121;
 }

 body.dark .notice.warning {
 --title-background-color: #800;
 --content-background-color: #400;
 }

 
 .notice {
 padding: 18px;
 line-height: 24px;
 margin-bottom: 24px;
 border-radius: 4px;
 color: var(--content-color);
 background: var(--content-background-color);
 }

 .notice p:last-child {
 margin-bottom: 0
 }

 
 .notice-title {
 margin: -18px -18px 12px;
 padding: 4px 18px;
 border-radius: 4px 4px 0 0;
 font-weight: 700;
 color: var(--title-color);
 background: var(--title-background-color);
 }

 
 .icon-notice {
 display: inline-flex;
 align-self: center;
 margin-right: 8px;
 }

 .icon-notice img,
 .icon-notice svg {
 height: 1em;
 width: 1em;
 fill: currentColor;
 }

 .icon-notice img,
 .icon-notice.baseline svg {
 top: .125em;
 position: relative;
 }
&lt;/style>&lt;div class="notice tip" >
 &lt;p class="notice-title">
 &lt;span class="icon-notice baseline">
 &lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="300.5 134 300 300">
 &lt;path d="M551.281 252.36c0-3.32-1.172-6.641-3.515-8.985l-17.774-17.578c-2.344-2.344-5.469-3.711-8.789-3.711-3.32 0-6.445 1.367-8.789 3.71l-79.687 79.493-44.141-44.14c-2.344-2.344-5.469-3.712-8.79-3.712-3.32 0-6.444 1.368-8.788 3.711l-17.774 17.579c-2.343 2.343-3.515 5.664-3.515 8.984 0 3.32 1.172 6.445 3.515 8.789l70.704 70.703c2.343 2.344 5.664 3.711 8.789 3.711 3.32 0 6.64-1.367 8.984-3.71l106.055-106.056c2.343-2.343 3.515-5.468 3.515-8.789ZM600.5 284c0 82.813-67.188 150-150 150-82.813 0-150-67.188-150-150 0-82.813 67.188-150 150-150 82.813 0 150 67.188 150 150Z"/>
&lt;/svg>

 &lt;/span>Tip&lt;/p></description></item></channel></rss>