Skip to content

AIDK API Reference / aidk/com / COMOutput

Interface: COMOutput ​

Defined in: packages/core/src/com/types.ts:149

Output state from the last tick execution. Contains what was produced by the model and tool execution.

On tick 1, before model execution, this may contain userInput (timeline, sections) to allow components to render purely from previous + current without needing to check tick number or access com.getUserInput().

Properties ​

PropertyTypeDescriptionDefined in
sections?Record<string, COMSection>Sections (only present on tick 1 before model execution, from userInput).packages/core/src/com/types.ts:160
timelineCOMTimelineEntry[]Timeline entries. - Tick 1 (before model): userInput.timeline - After model execution: new timeline entries from model (assistant messages, tool_use blocks, etc.)packages/core/src/com/types.ts:155
toolCalls?ToolCall[]Tool calls from the model execution (only present after model execution).packages/core/src/com/types.ts:165
toolResults?ToolResult[]Tool results from tool execution (only present after model execution).packages/core/src/com/types.ts:170

Released under the MIT License.