then<
TResult1 = AIMessage<MessageStructure<MessageToolSet>>,
TResult2 = never
>(
onfulfilledAttaches callbacks for the resolution and/or rejection of the Promise.
The callback to execute when the Promise is resolved.
The callback to execute when the Promise is rejected.