Webhooks
ModelsExpand Collapse
UnsafeUnwrapWebhookEvent { data, timestamp, type }
The envelope for an objective event webhook delivery. Contains timestamp, event type, and the webhook data payload.
data: Data { agent, agentVariation, objective, objectiveEvent }
The webhook data payload with flat top-level keys for agent, variation, objective, and event.
objectiveEvent: ObjectiveEvent { data, metadata, contextWindowId, info }
CallableTool is a union that represents a tool that can be called by an agent. In Cadenya, a tool that is used within an agent objective might be a user-defined tool (IE: MCP, HTTP), another Agent (useful to separate context), or a Cadenya Tool (one Cadenya provides).
contextWindowCompacted?: ContextWindowCompacted { messagesCompacted, newContextWindow, strategies, summary }
newContextWindow?: ObjectiveContextWindowData { completionTokens, objectiveId, previousWindowContinueInstructions, 2 more }
The new context window created by this compaction
completionTokens?: number
A calculated value for how many completion tokens (output tokens) have been used in this context window
previousWindowContinueInstructions?: string
The instructions for this window to continue from a previous window's chat history.
Profile represents a human user at the account level. Profiles are account-scoped resources that can be associated with multiple workspaces through the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).