Skip to contents

Convert a metawoRld schema to an ellmer type specification

Usage

df_schema_to_ellmer(schema)

Arguments

schema

A schema list (e.g. from metawoRld::get_schema()) or the path to a schema YAML file.

Value

An ellmer type object for chat$chat_structured() and friends.