Crate ragit_pdl

Crate ragit_pdl 

Source

Structs§

Message
Pdl
Schema

Enums§

Error
ImageType
JsonType
This enum is solely for error messages.
MessageContent
PdlRole
Role
SchemaParseError

Functions§

decode_base64
encode_base64
escape_pdl_tokens
into_context
parse_pdl takes tera::Context as an input. If you’re too lazy to construct a tera::Context, you can use this function. It converts a rust struct into a json object.
parse_pdl
parse_pdl_from_file
parse_schema
render_pdl_schema
pdl schema is a bit unintuitive when you’re using non-json schema. For example, schema yesno will become Value::Bool. If you naively convert this to a string, you’ll get “true” or “false”, not “yes” or “no”.
unescape_pdl_tokens