Documentation / @agentick/shared / ModelOutput
Interface: ModelOutput ​
Defined in: models.ts:136
Model output - simplified platform-independent structure.
Used for direct model execution from clients. Backend extends this with raw provider response, cacheId, etc.
Properties ​
createdAt ​
createdAt:
string
Defined in: models.ts:141
message? ​
optionalmessage:Message
Defined in: models.ts:157
Convenience accessor for the primary assistant message. When messages is provided, this is the last assistant-role message. When messages is not provided, this is the single generated message.
Use messages array for full conversation history or multi-message responses.
messages? ​
optionalmessages:Message[]
Defined in: models.ts:148
All messages from this model call. May contain multiple messages for multi-step execution or provider-executed tools. For single-turn responses, this will typically contain one assistant message.
model ​
model:
string
Defined in: models.ts:140
Generation metadata
stopReason ​
stopReason:
StopReason
Defined in: models.ts:162
Why generation stopped
toolCalls? ​
optionaltoolCalls:ToolCall[]
Defined in: models.ts:172
Tool calls made by the model
usage ​
usage:
UsageStats
Defined in: models.ts:167
Token usage