Skip to content

Interface: AiGenerateResult ​

The model's answer, checked by the host against what was asked.

Properties ​

finishReason ​

ts
finishReason: AiFinishReason;

model ​

ts
model: string;

The model the vendor says answered.


output ​

ts
output: unknown;

The text, or the object, array, option or JSON value the output asked for.


usage ​

ts
usage: AiUsage;

warnings ​

ts
warnings: string[];

Released under the Apache-2.0 License.