Skip to content

Interface: WebhookCallbackRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / WebhookActions / WebhookCallbackRequest

Interface: WebhookCallbackRequest

Defined in: src/types/webhook-actions.ts:131

Request to complete a pending invocation (webhook callback).

Remarks

This is POSTed by the external system when the action completes. Outputs are bound to the action Psi-term’s features, and demons fire.

Optionally, set notify_agent_id and notify_tenant_id to bridge the webhook result as a belief into the cognitive agent’s TermStore.

Properties

error?

optional error: string | null

Defined in: src/types/webhook-actions.ts:133

Error message if failed.


notifyAgentId?

optional notifyAgentId: string | null

Defined in: src/types/webhook-actions.ts:135

Optional: Agent UUID to notify with webhook results.


notifyTenantId?

optional notifyTenantId: string | null

Defined in: src/types/webhook-actions.ts:137

Optional: Tenant UUID for the agent to notify.


outputs?

optional outputs: Record<string, unknown>

Defined in: src/types/webhook-actions.ts:139

Output values to bind to the Psi-term features.


status

status: string

Defined in: src/types/webhook-actions.ts:141

Status of the action: “success”, “failed”, or “cancelled”.