+ {isToolResult ? (
+ <>
+
+ {isAgentInboxInterruptSchema(threadInterrupt?.value) &&
+ (isLastMessage || hasNoAIOrToolMessages) && (
+
+ )}
+ {threadInterrupt?.value &&
+ !isAgentInboxInterruptSchema(threadInterrupt.value) &&
+ isLastMessage ? (
+
+ ) : null}
+ >
+ ) : (
+ <>
+ {contentString.length > 0 && (
+
+ {contentString}
+
+ )}
- {!hideToolCalls && (
- <>
- {(hasToolCalls && toolCallsHaveContents && (
-
- )) ||
- (hasAnthropicToolCalls && (
-
+ {!hideToolCalls && (
+ <>
+ {(hasToolCalls && toolCallsHaveContents && (
+
)) ||
- (hasToolCalls &&
)}
- >
- )}
+ (hasAnthropicToolCalls && (
+
+ )) ||
+ (hasToolCalls &&
)}
+ >
+ )}
- {message && (
-
- )}
- {isAgentInboxInterruptSchema(threadInterrupt?.value) &&
- (isLastMessage || hasNoAIOrToolMessages) && (
-
+ {message && (
+
)}
- {threadInterrupt?.value &&
- !isAgentInboxInterruptSchema(threadInterrupt.value) &&
- isLastMessage ? (
-
- ) : null}
-
- thread.setBranch(branch)}
- isLoading={isLoading}
- />
- handleRegenerate(parentCheckpoint)}
- />
-
-
- )}
+ {isAgentInboxInterruptSchema(threadInterrupt?.value) &&
+ (isLastMessage || hasNoAIOrToolMessages) && (
+
+ )}
+ {threadInterrupt?.value &&
+ !isAgentInboxInterruptSchema(threadInterrupt.value) &&
+ isLastMessage ? (
+