Interface IInferenceBackend
Defines an AI inference backend that processes chat requests and returns responses.
Namespace: Syncfusion.Blazor.SmartComponents
Assembly: Syncfusion.Blazor.SmartComponents.dll
Syntax
public interface IInferenceBackend
Methods
GetChatResponseAsync(ChatParameters)
Asynchronously generates a chat response based on the provided parameters.
Declaration
Task<string> GetChatResponseAsync(ChatParameters options)
Parameters
Type | Name | Description |
---|---|---|
ChatParameters | options | The parameters that define the chat request, such as messages, temperature, and token limits. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> | A task that represents the asynchronous operation, containing the AI-generated response as a string. |