outputAsString property

String get outputAsString

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

String get outputAsString;