Tool

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

Public companion functions

Tool

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

Public companion functions

functionDeclarations

fun functionDeclarations(functionDeclarations: List<FunctionDeclaration>): Tool

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

Parameters
functionDeclarations: List<FunctionDeclaration>

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