Webhooks
Unwrap
Unsafe Unwrap
ModelsExpand Collapse
UnsafeUnwrapWebhookEvent = object { data, timestamp, type }
The envelope for an objective event webhook delivery. Contains timestamp, event type, and the webhook data payload.
data: object { agent, agentVariation, objective, objectiveEvent }
The webhook data payload with flat top-level keys for agent, variation, objective, and event.
Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
Metadata for ephemeral operations and activities (e.g., objectives, executions, runs)
objectiveEvent: object { 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).
Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
contextWindowCompacted: optional ContextWindowCompacted { messagesCompacted, newContextWindow, strategies, summary }
newContextWindow: optional ObjectiveContextWindowData { completionTokens, objectiveId, previousWindowContinueInstructions, 2 more }
The new context window created by this compaction
completionTokens: optional number
A calculated value for how many completion tokens (output tokens) have been used in this context window
previousWindowContinueInstructions: optional string
The instructions for this window to continue from a previous window's chat history.
Metadata for ephemeral operations and activities (e.g., objectives, executions, runs)
Metadata for ephemeral operations and activities (e.g., objectives, executions, runs)
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).
AccountResourceMetadata is used to represent a resource that is associated to an account but not to a workspace.
Metadata for ephemeral operations and activities (e.g., objectives, executions, runs)