then<
TResult1 = ToolCall<string, unknown>[],
TResult2 = never
>(
onfulfilled: (valueAttaches 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.