EndpointsCogents

Report agent presence

PUT/v2/cogents/{cogent_id}/presence/agents/{agent}

Reports that an agent is here, thinking or idle and doing what, and returns the presence. Only the cogent's player credential may report it. Report on every change and at least every 60 s; a report that repeats the current state only refreshes its time.

Authorization

BearerAuth
AuthorizationBearer <token>

Bearer token issued by Softmax

In: header

Path Parameters

cogent_id*Cogent Id

Cogent ID (its player ID).

Match^ply_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
agent*Agent

The agent's name (hub, claude-code@laptop).

Match^[A-Za-z0-9][A-Za-z0-9@._:-]{0,63}$

Request Body

application/json

An agent's report: its state, and what it is doing, working on, writing, and suggesting.

state*State

thinking while the agent works a turn, else idle.

Value in

  • "idle"
  • "thinking"
doing?|

What it is doing, in a few words.

progress?|

How far its practice step is.

draft?|

The reply it is writing, so far; replaced whole each report.

suggest?array<>|

Up to three things the coach might say next, as they would type them.

curl -X PUT "https://softmax.com/api/observatory/v2/cogents/string/presence/agents/string" \  -H "Content-Type: application/json" \  -d '{    "state": "idle"  }'
{  "version": 0,  "coach": {    "path": "string",    "anchor": "string",    "heading": "string",    "tab": "project",    "replay": {      "runId": "string",      "file": "string",      "tick": 0,      "open": true,      "shot": null,      "selection": null,      "camera": {        "x": 0,        "z": 0,        "distance": 0      }    },    "since": "2019-08-24T14:15:22Z",    "at": "2019-08-24T14:15:22Z"  },  "agents": [    {      "state": "idle",      "doing": "string",      "progress": {        "taskId": "string",        "rung": "string",        "done": 0,        "total": 0      },      "draft": "string",      "suggest": [        "string"      ],      "agent": "string",      "since": "2019-08-24T14:15:22Z",      "at": "2019-08-24T14:15:22Z"    }  ],  "visitors": [    {      "user_id": "string",      "name": "string",      "at": "2019-08-24T14:15:22Z"    }  ]}