Skip to content

Graphorin API reference v0.13.8


Graphorin API reference / @graphorin/provider-llamacpp-node / / LlamaChatHistoryItem

Type Alias: LlamaChatHistoryItem

ts
type LlamaChatHistoryItem = 
  | {
  text: string;
  type: "system";
}
  | {
  text: string;
  type: "user";
}
  | {
  response: ReadonlyArray<string>;
  type: "model";
};

Defined in: src/runtime.ts:39

Internal

Structural mirror of node-llama-cpp v3's ChatHistoryItem. A 'model' turn carries its text as response: string[].