Agent Development Kit (ADK) — a CLI for managing Agent Studio projects locally
Project description
Agent Development Kit (ADK)
A CLI and Python package for managing Agent Studio projects locally. It provides a Git-like workflow for synchronizing project configurations between your local filesystem and the Agent Studio platform.
Early Access
⚠️ The PolyAI ADK is currently in Early Access.
Changes may be pushed frequently while the platform evolves. If you encounter issues, please ensure you are running the latest version of the ADK before reporting them.
Request access to the PolyAI ADK
Once approved, the PolyAI team will provide the credentials required to use the ADK.
Prerequisites
Before using the ADK you must:
- have access to a PolyAI Agent Studio workspace
- obtain an ADK API key from the PolyAI team
Access to both is granted through the Early Access Program.
Store your API key as an environment variable named: POLY_ADK_KEY
For example:
export POLY_ADK_KEY=<your-key>
Installation
pip install polyai-adk
Once installed, use the poly command to manage your projects:
poly init # Initialize a project (interactive)
poly pull # Pull latest configuration
poly push # Push local changes
poly status # View project status
poly diff # View local changes
poly branch # Manage branches
poly format # Format resources
poly validate # Validate configuration
poly review # Create a review gist
poly deployments # List deployment history
poly docs # Output reference documentation
Usage
Install the ADK from PyPI:
pip install polyai-adk
Once installed, the poly CLI command becomes available.
poly init # Initialize a project (interactive)
poly pull # Pull latest configuration
poly push # Push local changes
poly status # View project status
poly diff # View local changes
poly branch # Manage branches
poly format # Format resources
poly validate # Validate configuration
poly review # Create a review gist
poly deployments # List deployment history
Run:
poly --help
to see all available commands.
Each command also supports --help for detailed syntax:
poly push --help
Commands
Run poly --help to see all available commands and options. Each command also supports --help for detailed syntax (e.g. poly push --help).
poly init
Initialize a new Agent Studio project locally. Runs interactively by default, prompting for region, account, and project. You can also pass these directly:
poly init
poly init --region us-1 --account_id 123 --project_id my_project
poly init --base-path /path/to/projects
poly init --format # format resources after init
poly pull
Pull the latest project configuration from Agent Studio:
poly pull
poly pull --force # overwrite all local changes
poly pull --format # format resources after pulling
poly push
Push local changes to Agent Studio:
poly push
poly push --dry-run # preview what would be pushed
poly push --skip-validation # skip local validation before pushing
poly push --force # overwrite remote changes
poly push --format # format resources before pushing
poly status
View changed, new, and deleted files in your project:
poly status
poly diff
Show diffs between your local project and the remote version, or between two named versions:
poly diff # local vs remote (all changes)
poly diff --files file1.yaml # specific files only
poly diff abc1234 # version hash vs its predecessor
poly diff --before hash1 --after hash2 # compare two specific versions
poly revert
Revert local changes:
poly revert # revert all changes
poly revert file1.yaml file2.yaml # revert specific files
poly branch
Manage branches (default branch is main):
poly branch list
poly branch current
poly branch create my-feature
poly branch switch my-feature
poly branch switch my-feature --force # discard uncommitted changes
poly format
Format project resources (Python via ruff, YAML/JSON via in-process formatting). Use --check to only report files that would change; use --ty to also run type checking.
poly format # all resources
poly format --files file1.py # specific files
poly format --check # check only, no writes
poly validate
Validate project configuration locally:
poly validate
poly review
Create a GitHub gist for reviewing changes, similar to a pull request:
poly review create # local vs remote
poly review create abc1234 # version hash vs its predecessor
poly review create --before hash1 --after hash2 # compare two specific versions
poly review create --before main --after feature-branch # compare branches
poly review list # list existing review gists
poly review delete # delete all review gists
poly deployments
List deployment history for the project:
poly deployments # last 10 sandbox deployments
poly deployments --env live # live environment
poly deployments --limit 20 --offset 10 # pagination
poly deployments --hash abc1234 # start from a specific version
poly deployments --details # full metadata per deployment
poly chat
Start an interactive chat session with your agent:
poly chat
poly chat --environment live
poly chat --channel webchat
poly chat --metadata # show functions, flows, and state each turn
poly docs
Output ADK documentation
poly docs
poly docs -all
poly docs {documentation (e.g topics)}
poly docs --output doc_file.md
Bugs & Feature Requests
Please report bugs or request features via the GitHub Issues page.
Contributing
See CONTRIBUTING.md for development setup, code style, and contribution guidelines.
License
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
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 polyai_adk-0.16.0.tar.gz.
File metadata
- Download URL: polyai_adk-0.16.0.tar.gz
- Upload date:
- Size: 253.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cb27a3c6d748b599201b55c72be751b16ec9fc7385ec6afbffb031df2ba7b52
|
|
| MD5 |
f5f13defcae1de8de9b601d43a3ba2df
|
|
| BLAKE2b-256 |
3f3eda03696217e1757a645a6487c4f4031db8e47b5ead7e2e9b5aa2b4e120ff
|
Provenance
The following attestation bundles were made for polyai_adk-0.16.0.tar.gz:
Publisher:
release.yaml on polyai/adk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polyai_adk-0.16.0.tar.gz -
Subject digest:
8cb27a3c6d748b599201b55c72be751b16ec9fc7385ec6afbffb031df2ba7b52 - Sigstore transparency entry: 1418920451
- Sigstore integration time:
-
Permalink:
polyai/adk@cbc96fcd199883ddfe0506cfaa1bd604c78e5879 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/polyai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@cbc96fcd199883ddfe0506cfaa1bd604c78e5879 -
Trigger Event:
push
-
Statement type:
File details
Details for the file polyai_adk-0.16.0-py3-none-any.whl.
File metadata
- Download URL: polyai_adk-0.16.0-py3-none-any.whl
- Upload date:
- Size: 322.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0924451e003aa363af773a8323e47eb0391a6d17dac1f74c2b17df2cd6217419
|
|
| MD5 |
be25f5c0b4bc3b147a87803f90f3163a
|
|
| BLAKE2b-256 |
a3ecb459e99697936412f79193831d76ac1817562d4cf28eac9ac3143d38a8bc
|
Provenance
The following attestation bundles were made for polyai_adk-0.16.0-py3-none-any.whl:
Publisher:
release.yaml on polyai/adk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polyai_adk-0.16.0-py3-none-any.whl -
Subject digest:
0924451e003aa363af773a8323e47eb0391a6d17dac1f74c2b17df2cd6217419 - Sigstore transparency entry: 1418920649
- Sigstore integration time:
-
Permalink:
polyai/adk@cbc96fcd199883ddfe0506cfaa1bd604c78e5879 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/polyai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@cbc96fcd199883ddfe0506cfaa1bd604c78e5879 -
Trigger Event:
push
-
Statement type: