Skip to content
Console
Menu

Alerts and status pages

App store purchases

Credits

Knowledge

KV

Notifications

Organizations

Storage

Workflows

API reference

Getting Started

Authentication

KV Store

sylphx agents goals

Every sylphx agents goals command: its argument, its flags and a run line.

The goals commands of Sylphx Agents, as the CLI spells them: the same calls as the goals API page, typed for the shell. Install, sign in and the grammar are on the CLI index.

#create

Creates an optional objective owned by this Session, without an external Task. The operation_id keeps the original receipt beyond request replay expiry.

CLI

Shell
sylphx agents goals create --parent orgs/acme/projects/shop/envs/production/agent_sessions/agent-session --objective …

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agent_sessions/agent-session/goals · scope agents:sessions · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--parentstringThe parent to create in; defaults to the linked project or the key's scope.
--objectivestringThe objective, nonempty and at most 4,000 characters. Required.
--token-budgetintOmit unless the caller explicitly requests a positive token budget.
--operation-idstringCaller-stable mutation identity, nonempty and at most 128 bytes. Required.

#get

Reads the exact Goal, including its terminal receipt after a successor starts.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx agents goals get orgs/acme/projects/shop/envs/production/agent_sessions/agent-session/goals/goal

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agent_sessions/agent-session/goals/goal · scope agents:sessions · effect read · Request, response and examples

#settle

Settles only the named Goal/version with an observed environment receipt. Replaying operation_id returns its original receipt, never its successor.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx agents goals settle orgs/acme/projects/shop/envs/production/agent_sessions/agent-session/goals/goal

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agent_sessions/agent-session/goals/goal:settle · scope agents:sessions · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--expected-versionintThe acceptance-contract version observed by the caller. Required.
--stateenumOnly COMPLETED and FAILED settle a Goal. Waiting is not success. Required. One of working, waiting, completed, failed.
--receiptjsonAn actual observation at the delivered environment surface. Required.
--operation-idstringCaller-stable mutation identity, nonempty and at most 128 bytes. Required.

#control

Applies an explicit owner control to this exact Goal/version. Pause interrupts only its current execution; resume does not resolve a wait or clear observed usage. Amend changes only supplied objective/budget fields.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx agents goals control orgs/acme/projects/shop/envs/production/agent_sessions/agent-session/goals/goal

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agent_sessions/agent-session/goals/goal:control · scope agents:sessions · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--expected-versionintThe contract version observed by the owner. Required.
--actionenumExplicit owner action. Only AMEND accepts objective/budget changes. Required. One of pause, resume, amend.
--operation-idstringCaller-stable mutation identity, nonempty and at most 128 bytes. Required.
--objectivestringNew objective, only when amending. Omission preserves the existing text.
--token-budgetintNew explicit token budget, only when amending. Omission preserves it.
--clear-token-budgetboolExplicitly remove a budget when amending; incompatible with token_budget.