Jido.Character.Context.Renderer (Jido Character v1.0.0)

Copy Markdown View Source

Default Markdown renderer for characters.

Produces Markdown-formatted prompts that effectively communicate the character's identity, personality, and behavioral guidelines to an LLM.

This is the default implementation of Jido.Character.Renderer. To use a custom renderer, see Jido.Character.Renderer for configuration options.

Summary

Functions

Render a character to a ReqLLM.Context.

Render a character to a system prompt string.

Functions

to_context(char, opts \\ [])

@spec to_context(
  map(),
  keyword()
) :: ReqLLM.Context.t()

Render a character to a ReqLLM.Context.

to_system_prompt(char, opts \\ [])

@spec to_system_prompt(
  map(),
  keyword()
) :: String.t()

Render a character to a system prompt string.