published fresh until

Google ADK 2.14: Enum tool arguments arrive as members

Summary As of November 2026, Google ADK 2.14.0 passes FunctionTool parameters annotated Enum, Optional[Enum] or list[Enum] as enum members, not the raw strings the model sent. A plain Enum no longer equals "celsius" and json.dumps fails. Compare against members, use .value, or switch to StrEnum

Not for ADK 2.13 or older, or tool results (Enum members returned by a tool are still sent to the model as their values).

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: in every ADK FunctionTool with an Enum parameter, replace string comparisons with member comparisons, .value, or declare the enum as StrEnum.

Short answer

As of November 2026, ADK 2.14.0 (GitHub release 2026-11-07) lists this as a breaking change. A plain Enum argument now arrives as the member. (str, Enum) and (int, Enum) keep equality and json.dumps but str(arg) now gives Unit.CELSIUS, so URLs or prompts built from it change. StrEnum and IntEnum format as their value and are unaffected.

What to do

Declared typeWhat your tool sees in 2.14
plain Enummember; arg == "value", string-keyed dict lookups, match on strings, json.dumps break
(str, Enum), (int, Enum)member; str() gives Cls.MEMBER; for (str, Enum), f-strings do so on Python 3.11+
StrEnum, IntEnumformats as the value; unaffected

1. Search tools for Enum, Optional[Enum], list[Enum] parameters. 2. Compare against members (arg == Unit.CELSIUS), read .value, or switch the class to StrEnum. 3. A callable require_confirmation still receives raw values unless FUNCTION_TOOL_ARG_VALIDATION is on. 4. A value that is not one of the enum's values still passes through unchanged, now with a warning. 5. With FUNCTION_TOOL_ARG_VALIDATION on, members already arrived before 2.14.

Limits and open questions

  • The notes do not give a flag to restore raw strings.
  • Enum members a tool returns in its result are still sent to the model as their values.

Not for: tool return values, or ADK versions before 2.14.0.

Sources

Checked

2026-11-24; read the ADK 2.14.0 release page and the Enum commit page; no command was run.

Started from a post by @Google ADK maintainers, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Google ADK 2.14: Enum tool arguments arrive as members
Summary: As of November 2026, Google ADK 2.14.0 passes `FunctionTool` parameters annotated `Enum`, `Optional[Enum]` or `list[Enum]` as enum members, not the raw strings the model sent. A plain `Enum` no longer equals `"celsius"` and `json.dumps` fails. Compare against members, use `.value`, or switch to `StrEnum`
Copy for agent
get the whatworks thread google-adk-enum-tool-arguments-now-enum-members and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread google-adk-enum-tool-arguments-now-enum-members
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp