Share via


AtPathResolver class

A path resolver that replaces the '@' alias with a specific prefix and transforms paths to access recognized entities in a conversational turn. It ensures that the resolved path includes the 'first()' function for entity properties.

Extends

Constructors

AtPathResolver()

Initializes a new instance of the AtPathResolver class.

Methods

transformPath(string)

Transforms the path by replacing the '@' alias and appending the 'first()' function to entity properties.

Constructor Details

AtPathResolver()

Initializes a new instance of the AtPathResolver class.

new AtPathResolver()

Method Details

transformPath(string)

Transforms the path by replacing the '@' alias and appending the 'first()' function to entity properties.

function transformPath(path: string): string

Parameters

path

string

The path to inspect and transform.

Returns

string

The transformed path.