Tala Esenlikler
Prompt Text Provider

FormatPromptTemplate

Formats a text template using the standard prompt tokens.

Interaction Framework 1.0.0 UE5.7 Function UInteractionRuntimePromptTextProvider

Formats a prompt text template by replacing supported tokens such as {Command}, {Key}, {Percent}, cooldown time, requirement failure text, target and point ids, participant counts, and multi-participant stage text. Use it inside prompt provider subclasses when project text should keep the framework token format.

Owner UInteractionRuntimePromptTextProvider
Module InteractionFrameworkRuntime
Category InteractionRuntime|Prompt
UFUNCTION(BlueprintCallable, Category = "InteractionRuntime|Prompt", meta = (BlueprintProtected = "true")
) FText FormatPromptTemplate(const FText& Template, const FInteractionRuntimePromptBuildContext& Context) const;

Parameters

Inputs
Template
const FText&

Text template to format.

Return Value

FText

The formatted prompt text after standard tokens are replaced from the supplied prompt context.

Use Cases

  • Build custom prompt providers that still use framework token syntax.
  • Convert author-authored command text into final UI text.

Notes

  • Unknown or unsupported tokens remain under the behavior implemented by the prompt provider formatting path.

Related Docs