Defines the fluent API for configuring AIPromptServiceSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class AIPromptServiceSettingsBuilder
Inheritance: objectAIPromptServiceSettingsBuilder
Inherited Members
Constructors
AIPromptServiceSettingsBuilder method.
public AIPromptServiceSettingsBuilder(AIPromptServiceSettings container)
Properties
Gets the settings being configured.
protected AIPromptServiceSettings Container { get; }
Methods
The parameters sent to the service request.
The handler that provides additional parameters sent to the service request.
The headers of the service request.
The function to get the output from the AI service response.
public AIPromptServiceSettingsBuilder OutputGetter(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:AIPromptServiceSettingsBuilder
Returns the current AIPromptServiceSettingsBuilder instance.
The function to get the output from the AI service response.
public AIPromptServiceSettingsBuilder OutputGetter(string handler)
The name of the JavaScript function that will be evaluated.
Returns:AIPromptServiceSettingsBuilder
Returns the current AIPromptServiceSettingsBuilder instance.
The Url of the AI service to use for generating outputs.
public AIPromptServiceSettingsBuilder Url(string actionName, string controllerName, object routeValues)
The action name.
controllerNamestringThe controller name.
routeValuesobjectThe route values.
Returns:AIPromptServiceSettingsBuilder
Returns the current AIPromptServiceSettingsBuilder instance.
The Url of the AI service to use for generating outputs.
public AIPromptServiceSettingsBuilder Url(string actionName, string controllerName, RouteValueDictionary routeValues)
The action name.
controllerNamestringThe controller name.
routeValuesRouteValueDictionaryThe route values.
Returns:AIPromptServiceSettingsBuilder
Returns the current AIPromptServiceSettingsBuilder instance.
The Url of the AI service to use for generating outputs.
public AIPromptServiceSettingsBuilder Url(string actionName, string controllerName)
The action name.
controllerNamestringThe controller name.
Returns:AIPromptServiceSettingsBuilder
Returns the current AIPromptServiceSettingsBuilder instance.
The Url of the AI service to use for generating outputs.
public AIPromptServiceSettingsBuilder Url(string value)
The value for Url
Returns:AIPromptServiceSettingsBuilder
Returns the current AIPromptServiceSettingsBuilder instance.