Freeplay integration for Google ADK
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file freeplay_python_adk-0.2.4.tar.gz.
File metadata
- Download URL: freeplay_python_adk-0.2.4.tar.gz
- Upload date:
- Size: 445.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.5 {"installer":{"name":"uv","version":"0.10.5","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbea1be354ae4413cd9077f00565d09dc3df67271c1248ad5e7f9f7ea2e5142e
|
|
| MD5 |
fa8a74de0a69d1bb87c6d0d1908a7d02
|
|
| BLAKE2b-256 |
cd9c376664742ad9c6cd4bb29cfdfb41efff99861f376ae29d023780562babe5
|
File details
Details for the file freeplay_python_adk-0.2.4-py3-none-any.whl.
File metadata
- Download URL: freeplay_python_adk-0.2.4-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.5 {"installer":{"name":"uv","version":"0.10.5","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e01974fd4f1e92b178d8c8f084e09046b439cf8e122c1fddae07a40876539c6
|
|
| MD5 |
55de66064a3cdb0dabbbaec9169ad8f3
|
|
| BLAKE2b-256 |
440f658f04373201907a79e0c6607f2cdc2edc031716d5498336b383292ef36c
|