Skip to content

ema / ema / LLMResponse

Interface: LLMResponse

Defined in: packages/ema/src/schema.ts:61

Normalized LLM response envelope.

Properties

finishReason

ts
finishReason: string;

Defined in: packages/ema/src/schema.ts:65

Provider-specific finish reason (e.g., stop, length, tool_calls).


message

ts
message: ModelMessage;

Defined in: packages/ema/src/schema.ts:63

Final assistant message for this turn.


totalTokens

ts
totalTokens: number;

Defined in: packages/ema/src/schema.ts:67

Total tokens counted by the provider for this call.