AIMessagePartItem

fun AIMessagePartItem(part: AIMessagePart, modifier: Modifier = Modifier, approver: AIToolApprover? = null, textStyle: TextStyle = MaterialTheme.typography.bodyMedium, reasoningColors: StreamingReasoningColors = StreamingReasoningDefaults.colors(), toolCallColors: AIToolCallColors = AIToolCallDefaults.colors(), toolApprovalColors: AIToolApprovalColors = AIToolApprovalDefaults.colors())

One step of a reply: a round of reasoning with its preview, a tool call (with its question or its sign-in, when it waits for the approver), or a neutral placeholder for a step this SDK doesn't know. The sign-in shows through ChatAiComponentFactory.AIToolAuthorizationContent.

Parameters

part

The step.

modifier

The modifier to apply to the step.

approver

Who answers calls' questions on this device, to ask them.

textStyle

The style of the step.

reasoningColors

The palette of a reasoning step.

toolCallColors

The palette of a tool call and of the placeholder for an unknown step.

toolApprovalColors

The palette of a call's question and of its sign-in.