Table of Contents

Interface ITemplatingService

Namespace
FoundationaLLM.Common.Interfaces
Assembly
FoundationaLLM.Common.dll

Defines the interface for a templating engine.

public interface ITemplatingService
Extension Methods

Methods

Transform(string, Dictionary<string, string>?)

Transforms the input string by replacing tokens with the corresponding values.

string Transform(string s, Dictionary<string, string>? tokenAndValues = null)

Parameters

s string

The input string to be transformed.

tokenAndValues Dictionary<string, string>

Optional dictionary of well-known tokens and the values that should take its place.

Returns

string

The transformed string where all the valid tokens have been replaced.