Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

721 B
Raw Blame
import CollapsibleBlock from '../CollapsibleBlock';
import TextContent from '../TextContent';

import styles from '../AIThreadMessage.module.scss';

interface ThinkingPartProps {
	content?: string;
	label?: string;
	testId?: string;
}

function ThinkingPart({
	content,
	label = 'Thinking',
	testId = 'ai-message-thinking-toggle',
}: ThinkingPartProps): JSX.Element {
	return (
		<CollapsibleBlock label={label} isBoxed testId={testId}>
			{content ? (
				<TextContent text={content} />
			) : (
				<span className={styles.empty}> - </span>
			)}
		</CollapsibleBlock>
	);
}

ThinkingPart.defaultProps = {
	content: undefined,
	label: 'Thinking',
	testId: 'ai-message-thinking-toggle',
};

export default ThinkingPart;