Parse a YAML file defining a schema into an ellmer type object structure.
parse_yaml_to_ellmer_schema.Rd
Parse a YAML file defining a schema into an ellmer type object structure.
Examples
if (FALSE) { # \dontrun{
# Assuming 'schema.yaml' exists and contains the schema definition
ellmer_schema <- parse_yaml_to_ellmer_schema("schema.yaml")
# You can then use this schema with ellmer::extract_data
# chat <- ellmer::chat_openai()
# extracted_data <- chat$extract_data(paper_text, type = ellmer_schema)
} # }