Skip to main content
All docs
V25.2
  • DxAIChat.IncludeFunctionCallInfo Property

    Specifies whether the AI Chat displays basic details about an invoked function.

    Namespace: DevExpress.AIIntegration.Blazor.Chat

    Assembly: DevExpress.AIIntegration.Blazor.Chat.v25.2.dll

    NuGet Package: DevExpress.AIIntegration.Blazor.Chat

    Declaration

    [Parameter]
    public bool IncludeFunctionCallInfo { get; set; }

    Property Value

    Type Description
    Boolean

    true to display function call details; otherwise, false.

    Remarks

    Enable the IncludeFunctionCallInfo property to automatically append basic details about each invoked function into the AI chat response:

    • The name or unique identifier of the invoked function (AI tool).
    • Arguments passed to the function.
    • The return value.
    @using DevExpress.AIIntegration.Blazor.Chat
    @using DevExpress.AIIntegration.Tools
    @inject AIToolsContextContainer aiToolsContextContainer
    
    <DxAIChat IncludeFunctionCallInfo="true" />
    
    @code {
        protected override void OnAfterRender(bool firstRender) {
            if(firstRender) {
                var context = new AIToolsContextBuilder()
                    .WithToolMethods(MyAITools.Greet, MyAITools.AddNumbers)
                    .Build();
                aiToolsContextContainer.Add(context);
            }
        }
    }
    

    AI Tool Calling Visualization

    Use this property to test and debug AI tools during development. For production purposes, we recommend that you define a custom message template and use the FunctionCalls property to limit showing information like raw technical data to users.

    See Also