Defines the fluent API for configuring the AIPromptServiceSettings settings.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class AIPromptServiceSettingsBuilder
Inheritance: objectAIPromptServiceSettingsBuilder
Inherited Members
Constructors
Initialize the AIPromptServiceSettingsBuilder
public AIPromptServiceSettingsBuilder(AIPromptServiceSettings settings, ViewContext viewContext)
Properties
ViewContext
ViewContext
public ViewContext ViewContext { get; set; }
Methods
The data to send with the AI service request.
public AIPromptServiceSettingsBuilder Data(object value)
The value that configures the data.
Returns:The handler that provides additional parameters sent to the service request.
The headers to send with the AI service request.
public AIPromptServiceSettingsBuilder Headers(object value)
The value that configures the headers.
Returns:The function to get the output from the AI service response.
public AIPromptServiceSettingsBuilder OutputGetter(string handler)
The value that configures the outputgetter action.
Returns:Sets the URL for the AI service using action and controller names with route values.
public AIPromptServiceSettingsBuilder Url(string actionName, string controllerName, object routeValues)
The action name.
controllerNamestringThe controller name.
routeValuesobjectThe route values.
Returns:AIPromptServiceSettingsBuilder
The builder instance.
Sets the URL for the AI service using action and controller names with route value dictionary.
public AIPromptServiceSettingsBuilder Url(string actionName, string controllerName, RouteValueDictionary routeValues)
The action name.
controllerNamestringThe controller name.
routeValuesRouteValueDictionaryThe route values dictionary.
Returns:AIPromptServiceSettingsBuilder
The builder instance.
Sets the URL for the AI service using action and controller names.
public AIPromptServiceSettingsBuilder Url(string actionName, string controllerName)
The action name.
controllerNamestringThe controller name.
Returns:AIPromptServiceSettingsBuilder
The builder instance.
The Url of the AI service to use for generating outputs.
public AIPromptServiceSettingsBuilder Url(string value)
The value that configures the url.
Returns: