Interface ResponseContentMatcher

Clients can contribute response content matchers to parse a chat response into specific ChatResponseContent instances.

interface ResponseContentMatcher {
    contentFactory: ResponseContentFactory;
    end: RegExp;
    start: RegExp;
}

Properties

contentFactory: ResponseContentFactory

The factory creating a response content from the matching content, from start index to end index of the match (including delimiters).

end: RegExp

Regular expression for finding the start delimiter.

start: RegExp

Regular expression for finding the start delimiter.