Skip to content

fix(cli): pin base_agent and id in agent create example - #57

Merged
copybara-service[bot] merged 1 commit into
mainfrom
copybara/991030646
Sep 30, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
copybara/991030646

Conversation

@copybara-service

Copy link
Copy Markdown

fix(cli): pin base_agent and id in agent create example

The create example set on CreateAgent in gen.lock carried synthesized <value> and <id> placeholders for base_agent and id. Because named example sets are rendered in compact help and take priority over schema property examples, gemini-api agent create --help printed gemini-api agent create --base-agent <value> --id <id>.

Add a create request-body example (base_agent: antigravity-preview-05-2026, id: research-assistant, matching agent get and agent delete) on POST /{api_version}/agents in overlays/cli/examples.yaml, and regenerate the CLI.

The `create` example set on `CreateAgent` in `gen.lock` carried synthesized `<value>` and `<id>` placeholders for `base_agent` and `id`. Because named example sets are rendered in compact help and take priority over schema property examples, `gemini-api agent create --help` printed `gemini-api agent create --base-agent <value> --id <id>`.

Add a `create` request-body example (`base_agent: antigravity-preview-05-2026`, `id: research-assistant`, matching `agent get` and `agent delete`) on `POST /{api_version}/agents` in `overlays/cli/examples.yaml`, and regenerate the CLI.

PiperOrigin-RevId: 991065091
@copybara-service
copybara-service Bot merged commit 653df09 into main Sep 30, 2026
4 checks passed
@copybara-service
copybara-service Bot deleted the copybara/991030646 branch September 30, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants