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

Goals

An optional durable objective of one Session.

An optional durable objective of one Session. Model answers, waits and external Task completion never settle it implicitly.

Service Sylphx Agents · Resource type agents.sylphx.com/AgentSessionGoal · Name pattern orgs/{org}/projects/{project}/envs/{env}/agent_sessions/{agent_session}/goals/{goal} · Shape record

#Fields

FieldTypeWhat it is
namestringThe exact Session-owned Goal name.
uidstringThe platform Resource UID; the conserved Goal UUID is its name's final id. Output only.
metaResourceMetaStandard resource metadata. Output only.
objectivestringThe objective, nonempty and at most 4,000 characters. Required.
token_budgetint64Omit unless the caller explicitly requests a positive token budget.
stateGoalStateLifecycle; an execution hold is represented separately. Output only. One of working, waiting, completed, failed.
versionint32Optimistic acceptance-contract version, starting at one. Output only.
tokens_usedint64Observed tokens charged exactly once per runtime step. Output only.
usage_unavailableboolUnknown usage holds execution when a token budget is enforced. Output only.
owner_pausedboolExplicit owner pause; an unfinished Goal stays unfinished. Output only.
impasseboolExecution held after the required repeated observation of an impasse. Output only.
receiptSessionGoalReceiptThe terminal observation, retained after another Goal becomes active. Output only.
create_timetimestampWhen this Goal was created. Output only.
update_timetimestampWhen this Goal last changed. Output only.

#Methods

Every method of the collection, in the registry's order, with the scope it needs. The full request, response and examples are one link away.

MethodCallWhat it does
POSTcreateCreates an optional objective owned by this Session, without an external Task. The operation_id keeps the original receipt beyond request replay expiry.
GETgetReads the exact Goal, including its terminal receipt after a successor starts.
POSTsettleSettles only the named Goal/version with an observed environment receipt. Replaying operation_id returns its original receipt, never its successor.
POSTcontrolApplies 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.

#create

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

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

#get

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

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.

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

#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.

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