Draft
Conversation
Add a new CLI command to create an Agent Studio project under an interactively selected account. Supports both interactive (region → account → name prompts) and non-interactive (--region, --account_id, --name flags) workflows. After creation, automatically initializes the project locally via `init_project`. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This comment has been minimized.
This comment has been minimized.
The ADK proxy (api.us.poly.ai/adk/v1) does not expose a project
creation endpoint. Route create-project through the Sourcerer API
(sourcerer.{region}.platform.polyai.app/api/v1) with the required
payload fields (config, knowledge_base, topic_names, project_id).
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Contributor
Coverage Report
Changed file coverage
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
poly create-projectCLI command that creates a new Agent Studio project under an interactively selected account, then initializes it locally.Motivation
Currently users must create projects through the Agent Studio UI and then
poly initto link them locally. This command streamlines the workflow by handling both creation and initialization in one step.Changes
PlatformAPIHandler.create_project()— POST to/accounts/{account_id}/projectsAgentStudioInterface.create_project()wrappercreate-projectsubparser with--region,--account_id,--name,--jsonflagsAgentStudioCLI.create_project()with interactive and non-interactive flowsinit_projectto set up the local projectTest strategy
poly <command>)Checklist
ruff check .andruff format --check .passpytestpassespolyCLI interface (or migration path documented)🤖 Generated with Claude Code