Tool

public final class Tool


Contains a set of function declarations that the model has access to. These can be used to gather information, or complete tasks

Summary

Nested types

public static class Tool.Companion

Public methods

static final @NonNull Tool
functionDeclarations(
    @NonNull List<@NonNull FunctionDeclaration> functionDeclarations
)

Creates a Tool instance that provides the model with access to the functionDeclarations.

Public methods

functionDeclarations

public static final @NonNull Tool functionDeclarations(
    @NonNull List<@NonNull FunctionDeclaration> functionDeclarations
)

Creates a Tool instance that provides the model with access to the functionDeclarations.

Parameters
@NonNull List<@NonNull FunctionDeclaration> functionDeclarations

The list of functions that this tool allows the model access to.