Kind: Class
Source: atloria-monorepo/apps/api/src/agent/agent.gateway.ts
Implements: OnGatewayConnection, OnGatewayDisconnect
Methods
| Method | Signature | Returns |
|---|---|---|
handleConnection | handleConnection(client: Socket) | void |
handleDisconnect | handleDisconnect(client: Socket) | void |
handleStart | handleStart(client: Socket, payload: AgentStartPayload) | Promise<void> |
handleSend | handleSend(client: Socket, payload: AgentSendPayload) | Promise<void> |
handleInject | handleInject(client: Socket, payload: AgentInjectPayload) | void |
handleCancel | handleCancel(client: Socket) | void |
handleEnd | handleEnd(client: Socket) | void |
handleGetTodo | handleGetTodo(client: Socket) | void |
handleVerboseToggle | handleVerboseToggle(client: Socket, payload: { enabled?: boolean }) | void |
handleStatus | handleStatus(client: Socket) | void |
Properties
| Property | Type |
|---|---|
server | Server |
Where it refuses work
AgentGatewaystops the work with an early return when!managed, in 2 places.AgentGatewaystops the work with an early return when!err.AgentGatewaystops the work with an early return whenerr.constructor?.name === 'ModelBehaviorError'.AgentGatewaystops the work with an early return whentypeof err.message === 'string' && err.message.includes('Model did not produce a final re….
When something fails
AgentGatewayhandles failure in 3 places: it logs it and continues in all 3.
Referenced By
AgentModule(MODULE_PROVIDES)AgentModule(MODULE_EXPORTS)
Was this page helpful?