Skip to main content

cloud_agent_task_results

Creates, updates, deletes, gets or lists a cloud_agent_task_results resource.

Overview​

Namecloud_agent_task_results
TypeResource
Idrailway.agents.cloud_agent_task_results

Fields​

The following fields are returned by SELECT queries:

One CloudAgentTaskResult row.

NameDatatypeDescription
cloud_agent_idstring
session_idstring
task_idstring
completed_atstring
errorstring
external_refstring
metadataobject
session_statestring
statusstring (AWAITING_INPUT, COMPLETED, FAILED, PENDING, RUNNING)
structured_outputobject
textstring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectcloud_agent_id, session_idRead the latest task on an agent/session without waking the VM. Backed by the Railway GraphQL query cloudAgentTask.
recoverexeccloud_agent_id, session_idRecover the latest task response from the agent. May wake the VM. Backed by the Railway GraphQL mutation cloudAgentTaskRecover.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
cloud_agent_idstring
session_idstring

SELECT examples​

Read the latest task on an agent/session without waking the VM. Backed by the Railway GraphQL query cloudAgentTask.

SELECT
cloud_agent_id,
session_id,
task_id,
completed_at,
error,
external_ref,
metadata,
session_state,
status,
structured_output,
text
FROM railway.agents.cloud_agent_task_results
WHERE cloud_agent_id = '{{ cloud_agent_id }}' -- required
AND session_id = '{{ session_id }}' -- required
;

Lifecycle Methods​

Recover the latest task response from the agent. May wake the VM. Backed by the Railway GraphQL mutation cloudAgentTaskRecover.

EXEC railway.agents.cloud_agent_task_results.recover
@cloud_agent_id='{{ cloud_agent_id }}', --required
@session_id='{{ session_id }}' --required
;