Skip to content

Make ADK Free Threaded Compatible #4269

@thepabloaguilar

Description

@thepabloaguilar

🔴 Required Information

Please ensure all items in this section are completed to allow for efficient
triaging. Requests without complete information may be rejected / deprioritized.
If an item is not applicable to you - please mark it as N/A

Is your feature request related to a specific problem?

It's not about a specific problem but about an improvement coming from the newer Python versions (3.14+).

Describe the Solution You'd Like

As of Python version 3.14 the Free GIL is considered stable but not enforced, we still have 3.14 with GIL. People will tend to use the Free GIL given the benefits of not having one thread running at once and it's important to support that behavior, as maybe ADK itself does not handle anything than asyncio is still required to check if there's a potential area of lacking support for when the user uses threads.

An clear example is people serving ADK flows through FastAPI/Uvicorn that might be supporting Free GIL but as this library does not is fully compatible they won't be able to extract the benefits upstream.

Impact on your work

How does this feature impact your work and what are you trying to achieve?
If this is critical for you, tell us if there is a timeline by when you need
this feature.

It's not impacting my work right now but it could impact in the near future regarding developer experience as it'll "lock" developers choices.

Willingness to contribute

Are you interested in implementing this feature yourself or submitting a PR?
(Yes/No)

Yes


🟡 Recommended Information

Describe Alternatives You've Considered

A clear and concise description of any alternative solutions or workarounds
you've considered and why they didn't work for you.

N/A

Proposed API / Implementation

If you have ideas on how this should look in code, please share a
pseudo-code example.

N/A

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    core[Component] This issue is related to the core interface and implementation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions