Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

freeplay_python_adk-0.2.5.tar.gz (445.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

freeplay_python_adk-0.2.5-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file freeplay_python_adk-0.2.5.tar.gz.

File metadata

  • Download URL: freeplay_python_adk-0.2.5.tar.gz
  • Upload date:
  • Size: 445.0 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for freeplay_python_adk-0.2.5.tar.gz
Algorithm Hash digest
SHA256 b6af6ff6c28e623cf0a8d8ed55f8c3a6e7abf491751e3132904ca1a0224836af
MD5 34d383caf65f3e2d78eeb4cbb354f1f5
BLAKE2b-256 2ab5cfa1610147cfd8d93c98005c8866801290f804b25bc680275ef5866f7a49

See more details on using hashes here.

File details

Details for the file freeplay_python_adk-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: freeplay_python_adk-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for freeplay_python_adk-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c194ec37fa3ca5c3fcb9263a67ee5cacdc52b0ad8f94ac67ddbde2f6e0309345
MD5 672d9cda9fe39e059d70e66229712680
BLAKE2b-256 2a408463878bcea09790cfe990e60feaa91248c1dddd6c10738a7fdd6db0906c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page