Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
@carsonrodrigues.bsky.socialNov 30, 2026, 1:31 PM

Saath is a small team of AIs built with Google ADK. One reads policies, one coaches you at the desk, others handle rules.

Google's Decisions API picks who answers, like a hospital reception desk. Part 9 by @carsonmarz and team. saath.co.in. Follow for Part 10. #GoogleADK

?Unknown authorNov 30, 2026, 1:13 PM

Maybe in the agentic world no API or function needs to throw errors? And instead return good error objects describing what transpired so that agent consumers can retry/improve/explain to user the situation?

#GoogleADK #AIAgents #TypeScript #SoftwareEngineering

const bookFlight = new FunctionTool({
  name: 'book_flight',
  execute: async ({ date, seat }) => {
    if (!isAvailable(date, seat)) {
      // Return a clear object so the model can pick another seat
      return { status: 'error', reason: `Seat ${seat} is taken`, alternatives: ['12A', '12C'] };
    }
    return { status: 'ok', bookingId: await reserve(date, seat) };
  },
});
?Unknown authorNov 27, 2026, 10:23 AM

Obviously, do not beg the model to refrain from using certain tools; just do not provide them

#GoogleADK #AIAgents #Security #TypeScript

?Unknown authorNov 26, 2026, 10:28 AM

#GoogleADK #AIAgents #LLM #PromptCaching

?Unknown authorNov 25, 2026, 12:38 PM

In ADK a long-running tool is what we call a background job

Your agent can kick something off, lay back and continue answering the user

#GoogleADK #AIAgents #TypeScript #WebDev

const exportReport = new FunctionTool({
  name: 'export_report',
  description: 'Starts a background PDF export and returns a job ID.',
  isLongRunning: true,
  execute: async ({ month }) => {
    const jobId = await queuePdfExport(month);
    return { status: 'pending', jobId };
  },
});
@linotadros.bsky.socialNov 25, 2026, 12:34 AM

🔥 Microsoft + Google? C# + Python?
Why choose when your AI Agents can collaborate?
Watch Microsoft Agent Framework and Google ADK work together!
🎬 Part 1: youtu.be/pl1k9Gv4_c8 🎬 Part 2: youtu.be/qY9Y4dEKVQc
#AgenticAI #GoogleADK #MicrosoftAgentFramework @thetrainingboss

AI Revolution
?Unknown authorNov 24, 2026, 11:43 AM

Building AI agent locally, quickly iterating? Use a swappable InMemorySessionService and have it changed to a DB storage in production

#GoogleADK #AIAgents #TypeScript #WebDev

const sessionService = isProd
  ? new DatabaseSessionService('sqlite://sessions.db')
  : new InMemorySessionService();

const runner = new Runner({
  agent: supportAgent,
  appName: 'helpdesk',
  sessionService,
});
?Unknown authorNov 23, 2026, 4:13 PM

In Google ADK, you can override the agent response with `beforeAgentCallback` to enforce, for example, role-based access control for users

Really shouldn't be asking the LLM to enforce it

#GoogleADK #AIAgents #TypeScript

TypeScript code in a dark editor tab named reports.agent.ts. An LlmAgent named reports, with model gemini-4-neon and the instruction "Write sales reports from the data the user shares.", sets a beforeAgentCallback that takes the context, highlighted. If context.state.get('user:role') is 'analyst', highlighted, it returns undefined, with the comment "run the agent as usual". Otherwise, under the comment "Returned content becomes the reply; the model is never called", it returns, highlighted, a model message with the text "You do not have access to reports."
?Unknown authorNov 19, 2026, 11:11 AM

Tools are often reused between agents, but those agents do not need the same format of the response or even fully the same data

In Google ADK, luckily, you can (and should) trim the responses from tools to fit a given agent using `afterToolCallback`:

#GoogleADK #AIAgents #TypeScript

TypeScript code in a dark editor tab named ops.agent.ts. An onlyLateOrders function of type SingleAfterToolCallback gets the tool and its response. If the tool is not list_orders, it returns undefined, with the comment "other tools: the model sees the full result". Otherwise it reads response.orders and returns an object with only late: the ids of the orders whose status is 'late', highlighted. Below, an LlmAgent named ops with model gemini-4-hydrogen and tools [listOrders] sets afterToolCallback: onlyLateOrders, also highlighted.
?Unknown authorNov 18, 2026, 5:37 PM

And you can also write a small adapter for multiple models:

#GoogleADK #AIAgents #TypeScript

TypeScript code in a dark editor tab named providers.ts. A comment says: same questions, three providers, only the URL, key and body differ. A post helper sends a JSON POST with fetch, throws on an error status, and returns the answers. Three exports call it. jev posts to https://api.typesafe.ai/v1/systemone with a Bearer TYPESAFE_API_KEY and the body model 'jev-latest', state, questions. clef posts to the Cloudflare accounts URL ending in /ai/run/@cf/cloudflare/clef with a Bearer CLOUDFLARE_API_TOKEN and the body model 'clef', state, questions. geminiDecisions posts to https://generativelanguage.googleapis.com/v1beta/decisions with an x-goog-api-key header and the body model 'gemini-decision-1', input, questions. The three body lines are highlighted.
?Unknown authorNov 18, 2026, 5:37 PM

And you can also write a small adapter for multiple models:

#GoogleADK #AIAgents #TypeScript

TypeScript code in a dark editor tab named providers.ts. A comment says: same questions, three providers, only the URL, key and body differ. A post helper sends a JSON POST with fetch, throws on an error status, and returns the answers. Three exports call it. jev posts to https://api.typesafe.ai/v1/systemone with a Bearer TYPESAFE_API_KEY and the body model 'jev-latest', state, questions. clef posts to the Cloudflare accounts URL ending in /ai/run/@cf/cloudflare/clef with a Bearer CLOUDFLARE_API_TOKEN and the body model 'clef', state, questions. geminiDecisions posts to https://generativelanguage.googleapis.com/v1beta/decisions with an x-goog-api-key header and the body model 'gemini-decision-1', input, questions. The three body lines are highlighted.
?Unknown authorNov 17, 2026, 12:39 PM

Solution: use Zod's `safeParse` after the subagent is done working

#GoogleADK #AIAgents #TypeScript

?Unknown authorNov 14, 2026, 11:16 AM

Cool thing is, you or your agent can add it into a key-value kind of vault that is also persisted into the very system running your agent (DB when running on a database or in-memory for test runs)

#GoogleADK #AIAgents #TypeScript

?Unknown authorNov 13, 2026, 12:52 PM

And now your users can also utilize the power of skills:

#GoogleADK #AIAgents #TypeScript

A dark editor tab named "one conversation". The customer writes: "My kettle from order A-1001 arrived cracked. Can I just get my money back? I live in Berlin." The agent calls load_skill("damaged-item") and load_skill("refund-policy"), then get_order("A-1001"), which returns: Glass kettle, $49, DE, delivered Nov 4. Highlighted, it then calls load_skill_resource("refund-policy", "references/eu.md"), which returns: refund or replacement, customer's choice, shipping refunded. The agent replies: "Sorry about the cracked kettle! Since you're in Germany you can choose: a full refund of $49, shipping included, or a free replacement. Either way you keep the broken one. Could you send a photo of the damage and the box? Then I'll start the refund right away."
?Unknown authorNov 12, 2026, 2:35 PM

Wow, turns out it has never been easier to turn an existing API into tools for your ADK agent; just use `OpenAPIToolset`

(Please don't do this with just any API, your agent doesn't need this many tools; choose which endpoints to use with `toolFilter`)

#GoogleADK #AIAgents #TypeScript

TypeScript code in a dark editor tab named support-agent.ts. It imports LlmAgent and OpenAPIToolset from @google/adk, then fetches an OpenAPI spec from https://api.example.com/openapi.json. Next (highlighted), it creates shopApi = new OpenAPIToolset with specDict: spec. A comment says "every endpoint becomes a tool, so keep only the ones the agent needs", and the highlighted line below it sets toolFilter to 'get_order' and 'refund_order'. Finally, it exports supportAgent = new LlmAgent with name 'support_agent', model 'gemini-3.8-flash', the instruction 'Help customers check and refund their orders.' and tools: [shopApi].
?Unknown authorNov 11, 2026, 4:08 PM

With Google ADK, you can route harder tasks to smarter models with `RoutedLlm` to save some money

In practice though, I would suggest avoiding this, since you can mess up the KV cache and inadvertently spend MORE money

Also you need a very good classifier

#GoogleADK #AIAgents #Gemini

TypeScript code for a Google ADK agent, in a dark editor tab named support-agent.ts. A RoutedLlm (highlighted) holds two models: flash, a Gemini with the model gemini-3.8-flash, and argon, a Gemini with the model gemini-4-argon. A highlighted comment says: the hard part: a classifier that knows what "hard" means. The highlighted router function returns 'argon' when isHardTask(request) is true and 'flash' otherwise. Below, an LlmAgent named support uses this model, with the instruction "Help customers with their orders" and the tools findOrder and refundOrder.
?Unknown authorNov 10, 2026, 3:34 PM

But whenever this can be calculated deterministically (like "whenever you are about to spend more than $100"), Google ADK provides a very simple way out with `requireConfirmation`:

#Agents #GoogleADK #TypeScript

@pyladiesams.bsky.socialNov 9, 2026, 7:57 PM

Build multi-agent workflows with #GoogleADK at our event with #KickstartAI!

Learn from Batul Bombaywala how to build a travel assistant powered by multiple structured dependable #AIAgents.

🕡 When: 26/11 6:00-9:00 PM
📍 Where: Waag Futurelab + online

RSVP: www.meetup.com/pyladiesams/...

meetup.comBuild a Multi-Agent Travel Assistant with Google ADK, Thu, Nov 26, 2026, 6:00 PM | MeetupThis is a joint event with **[Kickstart AI](https://kickstart.ai/).** **Important!!! Please register for the event [here](https://workshop-november26.kickstartai-events.org
?Unknown authorNov 9, 2026, 12:55 PM

For that, Google ADK provides the `ReflectAndRetryToolPlugin` which gives you all of these options:

#GoogleADK #AIAgents #TypeScript #GenAI

?Unknown authorOct 26, 2026, 2:10 PM

www.youtube.com/watch?v=v6yq...

#AI #AIAgents #GoogleADK #TypeScript