DxAIChat.FunctionCallInfoContentTemplate Property
Specifies a template used to display function call details appended to a message when the IncludeFunctionCallInfo property is enabled.
Namespace: DevExpress.AIIntegration.Blazor.Chat
Assembly: DevExpress.AIIntegration.Blazor.Chat.v25.2.dll
NuGet Package: DevExpress.AIIntegration.Blazor.Chat
Declaration
[Parameter]
public RenderFragment<BlazorChatMessage> FunctionCallInfoContentTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderFragment<BlazorChatMessage> | The content of a message bubble. |
Remarks
Enable the IncludeFunctionCallInfo property to automatically append basic details about each invoked function to the AI chat response.
Use the FunctionCallInfoContentTemplate property to customize the appearance of the function call details section. This template does not affect how the main message content is rendered.
@using DevExpress.AIIntegration.Blazor.Chat
@using DevExpress.AIIntegration.Tools
@inject AIToolsContextContainer aiToolsContextContainer
<DxAIChat IncludeFunctionCallInfo="true">
<FunctionCallInfoContentTemplate>
<ul>
@foreach(var functionCall in context.FunctionCalls) {
<li>
Called function: <b>@functionCall.Request.Name</b><br />
Return value: <b>@functionCall.Result.Result.ToString()</b>
</li>
}
</ul>
</FunctionCallInfoContentTemplate>
</DxAIChat>
@code {
protected override void OnAfterRender(bool firstRender) {
if(firstRender) {
var context = new AIToolsContextBuilder()
.WithToolMethods(MyAITools.Greet, MyAITools.AddNumbers)
.Build();
aiToolsContextContainer.Add(context);
}
}
}

See Also