Skip to content
Proud to collaborate with Microsoft for Startups

agents.session-create ​

Create a new agent session and open a Lumen observability trace

Create a new AgentSession row in PENDING status and open a Lumen trace.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-agents
Version1.0

Triggers ​

SourceEndpoint / EventDescription
INTERNALinternal.invocationInternal — called by the agents runtime during session lifecycle

Input Schema ​

FieldTypeRequiredDefaultDescription
agent_config_uuidstringYes——
taskstringYes——
organization_uuidstringYes——
contextdictNo——
caller_refstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
errorstringNo——
error_typestringNo——
failed_atstringNo——
failed_at_statestringNo——
failed_layerjsonNo——
failed_stepstringNo——
failure_reasonstringNo——
session_uuidjsonNo——
statusjsonNo——
agent_config_uuidjsonNo——
taskjsonNo——
organization_uuidjsonNo——
contextjsonNo——
caller_refjsonNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—run—
runNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrun—
runcompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "agents.session-create",
  "initial_data": {
    "agent_config_uuid": "value",
    "task": "value",
    "organization_uuid": "value"
  }
}