Learn R Programming

rtemis.llm (version 0.8.1)

schema: Define output schema for LLM responses

Description

Define output schema for LLM responses

Usage

schema(name = NULL, ..., description = NULL)

Value

Schema object, named list, or JSON string.

Arguments

name

Optional Character: The name of the schema.

...

Field objects defining the schema fields. Create using field.

description

Optional Character: A brief description of the schema.

Author

EDG

Examples

Run this code
schema(
  "LabSchema",
  field("Lab name"),
  field("normal range low", type = "number"),
  field("normal range high", type = "number")
)

Run the code above in your browser using DataLab