Tool

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
@Retention(value = AnnotationRetention.RUNTIME)
annotation Tool


Annotates a function to register it as a Tool that can be called by the generative model.

Summary

Public constructors

Tool(name: String, description: String)

Public properties

String

A detailed description of what the tool does, used by the model to determine when to call it.

String

The name of the tool.

Public constructors

Tool

Tool(name: String = "", description: String)

Public properties

description

val descriptionString

A detailed description of what the tool does, used by the model to determine when to call it.

name

val nameString

The name of the tool. If not specified, the function name will be used.