outputAsString property

  1. @override
String get outputAsString
override

Returns the output as a string.

This is a convenience method for getting the first output as a string:

  • If you are using an LLM, this will be the output String.
  • If you are using a ChatModel, this will be the content of the output ChatMessage.

Implementation

@override
String get outputAsString => output.content;