Skip to contents

Define a BebeLM R tool

Usage

bebel_tool(name, fun, description = NULL, schema = NULL)

Arguments

name

Tool name exposed to the tool dispatcher.

fun

Function to run. It is called as fun(args = ..., context = ..., call = ...) when it accepts those names, otherwise with progressively simpler fallbacks.

description

Optional human-readable description.

schema

Optional schema/metadata object for prompts or adapters.

Value

A bebelTool object.