AgentCreatedEvent
v1

Admin

Details

Payload example and implementations

1// IN PHOENIX
2// const agent = new Agent(); // pheonix entity
3// const event = new AgentCreatedEvent(agent); // pheonix event with typeBox type in constructor
4

AgentCreatedEvent payload

AgentCreatedEvent Schema (json)
{
  "$id": "AgentCreatedEventPayloadTSchema",
  "type": "object",
  "properties": {
    "agent": {
      "$id": "AgentEntity",
      "type": "object",
      "properties": {
        "createdAt": { "format": "datetime", "type": "string" },
        "updatedAt": {
          "anyOf": [
            { "format": "datetime", "type": "string" },
            { "type": "null" }
          ]
        },
        "deletedAt": {
          "anyOf": [
            { "format": "datetime", "type": "string" },
            { "type": "null" }
          ]
        },
        "id": { "type": "string" },
        "user": {},
        "userId": { "type": "string" }
      },
      "required": ["createdAt", "id", "user", "userId"]
    }
  },
  "required": ["agent"]
}


Edit this pageLast updated on 2024/8/5