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.
UFUNCTION(BlueprintCallable, Category = "InteractionRuntime|Prompt", meta = (BlueprintProtected = "true")
) FText FormatPromptTemplate(const FText& Template, const FInteractionRuntimePromptBuildContext& Context) const;
Parameters
Inputs
Template
Text template to format.
Context
Interaction context used by this operation.
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.