New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent API for configuring the AIPromptServiceSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class AIPromptServiceSettingsBuilder

Inheritance: objectAIPromptServiceSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public AIPromptServiceSettingsBuilder(AIPromptServiceSettings settings, ViewContext viewContext)
Parameters:settingsAIPromptServiceSettings

The AIPromptServiceSettings

viewContextViewContext

Properties

ViewContext

ViewContext

C#
public ViewContext ViewContext { get; set; }

Methods

The handler that provides additional parameters sent to the service request.

C#
public AIPromptServiceSettingsBuilder Data(Func<object, object> handler)
Parameters:handlerFunc<object, object>Returns:

AIPromptServiceSettingsBuilder

The data to send with the AI service request.

C#
public AIPromptServiceSettingsBuilder Data(object value)
Parameters:valueobject

The value that configures the data.

Returns:

AIPromptServiceSettingsBuilder

The handler that provides additional parameters sent to the service request.

C#
public AIPromptServiceSettingsBuilder Data(string handler)
Parameters:handlerstringReturns:

AIPromptServiceSettingsBuilder

The headers to send with the AI service request.

C#
public AIPromptServiceSettingsBuilder Headers(object value)
Parameters:valueobject

The value that configures the headers.

Returns:

AIPromptServiceSettingsBuilder

The function to get the output from the AI service response.

C#
public AIPromptServiceSettingsBuilder OutputGetter(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The value that configures the outputgetter action.

Returns:

AIPromptServiceSettingsBuilder

The function to get the output from the AI service response.

C#
public AIPromptServiceSettingsBuilder OutputGetter(string handler)
Parameters:handlerstring

The value that configures the outputgetter action.

Returns:

AIPromptServiceSettingsBuilder

Sets the URL for the AI service using action and controller names with route values.

C#
public AIPromptServiceSettingsBuilder Url(string actionName, string controllerName, object routeValues)
Parameters:actionNamestring

The action name.

controllerNamestring

The controller name.

routeValuesobject

The route values.

Returns:

AIPromptServiceSettingsBuilder

The builder instance.

Sets the URL for the AI service using action and controller names with route value dictionary.

C#
public AIPromptServiceSettingsBuilder Url(string actionName, string controllerName, RouteValueDictionary routeValues)
Parameters:actionNamestring

The action name.

controllerNamestring

The controller name.

routeValuesRouteValueDictionary

The route values dictionary.

Returns:

AIPromptServiceSettingsBuilder

The builder instance.

Sets the URL for the AI service using action and controller names.

C#
public AIPromptServiceSettingsBuilder Url(string actionName, string controllerName)
Parameters:actionNamestring

The action name.

controllerNamestring

The controller name.

Returns:

AIPromptServiceSettingsBuilder

The builder instance.

The Url of the AI service to use for generating outputs.

C#
public AIPromptServiceSettingsBuilder Url(string value)
Parameters:valuestring

The value that configures the url.

Returns:

AIPromptServiceSettingsBuilder