ToolChoice.tool constructor

const ToolChoice.tool(
  1. String toolName
)

Implementation

const ToolChoice.tool(String toolName)
    : type = 'tool',
      name = toolName;