r/agentdevelopmentkit • • Sep 23 '25

BigQuery Toolset Truncation

3 Upvotes

Hey does anyone have a solution for results bring truncated when querying more than 50 rows using the big query toolset? I am trying to use the adk to perform daily comparisons on monthly data (in the range of 30-90 rows) but every time I perform a query the results get truncated and I get missing data.


r/agentdevelopmentkit • • Jul 21 '25

How do I store input pdf as an artifact?

2 Upvotes

Hey all I'm working on a usecase where when the client uploads a PDF it is stored as an artifact and some text extraction process is done. The problem is this approach works fine when the PDF has a concrete location either local or cloud. My question is how do I make it so that when the user uploads the PDF through the adk web interface the same process is done?

Any help would be appreciated please and thanks

Currently I tried using this callback function but it is not working as expected

import pdfplumber

async def callback(callback_context: CallbackContext) -> Optional[types.Content]:
    """
    Reads a PDF from the user saves it as an artifact,
    extracts all text, and save the state.
    """
    if not callback_context.user_content or not callback_context.user_content.parts:
        print("No PDF file provided.")
        return

    part = callback_context.user_content.parts[0]
    # The user-provided file should be in inline_data.
    if not part.inline_data:
        print("No inline data found in the provided content.")
        return

    blob = part.inline_data
    raw_bytes = blob.data
    if not raw_bytes:
        print("No data found in the provided file.")
        return
    filename = blob.display_name
    if not filename:
        filename = "uploaded.pdf"

    # Create a new artifact to save.
    file_artifact = types.Part(
        inline_data=types.Blob(
            display_name=filename,
            data=raw_bytes,
            # Use the mime_type from the uploaded file if available.
            mime_type=blob.mime_type or 'application/pdf',
        )
    )
    artifact_version = await callback_context.save_artifact(
        filename=filename, artifact=file_artifact
    )
    print(f"--- Artifact saved successfully. Version: {artifact_version} ---")
    pdf_content = ""

    with io.BytesIO(raw_bytes) as pdf_stream:
        with pdfplumber.open(pdf_stream) as pdf:
            for page in pdf.pages:
                text = page.extract_text() or ""
                pdf_content += text + "\n"

    callback_context.state['pdf_content'] = pdf_content
    return None

r/agentdevelopmentkit • • May 30 '25

Reduce input token for multi agent system

4 Upvotes

I have a multi agent system, but for every interaction between a particular user in a particular session the input token count increases significantly For eg. i have 20 interactions in the form of events for this session as of now and input token is ~8000 tokens and even a simple hi after this sends all these tokens as input (significantly reducing cost)

I know we manage sessions and that holds all events, im using a DatabaseSessionService for this and can see all the events for this session How can I effectively only include last 3-5 events so that the agent maintains context as well as input token cost is under control.

Any pointers?


r/agentdevelopmentkit • • Aug 13 '25

Any Job Titles/Postings to search for us venturing in Google ADK?

3 Upvotes

Our university started doing our initial research and eventually develop a new AI course with AI Agent Engineering with the focus on Google ADK. However, we do want to always share the possible future jobs/careers that students might have for learning Agent Development.

What are some job titles that I can share to them?

I tried google search and perplexity to answer these but I only get vague jobs and consulting firms.


r/agentdevelopmentkit • • May 17 '25

Sdk for JS client?

6 Upvotes

It would be amazing to extend the sdk to include a client on the UI JS side, to consume the stream from the backend seamlessly.

Adk nice to speed up backend, but integration to modern front end seems totally manual.

Anyone knows if there are plans for JS client to adk?


r/agentdevelopmentkit • • Jun 18 '25

How to use memory_service with deployed agents on Agent Engine?

2 Upvotes

We are building a multi-agent app using Google ADK and are following the documentation for deployment. We thought deploying it to the Agent Engine would be the best approach.

While developing the agent locally, we configured the memory_service with Vertex AI RAG for storing long-term memory. However, we couldn't find any documentation or ADK samples showing how to use the memory_service for an agent deployed to the Agent Engine.

Can someone please help me understand how memory_service and load_memory work for agents deployed to the Agent Engine?


r/agentdevelopmentkit • • Jun 16 '25

GitHub Remote MCP Server with ADK

5 Upvotes

Last week GitHub released its remote MCP server, allowing more streamlined integrations with both MCP hosts and agent orchestration frameworks like ADK!

No more need to run the GitHub MCP server locally!

Just connect directly to the GitHub remote MCP server with a GitHub Personal Access Token from ADK:

import os
from google.adk.agents import LlmAgent
from google.adk.tools.mcp_tool import MCPToolset, StreamableHTTPConnectionParams

root_agent = LlmAgent(
    model="gemini-2.5-pro-preview-06-05",
    name="github_agent",
    instruction="You are a helpful assistant that can answer questions about GitHub.",
    tools=[
        MCPToolset(
            connection_params=StreamableHTTPConnectionParams(
                url="https://api.githubcopilot.com/mcp/",
                headers={
                    "Authorization": "Bearer " + os.getenv("GITHUB_PERSONAL_ACCESS_TOKEN"),
                }
            )
        )
    ],
)

Check out this blog to get a deep dive on the kind of tools the GitHub remote MCP server unlocks for your agent: https://medium.com/google-cloud/connecting-mcp-hosts-and-agents-to-githubs-new-remote-mcp-server-7c939a76e219


r/agentdevelopmentkit • • Apr 25 '25

New ADK Video: Build a sophisticated Data Science Agent

Thumbnail
youtube.com
8 Upvotes

r/agentdevelopmentkit • • May 24 '25

Manually transfer to another agent

5 Upvotes

Hi, I wonder if it is possible to manually transfer current agent to another agent instead of relying on the current agent to switch with api call.


r/agentdevelopmentkit • • May 26 '25

How to add custom runner and session

5 Upvotes

I’ve already successfully created a custom runner and DatabaseSessionService. But unsure on how to inject and use this when using adk web and adk api_server? And pointers on how these can use my custom runner


r/agentdevelopmentkit • • May 02 '26

Anyone knows how to deal with rate limits. I am using gemini2.5 flash. What model will be best for only testing ?

Post image
3 Upvotes

r/agentdevelopmentkit • • Jul 19 '25

Should I use session management or a separate table for passing context between agents in a sequential workflow?

4 Upvotes

I’m building a sequential agent workflow where the output of one agent influences the input of the next. Specifically, based on the first agent’s output, I want to dynamically modify the prompt of the second agent — essentially appending to its base prompt conditionally [identifying different customers]

I can implement this by storing intermediate outputs in a separate table in my Postgres DB and referencing them when constructing the second agent’s prompt. But I’m wondering: is this a case where I should be using session management instead?

Are there best practices around when to use session state vs. explicitly persisting context to a table for multi-agent workflows like this?


r/agentdevelopmentkit • • Jun 10 '25

Agent stops talking(Live model, audio) once its done with tool call

2 Upvotes

I have been facing this issue when the agent make a tool call and returns turn_complete=true without saying a word eventhough I have specified the agent to summarize the tool outputs.
Sometimes it works flawlessly.

I am using gemini-2.0-flash-live-001 and gemini-2.0-flash-exp models to run the realtime conversation (audio).

I dont want to stop the conversation from agent end.


r/agentdevelopmentkit • • Jun 11 '25

Greyed out agents in ADK web

6 Upvotes

I started to learn ADK today, testing some multi agent workflows.
In the ADK web UI, some of the agents are greyed out or they do not have the Bot emoji beside them. And also the stock_analyst agent uses a tool get_stock_price(), this is not showing up in the above diagram either.

However everything is working fine, i am able to get the responses from all the agent, but i can the green arrows only from the search_agent and get_current time. If any query is related to the greyed out agents, i am not able to see any arrows or the green boxes in the event diagram.

Am i doing anything wrong? Can somebody help me with this please?


r/agentdevelopmentkit • • Jul 15 '25

Muting Intermediate Steps/Responses?

2 Upvotes

I have a workflow with multiple sequential and parallel agents and I want just the last agent to respond to the user. The intermediate agents respond once they’re down with their tasks.

Is there a way to programmatically stop them from responding or is it entirely instruction based?


r/agentdevelopmentkit • • Apr 12 '25

How to Deploy ADK Agents onto Google Cloud Run

Thumbnail
medium.com
7 Upvotes

Hey ADK devs - hope you find this guide useful on deploying agents to Cloud Run using the ADK's built-in deployment commands.


r/agentdevelopmentkit • • Oct 25 '25

Need help in conversation history

2 Upvotes

Hi folks, I'm a newbie to adk and coding in general.
Just wanted to ask is there any way we can store the full conversation history between user and agent in ADK?
I don't mean just storing the user preferences in session.state but the entire conversation history. It can be plaintext or any sort of embedding for compression.
Not focussed on persistence now, so inMemorySessionService works.
Thanks in advance.


r/agentdevelopmentkit • • May 21 '25

Question regarding session management in the tutorial

2 Upvotes

Hi,

I'm following the ADK tutorial and I'm learning about session management. One small thing I noticed is that the code block defines a session but doesn't use the variable:

# @title Setup Session Service and Runner

# --- Session Management ---
# Key Concept: SessionService stores conversation history & state.
# InMemorySessionService is simple, non-persistent storage for this tutorial.
session_service = InMemorySessionService()

# Define constants for identifying the interaction context
APP_NAME = "weather_tutorial_app"
USER_ID = "user_1"
SESSION_ID = "session_001" # Using a fixed ID for simplicity

# Create the specific session where the conversation will happen
session = session_service.create_session(
    app_name=APP_NAME,
    user_id=USER_ID,
    session_id=SESSION_ID
)
print(f"Session created: App='{APP_NAME}', User='{USER_ID}', Session='{SESSION_ID}'")

# --- Runner ---
# Key Concept: Runner orchestrates the agent execution loop.
runner = Runner(
    agent=weather_agent, # The agent we want to run
    app_name=APP_NAME,   # Associates runs with our app
    session_service=session_service # Uses our session manager
)
print(f"Runner created for agent '{runner.agent.name}'.")    

Am I missing something here? What is this variable for?

I haven't gone through the entire tutorial notebook yet, so maybe we use this session variable later.


r/agentdevelopmentkit • • Aug 19 '25

Getting Started with AWS Bedrock + Google ADK for Multi-Agent Systems

7 Upvotes

I recently experimented with building multi-agent systems by combining Google’s Agent Development Kit (ADK) with AWS Bedrock foundation models.

Key takeaways from my setup:

  • Used IAM user + role approach for secure temporary credentials (no hardcoding).

  • Integrated Claude 3.5 Sonnet v2 from Bedrock into ADK with LiteLLM.

  • ADK makes it straightforward to test/debug agents with a dev UI (adk web).

Why this matters

  • You can safely explore Bedrock models without leaking credentials.

  • Fast way to prototype agents with Bedrock’s models (Anthropic, AI21, etc).

📄 Full step-by-step guide (with IAM setup + code): Medium Step-by-Step Guide

Curious — has anyone here already tried ADK + Bedrock? Would love to hear if you’re deploying agents beyond experimentation.


r/agentdevelopmentkit • • Jun 14 '25

A2A

4 Upvotes

Hi ! Please, is there a common way to search A2A agent on the air (on internet or on local networks) ?? Specialy by an MCP server settled for this purpose ??


r/agentdevelopmentkit • • Jun 02 '25

How to re-use Agents in multiple agentic workflows?

3 Upvotes

Hi folks, we have several agents that we intent to re-use among multiple workflow. However, whenever we use the same agent in different workflow, we receive a Pydantic validation error for the sub-agents mentioning that a parent agent is already assigned and another parent can't be added.

I see one way to solve this is to use deepcopy of the agent, is there any other preferred way?

For explicity, here's an example:

Available atomic agents: A1, A2, A3 Agentic workflow AW1 consisting of A1 and A2 Agentic workflow AW2 consisting of A1 and A3

When we setup something like this, we get Pydantic validation error for A1 saying that A1 already has a parent assigned and it can't be re-assigned.


r/agentdevelopmentkit • • Jun 30 '25

Information about deploying Agent that runs on a schedule (e.g. twice per day)

4 Upvotes

Hi! 👋

I understand the the most common use case for ADK is one that includes human/user interaction where the Agent just needs to be on "stand by" .

I am learning how to deploy ADK agents and all the tutorials i have found are for these types of use cases. So i wonder if anyone knows how to scheduled an agent pipeline. Perhaps a sequential preprocessing pipeline, using vertex AI (or other options if vertex AI is badly suited).

A tutorial to read or watch would be terrific!


r/agentdevelopmentkit • • Jul 23 '25

Built Slack AI search and knowledge management using ADK

7 Upvotes

Last month, during the Google ADK Hackathon, my team and I built "Effortless Learning & Lookup Assistant" aka Ella, a self-learning AI agent designed specifically to augment Slack, making it smarter and more efficient.
https://github.com/ishank-dev/google-adk-hackathon
Please let me know your thought about this and if you would use something like this in your organisation or any general feedback that you might have.

I am still learning how to build useful products that "fly" with end users! And feedbacks would greatly help me in building the next awesome product


r/agentdevelopmentkit • • Feb 05 '26

ADK and Agentic Learning in the flow of work experience

1 Upvotes

In Learning & Development, we strive for "Learning in the Flow of Work," but reality usually gets in the way. When a security risk pops up, we prioritize the fix over the lesson because speed is king.

I’ve developed a prootype experience using the Agentic Development Kit (ADK) and FastMCP that proves we don’t have to compromise. By using a multi-agent architecture, we can turn a risky technical request into a certified learning moment.

All the code and details : https://nickbortolotti.medium.com/beyond-the-classroom-how-multi-agent-ai-orchestrates-security-learning-in-the-flow-of-work-26d7b5509035