outputAsString property
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 outputChatMessage
.
Implementation
@override
String get outputAsString => output;