This folder contains the Freeplay Python ADK, which provides integration between Freeplay and Google ADK.
You can use it to instrument your Google ADK agents and send traces to Freeplay to observe and analyze your agent's behavior.
If you choose, you can also move your prompts into Freeplay for centralized management and versioning, which can help you run experiments efficiently and let your whole team collaborate on your agent's prompts, even for users that don't feel comfortable writing code.
Setup
Setup ADK
First, make sure you can run a simple agent Python Quickstart for ADK. If you already have an agent that you want to observe using Freeplay, you can move on to the next step.
Sign up for Freeplay
Sign up for an account on Freeplay. It's free to get started.
Once you've signed up and created a project in Freeplay, copy the project ID from the URL. For example, if your project has the URL
https://app.freeplay.ai/projects/532982fa-a847-4e87-9c44-7e79b98cc965/sessions, your project ID would be 532982fa-a847-4e87-9c44-7e79b98cc965.
Create an API key on the Freeplay API Access page.
Set the project ID, API URL and API key in your environment file:
FREEPLAY_PROJECT_ID=
FREEPLAY_API_URL=https://app.freeplay.ai/api
FREEPLAY_API_KEY=
If you are using a private Freeplay instance, set the FREEPLAY_API_URL to your instance's URL, for example: https://my-company.freeplay.ai/api.
Install the library
You can install the Freeplay Python ADK using pip:
pip install freeplay-python-adk
Or uv:
uv add freeplay-python-adk
Instrument your agent
Instrument your code to use the Freeplay Python ADK library.
We recommend doing this in the config.py file that runs before your agent is initialized.
from freeplay_python_adk import FreeplayADK
FreeplayADK.initialize_observability()
Add the FreeplayObservabilityPlugin to your app's plugins:
from freeplay_python_adk.freeplay_observability_plugin import FreeplayObservabilityPlugin
from google.adk.apps import App
app = App(
name="my_agent_app",
root_agent=my_agent,
plugins=[FreeplayObservabilityPlugin()],
)
And run your app! You should see traces show up in the Freeplay application.
You can run your app from this directory like so: uv run adk run examples.
Metadata
Release files for freeplay-python-adk 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| freeplay_python_adk-0.2.5.tar.gz | 445.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| freeplay_python_adk-0.2.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 453.1 kB
Release files / freeplay_python_adk-0.2.5.tar.gz
| Download URL | freeplay_python_adk-0.2.5.tar.gz |
|---|---|
| Size | 445.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6af6ff6c28e623cf0a8d8ed55f8c3a6e7abf491751e3132904ca1a0224836af
|
|
BLAKE2b-256 checksum How to use checksums |
2ab5cfa1610147cfd8d93c98005c8866801290f804b25bc680275ef5866f7a49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / freeplay_python_adk-0.2.5-py3-none-any.whl
| Download URL | freeplay_python_adk-0.2.5-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c194ec37fa3ca5c3fcb9263a67ee5cacdc52b0ad8f94ac67ddbde2f6e0309345
|
|
BLAKE2b-256 checksum How to use checksums |
2a408463878bcea09790cfe990e60feaa91248c1dddd6c10738a7fdd6db0906c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|