Interface: IModelResult
Defined in: internal/llm-client/types.ts:183
What one model call produced.
Properties
finishReason
finishReason:
EFinishReason
Defined in: internal/llm-client/types.ts:193
Why the model stopped.
latencyMs
latencyMs:
number
Defined in: internal/llm-client/types.ts:197
Wall time.
modelId
modelId:
string
Defined in: internal/llm-client/types.ts:185
The model that answered.
structured?
optionalstructured?:unknown
Defined in: internal/llm-client/types.ts:189
Parsed structured output, when outputSchema was given.
text
text:
string
Defined in: internal/llm-client/types.ts:187
Free text, when any.
toolCalls
toolCalls:
IToolCallPart[]
Defined in: internal/llm-client/types.ts:191
Tool requests made in this call (complete: unexecuted; run: executed with results in messages).
traceId
traceId:
string
Defined in: internal/llm-client/types.ts:199
Trace entry written by the LLMClient; the gateway annotates it.
usage
usage:
IUsage
Defined in: internal/llm-client/types.ts:195
What the provider reported for this call.