tools property

List<Tool>? get tools

Tools that the model may use during generation. The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared.

Implementation

List<Tool>? get tools => $optional('tools', $list($model(Tool.fromJson)));