Skip to contents

Copies of an AI function with other worked examples or another instruction (improving a function changes nothing else). ai_demos() gives its worked examples as a list of inputs/outputs.

Usage

with_demos(fn, demos)

with_instructions(fn, instructions)

ai_demos(fn)

Arguments

fn

An AI function.

demos

A data frame whose columns are named like the formula's inputs and outputs, or a list of list(inputs = ..., outputs = ...).

instructions

The instruction the model gets instead of the one written from the name and description (NULL: the written one).

Value

An AI function (with_*()) or a list.