Skip to main content

Crate shimmyjinja

Crate shimmyjinja 

Source

Structs§

ChatMessage
RenderContext
Context variables available during template rendering.

Functions§

render_chat_template
Render a HF-style chat_template with messages and default context.
render_chat_template_with_context
Render a HF-style chat_template with messages and explicit context.
try_render_chat_template
Render a HF-style chat_template, returning Err instead of panicking.
try_render_chat_template_with_context
Render a HF-style chat_template with explicit context, returning Err instead of panicking.

Type Aliases§

RenderError
Error type returned by the fallible render functions.