RouteBuilderBase<TBuilder>.AsAgentic(Boolean) Method

Definition

Configures the route to operate in agentic mode, enabling behaviors associated with agentic processing.

public TBuilder AsAgentic(bool isAgentic = true);
member this.AsAgentic : bool -> 'Builder
Public Function AsAgentic (Optional isAgentic As Boolean = true) As TBuilder

Parameters

isAgentic
Boolean

A value indicating whether agentic mode should be enabled. Set to true to enable agentic mode; otherwise, set to false.

Returns

TBuilder

The current RouteBuilder instance with the agentic mode configuration applied.

Remarks

Agentic mode may alter how the route processes requests, enabling features or behaviors specific to agentic workflows. Use this method when agentic processing is required for the route.

Applies to