Skip to content
Console
Menu

Getting Started

Authentication

KV Store

Steer an agent session

Sends a message into the running turn; the agent reads it at its next step.

Sends a message into the running turn; the agent reads it at its next step. On an idle session it is the same as :send.

Not available yet. Sylphx Agents is declared in the registry but no backend serves it: every call answers 501 with the problem code UNIMPLEMENTED.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agent_sessions/agent-session:steer
  • Scope agents:sessions
  • Effect write — a successful call changes state.
  • Collection agent_sessions

#Request

FieldTypeWhat it is
namestringThe name of the session. Required.
messageMessageThe message, 1 to 64 parts. Required.

#Message

FieldTypeWhat it is
partsContentPart[]The content, in order; 1 to 64 parts. Required.

#ContentPart

FieldTypeWhat it is
textstringText. One of the part group.
fileFileRefA file, by Sylphx Data object URL or an https URL. One of the part group.

#FileRef

FieldTypeWhat it is
uristringWhere the file is. Required.
media_typestringIts media type, for example image/png.
filenamestringIts display name.

#Response

FieldTypeWhat it is
namestringorgs/{org}/projects/{project}/envs/{env}/agent_sessions/{agent_session}/session_events/{session_event}.
uidstringsevt_<cell><ulid>; never reused. Output only.
metaResourceMetaResource metadata.
sequenceint64The position in the session's log, from 1, with no gaps. Output only.
typeSessionEventTypeWhat the event is. Output only. One of user_message, steer, agent_message, tool_call, tool_result, approval_requested, approval_decided, status, compaction, thought, file_change, response, error.
turnint64The turn it belongs to, from 1; 0 for an event outside a turn. Output only.
stepint64The step within the turn, from 1, assigned by the runtime; 0 for an event that is not a step. Output only.
create_timetimestampWhen it was appended. Output only.
messageMessageFor USER_MESSAGE, STEER and AGENT_MESSAGE. One of the payload group.
tool_callToolCallFor TOOL_CALL. One of the payload group.
tool_resultToolResultFor TOOL_RESULT. One of the payload group.
approvalApprovalFor APPROVAL_REQUESTED and APPROVAL_DECIDED. One of the payload group.
status_changeStatusChangeFor STATUS. One of the payload group.
thoughtMessageFor THOUGHT: a reasoning summary, never private model reasoning. One of the payload group.
file_changeFileChangeFor FILE_CHANGE. One of the payload group.
responseTurnResultFor RESPONSE: the completed turn's answer and usage. One of the payload group.
errorErrorEventFor ERROR. One of the payload group.

#ResourceMeta

FieldTypeWhat it is
generationint64Increases by one on every change to spec. Output only.
etagstringStrong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as If-Match or etag to make Update and Delete conditional; a mismatch fails with ABORTED / 409 ETAG_MISMATCH. Output only.
create_timetimestampWhen the Resource was created. Output only.
update_timetimestampWhen the Resource last changed. Output only.
delete_timetimestampSet while the Resource is being deleted. Output only.
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.
creatorstringThe principal that created the Resource. Output only.

#Message

FieldTypeWhat it is
partsContentPart[]The content, in order; 1 to 64 parts. Required.

#ToolCall

FieldTypeWhat it is
idstringThe call's id within the session, (turn, step) based. Output only.
toolstringThe tool name. Output only.
inputstructThe input, as the model sent it. Output only.
model_call_idstringThe model's own id for the call, as sent; never used as a key. Output only.
clientboolWhether the client runs it (a ClientTool). Output only.

#ToolResult

FieldTypeWhat it is
call_idstringThe ToolCall's id. Output only.
outputvalueThe output. Output only.
errorboolWhether the call failed; output then holds the error. Output only.
durationdurationHow long the call took. Output only.

#Approval

FieldTypeWhat it is
call_idstringThe ToolCall's id. Output only.
decisionApprovalDecisionThe answer, once given; unset while it waits. Output only. One of approve, reject.
rememberboolWhether the answer covers later calls of the same tool in this session ("always allow"). Output only.
principalstringWho answered. Output only.
reasonstringThe reason given, if any. Output only.

#StatusChange

FieldTypeWhat it is
stateSessionStateThe state after the change. Output only. One of idle, running, awaiting_approval, awaiting_client, failed.
reasonstringWhy, for FAILED and INTERRUPTED: a registry error code and message. Output only.

#FileChange

FieldTypeWhat it is
pathstringThe path relative to the session's repository root. Output only.
changestringadded, modified, deleted, renamed or copied. Output only.
addedint64Lines added, when reported by the harness. Output only.
removedint64Lines removed, when reported by the harness. Output only.
old_pathstringThe previous path, for a rename or copy. Output only.
sourcestringedit for an incremental edit or final for the turn's final diff. Output only.

#TurnResult

FieldTypeWhat it is
textstringThe final response's text. Output only.
is_errorboolWhether the turn ended with an error. Output only.
usageTurnTokenUsageModel token usage reported by the harness. Output only.
cost_microsint64The reported cost, in micro-USD. Output only.
durationdurationHow long the turn ran. Output only.

#ErrorEvent

FieldTypeWhat it is
kindstringThe registry error code or harness error kind. Output only.
messagestringA safe error description. Output only.

#ContentPart

FieldTypeWhat it is
textstringText. One of the part group.
fileFileRefA file, by Sylphx Data object URL or an https URL. One of the part group.

#TurnTokenUsage

FieldTypeWhat it is
input_tokensint64Input tokens. Output only.
output_tokensint64Output tokens. Output only.
cache_read_tokensint64Input tokens read from the model's cache. Output only.
cache_write_tokensint64Input tokens written to the model's cache. Output only.

#FileRef

FieldTypeWhat it is
uristringWhere the file is. Required.
media_typestringIts media type, for example image/png.
filenamestringIts display name.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agent_sessions/agent-session:steer" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"message":{"parts":[{}]}}'