ChatMessage.toolResults constructor

const ChatMessage.toolResults(
  1. List<ToolResult> toolResults
)

A user turn carrying tool results; see Agent.

Implementation

const ChatMessage.toolResults(this.toolResults)
  : role = ChatRole.user,
    content = '',
    toolCalls = const [];