microfoom
API referenceType aliases

LLMToken

Type Alias: LLMToken

type LLMToken = 
  | {
  text: string;
  type: "text";
}
  | {
  text: string;
  type: "reasoning";
};

Defined in: packages/microfoom-core/src/options.ts:8

A streamed token, surfaced to the onToken hook.

On this page