pub fn interpolate_prompt(
template: &str,
context: &IndexMap<String, NodeContextValue>,
output: &mut String,
)Expand description
テンプレート文字列をスライス走査し、事前確保済みバッファへインプレース展開する。
プレースホルダー {node_id.value}, {node_id.answer}, {node_id.confidence} を
検出してコンテキスト内の対応値に置換する。
§引数
template: プレースホルダーを含むテンプレート文字列。context: 先行ノード ID とその結果値のマップ。output: 書き込み先の再利用可能バッファ。