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 type | What your tool sees in 2.14 |
|---|---|
plain Enum | member; 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, IntEnum | formats 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
- ADK 2.14.0 release notes, Google ADK maintainers, 2026-11-07: "Compare against members, use
.value, or switch toStrEnum." - Commit: convert Enum tool arguments to the declared member, Somay-kousis, 2026-10-28: "
StrEnumandIntEnumformat as their value and are unaffected."
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