polyai-adk 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. polyai_adk-0.1.0/LICENSE +199 -0
  2. polyai_adk-0.1.0/PKG-INFO +248 -0
  3. polyai_adk-0.1.0/README.md +226 -0
  4. polyai_adk-0.1.0/pyproject.toml +95 -0
  5. polyai_adk-0.1.0/setup.cfg +4 -0
  6. polyai_adk-0.1.0/src/poly/cli.py +1258 -0
  7. polyai_adk-0.1.0/src/poly/console.py +272 -0
  8. polyai_adk-0.1.0/src/poly/constants.py +45 -0
  9. polyai_adk-0.1.0/src/poly/docs/__init__.py +1 -0
  10. polyai_adk-0.1.0/src/poly/handlers/__init__.py +1 -0
  11. polyai_adk-0.1.0/src/poly/handlers/github_api_handler.py +99 -0
  12. polyai_adk-0.1.0/src/poly/handlers/interface.py +364 -0
  13. polyai_adk-0.1.0/src/poly/handlers/platform_api.py +365 -0
  14. polyai_adk-0.1.0/src/poly/handlers/protobuf/__init__.py +0 -0
  15. polyai_adk-0.1.0/src/poly/handlers/protobuf/agent_settings_pb2.py +131 -0
  16. polyai_adk-0.1.0/src/poly/handlers/protobuf/agent_settings_pb2.pyi +379 -0
  17. polyai_adk-0.1.0/src/poly/handlers/protobuf/api_integrations_pb2.py +49 -0
  18. polyai_adk-0.1.0/src/poly/handlers/protobuf/api_integrations_pb2.pyi +149 -0
  19. polyai_adk-0.1.0/src/poly/handlers/protobuf/artifact_pb2.py +225 -0
  20. polyai_adk-0.1.0/src/poly/handlers/protobuf/artifact_pb2.pyi +1044 -0
  21. polyai_adk-0.1.0/src/poly/handlers/protobuf/asr_pb2.py +27 -0
  22. polyai_adk-0.1.0/src/poly/handlers/protobuf/asr_pb2.pyi +18 -0
  23. polyai_adk-0.1.0/src/poly/handlers/protobuf/asr_settings_pb2.py +31 -0
  24. polyai_adk-0.1.0/src/poly/handlers/protobuf/asr_settings_pb2.pyi +32 -0
  25. polyai_adk-0.1.0/src/poly/handlers/protobuf/bundle_pb2.py +40 -0
  26. polyai_adk-0.1.0/src/poly/handlers/protobuf/bundle_pb2.pyi +48 -0
  27. polyai_adk-0.1.0/src/poly/handlers/protobuf/channels_pb2.py +61 -0
  28. polyai_adk-0.1.0/src/poly/handlers/protobuf/channels_pb2.pyi +139 -0
  29. polyai_adk-0.1.0/src/poly/handlers/protobuf/commands_pb2.py +98 -0
  30. polyai_adk-0.1.0/src/poly/handlers/protobuf/commands_pb2.pyi +804 -0
  31. polyai_adk-0.1.0/src/poly/handlers/protobuf/content_filter_settings_pb2.py +33 -0
  32. polyai_adk-0.1.0/src/poly/handlers/protobuf/content_filter_settings_pb2.pyi +50 -0
  33. polyai_adk-0.1.0/src/poly/handlers/protobuf/csat_pb2.py +29 -0
  34. polyai_adk-0.1.0/src/poly/handlers/protobuf/csat_pb2.pyi +34 -0
  35. polyai_adk-0.1.0/src/poly/handlers/protobuf/end_function_pb2.py +40 -0
  36. polyai_adk-0.1.0/src/poly/handlers/protobuf/end_function_pb2.pyi +89 -0
  37. polyai_adk-0.1.0/src/poly/handlers/protobuf/entities_pb2.py +63 -0
  38. polyai_adk-0.1.0/src/poly/handlers/protobuf/entities_pb2.pyi +209 -0
  39. polyai_adk-0.1.0/src/poly/handlers/protobuf/experimental_config_pb2.py +32 -0
  40. polyai_adk-0.1.0/src/poly/handlers/protobuf/experimental_config_pb2.pyi +44 -0
  41. polyai_adk-0.1.0/src/poly/handlers/protobuf/flows_pb2.py +236 -0
  42. polyai_adk-0.1.0/src/poly/handlers/protobuf/flows_pb2.pyi +1087 -0
  43. polyai_adk-0.1.0/src/poly/handlers/protobuf/functions_pb2.py +85 -0
  44. polyai_adk-0.1.0/src/poly/handlers/protobuf/functions_pb2.pyi +291 -0
  45. polyai_adk-0.1.0/src/poly/handlers/protobuf/handoff_pb2.py +61 -0
  46. polyai_adk-0.1.0/src/poly/handlers/protobuf/handoff_pb2.pyi +163 -0
  47. polyai_adk-0.1.0/src/poly/handlers/protobuf/integrations_pb2.py +52 -0
  48. polyai_adk-0.1.0/src/poly/handlers/protobuf/integrations_pb2.pyi +120 -0
  49. polyai_adk-0.1.0/src/poly/handlers/protobuf/keyphrase_boosting_pb2.py +35 -0
  50. polyai_adk-0.1.0/src/poly/handlers/protobuf/keyphrase_boosting_pb2.pyi +57 -0
  51. polyai_adk-0.1.0/src/poly/handlers/protobuf/knowledge_base_pb2.py +65 -0
  52. polyai_adk-0.1.0/src/poly/handlers/protobuf/knowledge_base_pb2.pyi +170 -0
  53. polyai_adk-0.1.0/src/poly/handlers/protobuf/languages_pb2.py +35 -0
  54. polyai_adk-0.1.0/src/poly/handlers/protobuf/languages_pb2.pyi +51 -0
  55. polyai_adk-0.1.0/src/poly/handlers/protobuf/llm_settings_pb2.py +29 -0
  56. polyai_adk-0.1.0/src/poly/handlers/protobuf/llm_settings_pb2.pyi +22 -0
  57. polyai_adk-0.1.0/src/poly/handlers/protobuf/poly_platform/ragdoll/pb/ragdoll_service_grpc_pb2.py +98 -0
  58. polyai_adk-0.1.0/src/poly/handlers/protobuf/poly_platform/ragdoll/pb/ragdoll_service_grpc_pb2.pyi +368 -0
  59. polyai_adk-0.1.0/src/poly/handlers/protobuf/pronunciations_pb2.py +38 -0
  60. polyai_adk-0.1.0/src/poly/handlers/protobuf/pronunciations_pb2.pyi +100 -0
  61. polyai_adk-0.1.0/src/poly/handlers/protobuf/sms_pb2.py +53 -0
  62. polyai_adk-0.1.0/src/poly/handlers/protobuf/sms_pb2.pyi +126 -0
  63. polyai_adk-0.1.0/src/poly/handlers/protobuf/snapshot_pb2.py +53 -0
  64. polyai_adk-0.1.0/src/poly/handlers/protobuf/snapshot_pb2.pyi +90 -0
  65. polyai_adk-0.1.0/src/poly/handlers/protobuf/start_function_pb2.py +40 -0
  66. polyai_adk-0.1.0/src/poly/handlers/protobuf/start_function_pb2.pyi +89 -0
  67. polyai_adk-0.1.0/src/poly/handlers/protobuf/stop_keywords_pb2.py +43 -0
  68. polyai_adk-0.1.0/src/poly/handlers/protobuf/stop_keywords_pb2.pyi +100 -0
  69. polyai_adk-0.1.0/src/poly/handlers/protobuf/transcript_corrections_pb2.py +39 -0
  70. polyai_adk-0.1.0/src/poly/handlers/protobuf/transcript_corrections_pb2.pyi +75 -0
  71. polyai_adk-0.1.0/src/poly/handlers/protobuf/translations_pb2.py +39 -0
  72. polyai_adk-0.1.0/src/poly/handlers/protobuf/translations_pb2.pyi +77 -0
  73. polyai_adk-0.1.0/src/poly/handlers/protobuf/tts_settings_pb2.py +29 -0
  74. polyai_adk-0.1.0/src/poly/handlers/protobuf/tts_settings_pb2.pyi +22 -0
  75. polyai_adk-0.1.0/src/poly/handlers/protobuf/variables_pb2.py +95 -0
  76. polyai_adk-0.1.0/src/poly/handlers/protobuf/variables_pb2.pyi +191 -0
  77. polyai_adk-0.1.0/src/poly/handlers/protobuf/variant_pb2.py +87 -0
  78. polyai_adk-0.1.0/src/poly/handlers/protobuf/variant_pb2.pyi +239 -0
  79. polyai_adk-0.1.0/src/poly/handlers/protobuf/voice_pb2.py +63 -0
  80. polyai_adk-0.1.0/src/poly/handlers/protobuf/voice_pb2.pyi +231 -0
  81. polyai_adk-0.1.0/src/poly/handlers/sdk.py +671 -0
  82. polyai_adk-0.1.0/src/poly/handlers/sync_client.py +1105 -0
  83. polyai_adk-0.1.0/src/poly/handlers/utils.py +22 -0
  84. polyai_adk-0.1.0/src/poly/project.py +2386 -0
  85. polyai_adk-0.1.0/src/poly/resources/__init__.py +56 -0
  86. polyai_adk-0.1.0/src/poly/resources/agent_settings.py +320 -0
  87. polyai_adk-0.1.0/src/poly/resources/asr_settings.py +113 -0
  88. polyai_adk-0.1.0/src/poly/resources/channel_settings.py +345 -0
  89. polyai_adk-0.1.0/src/poly/resources/chat_settings.py +0 -0
  90. polyai_adk-0.1.0/src/poly/resources/entities.py +288 -0
  91. polyai_adk-0.1.0/src/poly/resources/experimental_config.py +90 -0
  92. polyai_adk-0.1.0/src/poly/resources/experimental_config_schema.yaml +1402 -0
  93. polyai_adk-0.1.0/src/poly/resources/flows.py +1536 -0
  94. polyai_adk-0.1.0/src/poly/resources/function.py +985 -0
  95. polyai_adk-0.1.0/src/poly/resources/handoff.py +229 -0
  96. polyai_adk-0.1.0/src/poly/resources/keyphrase_boosting.py +135 -0
  97. polyai_adk-0.1.0/src/poly/resources/phrase_filter.py +209 -0
  98. polyai_adk-0.1.0/src/poly/resources/pronunciation.py +285 -0
  99. polyai_adk-0.1.0/src/poly/resources/resource.py +593 -0
  100. polyai_adk-0.1.0/src/poly/resources/resource_utils.py +767 -0
  101. polyai_adk-0.1.0/src/poly/resources/sms.py +186 -0
  102. polyai_adk-0.1.0/src/poly/resources/topic.py +168 -0
  103. polyai_adk-0.1.0/src/poly/resources/transcript_correction.py +214 -0
  104. polyai_adk-0.1.0/src/poly/resources/variable.py +176 -0
  105. polyai_adk-0.1.0/src/poly/resources/variant_attributes.py +332 -0
  106. polyai_adk-0.1.0/src/poly/types/__init__.py +1 -0
  107. polyai_adk-0.1.0/src/poly/types/attachment.py +32 -0
  108. polyai_adk-0.1.0/src/poly/types/conv_utils.py +47 -0
  109. polyai_adk-0.1.0/src/poly/types/conversation.py +487 -0
  110. polyai_adk-0.1.0/src/poly/types/external_events.py +25 -0
  111. polyai_adk-0.1.0/src/poly/types/flow.py +35 -0
  112. polyai_adk-0.1.0/src/poly/types/history.py +33 -0
  113. polyai_adk-0.1.0/src/poly/types/log_utils.py +14 -0
  114. polyai_adk-0.1.0/src/poly/types/memory.py +18 -0
  115. polyai_adk-0.1.0/src/poly/types/secret_vault.py +23 -0
  116. polyai_adk-0.1.0/src/poly/types/sms.py +62 -0
  117. polyai_adk-0.1.0/src/poly/types/value_extraction.py +36 -0
  118. polyai_adk-0.1.0/src/poly/utils.py +406 -0
  119. polyai_adk-0.1.0/src/polyai_adk.egg-info/PKG-INFO +248 -0
  120. polyai_adk-0.1.0/src/polyai_adk.egg-info/SOURCES.txt +122 -0
  121. polyai_adk-0.1.0/src/polyai_adk.egg-info/dependency_links.txt +1 -0
  122. polyai_adk-0.1.0/src/polyai_adk.egg-info/entry_points.txt +3 -0
  123. polyai_adk-0.1.0/src/polyai_adk.egg-info/requires.txt +14 -0
  124. polyai_adk-0.1.0/src/polyai_adk.egg-info/top_level.txt +1 -0
@@ -0,0 +1,199 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to the Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by the Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding any notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format.
186
+
187
+ Copyright 2026 PolyAI Limited
188
+
189
+ Licensed under the Apache License, Version 2.0 (the "License");
190
+ you may not use this file except in compliance with the License.
191
+ You may obtain a copy of the License at
192
+
193
+ http://www.apache.org/licenses/LICENSE-2.0
194
+
195
+ Unless required by applicable law or agreed to in writing, software
196
+ distributed under the License is distributed on an "AS IS" BASIS,
197
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
198
+ See the License for the specific language governing permissions and
199
+ limitations under the License.
@@ -0,0 +1,248 @@
1
+ Metadata-Version: 2.4
2
+ Name: polyai-adk
3
+ Version: 0.1.0
4
+ Summary: Agent Development Kit (ADK) — a CLI for managing Agent Studio projects locally
5
+ Requires-Python: >=3.14.0
6
+ Description-Content-Type: text/markdown
7
+ License-File: LICENSE
8
+ Requires-Dist: protobuf>=4.21.0
9
+ Requires-Dist: rich>=13.0.0
10
+ Requires-Dist: ruamel.yaml>=0.18.0
11
+ Requires-Dist: simple-term-menu==1.4.1
12
+ Requires-Dist: jsonschema>=4.20.0
13
+ Requires-Dist: requests==2.31.0
14
+ Requires-Dist: python-dateutil==2.8.2
15
+ Requires-Dist: ruff>=0.14.0
16
+ Requires-Dist: ty
17
+ Provides-Extra: dev
18
+ Requires-Dist: pre-commit>=3.0.0; extra == "dev"
19
+ Requires-Dist: pytest>=8.0.0; extra == "dev"
20
+ Requires-Dist: tomli-w>=1.0.0; extra == "dev"
21
+ Dynamic: license-file
22
+
23
+ ![PolyAI](logo.png)
24
+
25
+ # Agent Development Kit (ADK)
26
+
27
+ [![PyPI version](https://img.shields.io/pypi/v/polyai-adk)](https://pypi.org/project/polyai-adk/)
28
+ [![Python version](https://img.shields.io/pypi/pyversions/polyai-adk)](https://pypi.org/project/polyai-adk/)
29
+ [![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)
30
+ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
31
+ [![Develop with Claude Code](https://img.shields.io/badge/Develop%20with-Claude%20Code-DC9E63?logo=claude)](https://claude.ai/download)
32
+
33
+ A CLI and Python package for managing [Agent Studio](https://studio.us.poly.ai) projects locally. It provides a Git-like workflow for synchronizing project configurations between your local filesystem and the Agent Studio platform.
34
+
35
+ ## Prerequisites
36
+
37
+ You must have access to a workspace in PolyAI Agent Studio before using this tool. Access and an API key are provided by your PolyAI contact. To request access to the PolyAI platform, reach out to [developers@poly-ai.com](mailto:developers@poly-ai.com).
38
+
39
+ ## Installation
40
+
41
+ ```bash
42
+ pip install polyai-adk
43
+ ```
44
+
45
+ Once installed, use the `poly` command to manage your projects:
46
+
47
+ ```bash
48
+ poly init # Initialize a project (interactive)
49
+ poly pull # Pull latest configuration
50
+ poly push # Push local changes
51
+ poly status # View project status
52
+ poly diff # View local changes
53
+ poly branch # Manage branches
54
+ poly format # Format resources
55
+ poly validate # Validate configuration
56
+ poly review # Create a review gist
57
+ ```
58
+
59
+ ## Usage
60
+ A whitelisted API key is needed to run any of the poly commands.
61
+
62
+ 1. Create an API key at https://studio.[us/uk/eu].poly.ai/<account-name>/data-access
63
+ 2. Contact an engineer from the developer platform team team to whitelist your API key on Kong
64
+ 3. Add the key to your env variable (typically ~/.zshrc or ~/.bashrc), and name it POLY_ADK_KEY
65
+
66
+ Once you do that, you'll be able to access agents under the <account-name> for the namespace in which the API key is generated.
67
+
68
+ *We are in the process of automating the whitelisting of the API key, and limiting the external ADK to just the production namespace.*
69
+
70
+ ## Usage
71
+
72
+ Run `poly --help` to see all available commands and options. Each command also supports `--help` for detailed syntax (e.g. `poly push --help`).
73
+
74
+ ### `poly init`
75
+
76
+ Initialize a new Agent Studio project locally. Runs interactively by default, prompting for region, account, and project. You can also pass these directly:
77
+
78
+ ```bash
79
+ poly init
80
+ poly init --region us-1 --account_id 123 --project_id my_project
81
+ poly init --base-path /path/to/projects
82
+ poly init --format # format resources after init
83
+ ```
84
+
85
+ ### `poly pull`
86
+
87
+ Pull the latest project configuration from Agent Studio:
88
+
89
+ ```bash
90
+ poly pull
91
+ poly pull --force # overwrite all local changes
92
+ poly pull --format # format resources after pulling
93
+ ```
94
+
95
+ ### `poly push`
96
+
97
+ Push local changes to Agent Studio:
98
+
99
+ ```bash
100
+ poly push
101
+ poly push --dry-run # preview what would be pushed
102
+ poly push --skip-validation # skip local validation before pushing
103
+ poly push --force # overwrite remote changes
104
+ poly push --format # format resources before pushing
105
+ ```
106
+
107
+ ### `poly status`
108
+
109
+ View changed, new, and deleted files in your project:
110
+
111
+ ```bash
112
+ poly status
113
+ ```
114
+
115
+ ### `poly diff`
116
+
117
+ Show diffs between your local project and the remote version:
118
+
119
+ ```bash
120
+ poly diff # all changes
121
+ poly diff file1.yaml # specific files
122
+ ```
123
+
124
+ ### `poly revert`
125
+
126
+ Revert local changes:
127
+
128
+ ```bash
129
+ poly revert --all # revert everything
130
+ poly revert file1.yaml file2.yaml # revert specific files
131
+ ```
132
+
133
+ ### `poly branch`
134
+
135
+ Manage branches (default branch is `main`):
136
+
137
+ ```bash
138
+ poly branch list
139
+ poly branch current
140
+ poly branch create my-feature
141
+ poly branch switch my-feature
142
+ poly branch switch my-feature --force # discard uncommitted changes
143
+ ```
144
+
145
+ ### `poly format`
146
+
147
+ 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.
148
+
149
+ ```bash
150
+ poly format # all resources
151
+ poly format file1.py # specific files
152
+ poly format --check # check only, no writes
153
+ ```
154
+
155
+ ### `poly validate`
156
+
157
+ Validate project configuration locally:
158
+
159
+ ```bash
160
+ poly validate
161
+ ```
162
+
163
+ ### `poly review`
164
+
165
+ Create a GitHub gist for reviewing changes, similar to a pull request:
166
+
167
+ ```bash
168
+ poly review # local vs remote
169
+ poly review --before main --after feature-branch # compare branches
170
+ poly review --delete # delete all review gists
171
+ ```
172
+
173
+ ### `poly chat`
174
+
175
+ Start an interactive chat session with your agent:
176
+
177
+ ```bash
178
+ poly chat
179
+ poly chat --environment live
180
+ poly chat --channel webchat
181
+ poly chat --metadata # show functions, flows, and state each turn
182
+ ```
183
+
184
+ ## Development Setup
185
+
186
+ ### Prerequisites
187
+
188
+ - Python 3.14 or higher
189
+ - [uv](https://github.com/astral-sh/uv) (`brew install uv`)
190
+
191
+ ### Getting Started
192
+
193
+ ```bash
194
+ git clone https://github.com/PolyAI-LDN/local_agent_studio.git
195
+ cd local_agent_studio
196
+ uv venv
197
+ source .venv/bin/activate
198
+ uv pip install -e ".[dev]"
199
+ pre-commit install
200
+ ```
201
+
202
+ ### Running Tests
203
+
204
+ ```bash
205
+ pytest
206
+ ```
207
+
208
+ Test files are located in `src/poly/tests/`.
209
+
210
+ ### Project Structure
211
+
212
+ - `src/poly/cli.py` - CLI interface
213
+ - `src/poly/project.py` - Core project management
214
+ - `src/poly/resources/` - Resource type implementations
215
+ - `src/poly/handlers/` - API handler implementations
216
+ - `src/poly/tests/` - Test suite
217
+ - `src/poly/types/` - Python type definitions for the Agent Studio runtime
218
+
219
+ ## Bugs & Feature Requests
220
+
221
+ Please report bugs or request features via the [GitHub Issues](https://github.com/PolyAI-LDN/local_agent_studio/issues) page.
222
+
223
+ ## Contributing
224
+
225
+ Contributions are welcome! The project uses **ruff** for linting/formatting (enforced via pre-commit hooks) and **pytest** for testing. Please ensure all tests pass before submitting a pull request.
226
+
227
+ We recommend using [Claude Code](https://claude.ai/download) for development. The repo includes a `.claude/` directory with project-specific instructions and permissions pre-configured.
228
+
229
+ ## Releases
230
+
231
+ This project uses [python-semantic-release](https://python-semantic-release.readthedocs.io/) to automate versioning and publishing. Version bumps are determined from [conventional commit](https://www.conventionalcommits.org/) messages:
232
+
233
+ | Commit prefix | Version bump | Example |
234
+ |---|---|---|
235
+ | `fix:` | Patch (2.0.4 → 2.0.5) | `fix: handle missing config file` |
236
+ | `feat:` | Minor (2.0.4 → 2.1.0) | `feat: add poly export command` |
237
+ | `feat!:` / `BREAKING CHANGE:` | Major (2.0.4 → 3.0.0) | `feat!: redesign resource schema` |
238
+ | `chore:`, `docs:`, `ci:` | No release | `docs: update README` |
239
+
240
+ When a commit is merged to `main`, the release workflow automatically:
241
+
242
+ 1. Determines the next version from commit history
243
+ 2. Updates the version in `pyproject.toml`
244
+ 3. Creates a git tag and GitHub Release
245
+
246
+ ## License
247
+
248
+ This project is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details.
@@ -0,0 +1,226 @@
1
+ ![PolyAI](logo.png)
2
+
3
+ # Agent Development Kit (ADK)
4
+
5
+ [![PyPI version](https://img.shields.io/pypi/v/polyai-adk)](https://pypi.org/project/polyai-adk/)
6
+ [![Python version](https://img.shields.io/pypi/pyversions/polyai-adk)](https://pypi.org/project/polyai-adk/)
7
+ [![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)
8
+ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
9
+ [![Develop with Claude Code](https://img.shields.io/badge/Develop%20with-Claude%20Code-DC9E63?logo=claude)](https://claude.ai/download)
10
+
11
+ A CLI and Python package for managing [Agent Studio](https://studio.us.poly.ai) projects locally. It provides a Git-like workflow for synchronizing project configurations between your local filesystem and the Agent Studio platform.
12
+
13
+ ## Prerequisites
14
+
15
+ You must have access to a workspace in PolyAI Agent Studio before using this tool. Access and an API key are provided by your PolyAI contact. To request access to the PolyAI platform, reach out to [developers@poly-ai.com](mailto:developers@poly-ai.com).
16
+
17
+ ## Installation
18
+
19
+ ```bash
20
+ pip install polyai-adk
21
+ ```
22
+
23
+ Once installed, use the `poly` command to manage your projects:
24
+
25
+ ```bash
26
+ poly init # Initialize a project (interactive)
27
+ poly pull # Pull latest configuration
28
+ poly push # Push local changes
29
+ poly status # View project status
30
+ poly diff # View local changes
31
+ poly branch # Manage branches
32
+ poly format # Format resources
33
+ poly validate # Validate configuration
34
+ poly review # Create a review gist
35
+ ```
36
+
37
+ ## Usage
38
+ A whitelisted API key is needed to run any of the poly commands.
39
+
40
+ 1. Create an API key at https://studio.[us/uk/eu].poly.ai/<account-name>/data-access
41
+ 2. Contact an engineer from the developer platform team team to whitelist your API key on Kong
42
+ 3. Add the key to your env variable (typically ~/.zshrc or ~/.bashrc), and name it POLY_ADK_KEY
43
+
44
+ Once you do that, you'll be able to access agents under the <account-name> for the namespace in which the API key is generated.
45
+
46
+ *We are in the process of automating the whitelisting of the API key, and limiting the external ADK to just the production namespace.*
47
+
48
+ ## Usage
49
+
50
+ Run `poly --help` to see all available commands and options. Each command also supports `--help` for detailed syntax (e.g. `poly push --help`).
51
+
52
+ ### `poly init`
53
+
54
+ Initialize a new Agent Studio project locally. Runs interactively by default, prompting for region, account, and project. You can also pass these directly:
55
+
56
+ ```bash
57
+ poly init
58
+ poly init --region us-1 --account_id 123 --project_id my_project
59
+ poly init --base-path /path/to/projects
60
+ poly init --format # format resources after init
61
+ ```
62
+
63
+ ### `poly pull`
64
+
65
+ Pull the latest project configuration from Agent Studio:
66
+
67
+ ```bash
68
+ poly pull
69
+ poly pull --force # overwrite all local changes
70
+ poly pull --format # format resources after pulling
71
+ ```
72
+
73
+ ### `poly push`
74
+
75
+ Push local changes to Agent Studio:
76
+
77
+ ```bash
78
+ poly push
79
+ poly push --dry-run # preview what would be pushed
80
+ poly push --skip-validation # skip local validation before pushing
81
+ poly push --force # overwrite remote changes
82
+ poly push --format # format resources before pushing
83
+ ```
84
+
85
+ ### `poly status`
86
+
87
+ View changed, new, and deleted files in your project:
88
+
89
+ ```bash
90
+ poly status
91
+ ```
92
+
93
+ ### `poly diff`
94
+
95
+ Show diffs between your local project and the remote version:
96
+
97
+ ```bash
98
+ poly diff # all changes
99
+ poly diff file1.yaml # specific files
100
+ ```
101
+
102
+ ### `poly revert`
103
+
104
+ Revert local changes:
105
+
106
+ ```bash
107
+ poly revert --all # revert everything
108
+ poly revert file1.yaml file2.yaml # revert specific files
109
+ ```
110
+
111
+ ### `poly branch`
112
+
113
+ Manage branches (default branch is `main`):
114
+
115
+ ```bash
116
+ poly branch list
117
+ poly branch current
118
+ poly branch create my-feature
119
+ poly branch switch my-feature
120
+ poly branch switch my-feature --force # discard uncommitted changes
121
+ ```
122
+
123
+ ### `poly format`
124
+
125
+ 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.
126
+
127
+ ```bash
128
+ poly format # all resources
129
+ poly format file1.py # specific files
130
+ poly format --check # check only, no writes
131
+ ```
132
+
133
+ ### `poly validate`
134
+
135
+ Validate project configuration locally:
136
+
137
+ ```bash
138
+ poly validate
139
+ ```
140
+
141
+ ### `poly review`
142
+
143
+ Create a GitHub gist for reviewing changes, similar to a pull request:
144
+
145
+ ```bash
146
+ poly review # local vs remote
147
+ poly review --before main --after feature-branch # compare branches
148
+ poly review --delete # delete all review gists
149
+ ```
150
+
151
+ ### `poly chat`
152
+
153
+ Start an interactive chat session with your agent:
154
+
155
+ ```bash
156
+ poly chat
157
+ poly chat --environment live
158
+ poly chat --channel webchat
159
+ poly chat --metadata # show functions, flows, and state each turn
160
+ ```
161
+
162
+ ## Development Setup
163
+
164
+ ### Prerequisites
165
+
166
+ - Python 3.14 or higher
167
+ - [uv](https://github.com/astral-sh/uv) (`brew install uv`)
168
+
169
+ ### Getting Started
170
+
171
+ ```bash
172
+ git clone https://github.com/PolyAI-LDN/local_agent_studio.git
173
+ cd local_agent_studio
174
+ uv venv
175
+ source .venv/bin/activate
176
+ uv pip install -e ".[dev]"
177
+ pre-commit install
178
+ ```
179
+
180
+ ### Running Tests
181
+
182
+ ```bash
183
+ pytest
184
+ ```
185
+
186
+ Test files are located in `src/poly/tests/`.
187
+
188
+ ### Project Structure
189
+
190
+ - `src/poly/cli.py` - CLI interface
191
+ - `src/poly/project.py` - Core project management
192
+ - `src/poly/resources/` - Resource type implementations
193
+ - `src/poly/handlers/` - API handler implementations
194
+ - `src/poly/tests/` - Test suite
195
+ - `src/poly/types/` - Python type definitions for the Agent Studio runtime
196
+
197
+ ## Bugs & Feature Requests
198
+
199
+ Please report bugs or request features via the [GitHub Issues](https://github.com/PolyAI-LDN/local_agent_studio/issues) page.
200
+
201
+ ## Contributing
202
+
203
+ Contributions are welcome! The project uses **ruff** for linting/formatting (enforced via pre-commit hooks) and **pytest** for testing. Please ensure all tests pass before submitting a pull request.
204
+
205
+ We recommend using [Claude Code](https://claude.ai/download) for development. The repo includes a `.claude/` directory with project-specific instructions and permissions pre-configured.
206
+
207
+ ## Releases
208
+
209
+ This project uses [python-semantic-release](https://python-semantic-release.readthedocs.io/) to automate versioning and publishing. Version bumps are determined from [conventional commit](https://www.conventionalcommits.org/) messages:
210
+
211
+ | Commit prefix | Version bump | Example |
212
+ |---|---|---|
213
+ | `fix:` | Patch (2.0.4 → 2.0.5) | `fix: handle missing config file` |
214
+ | `feat:` | Minor (2.0.4 → 2.1.0) | `feat: add poly export command` |
215
+ | `feat!:` / `BREAKING CHANGE:` | Major (2.0.4 → 3.0.0) | `feat!: redesign resource schema` |
216
+ | `chore:`, `docs:`, `ci:` | No release | `docs: update README` |
217
+
218
+ When a commit is merged to `main`, the release workflow automatically:
219
+
220
+ 1. Determines the next version from commit history
221
+ 2. Updates the version in `pyproject.toml`
222
+ 3. Creates a git tag and GitHub Release
223
+
224
+ ## License
225
+
226
+ This project is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details.