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.3.tar.gz (476.6 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.3-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: freeplay_python_adk-0.2.3.tar.gz
  • Upload date:
  • Size: 476.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.3.tar.gz
Algorithm Hash digest
SHA256 9888e34247877f72d3ce0c692f5efcaf9e89387d78bc4683b8186f8655201cfa
MD5 70da8553a5b65be4a6030e29b98b53af
BLAKE2b-256 759b19b9fa770465a55eff4f6072024efe73417eaf171af06664c8f2a949265c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: freeplay_python_adk-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8faa0c48229390fb494b8be32646d7b316791f116fc881ffa8e63792be9157e0
MD5 5249b3cbacf0ac6771eef1c6a0f1d944
BLAKE2b-256 10b488d17f2d93921f96416ef65b641e52b4d8f20abb1a11d177528d3b5a69cd

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