Class: Langfuse::PromptRenderer Private

Inherits:
Mustache
  • Object
show all
Defined in:
lib/langfuse/prompt_renderer.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Renders prompt templates with Langfuse SDK-compatible variable semantics.

Instance Method Summary collapse

Instance Method Details

#escape(value) ⇒ String

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Langfuse variables are model input, not browser output; JS/Python SDKs substitute raw values.

Parameters:

  • value (Object)

    Value to insert into the prompt

Returns:

  • (String)

    Raw string representation



14
15
16
# File 'lib/langfuse/prompt_renderer.rb', line 14

def escape(value)
  value.to_s
end