result

abstract var result: String

This is the result if the tool call was successful. This is added to the conversation history.
Further, if this is returned, assistant will speak:

  1. the message, if it exists and is of type request-complete
  2. a request-complete message from tool.messages, if it exists
  3. a response generated by the model, if neither exist