AiAgent

esc.ai.AiAgent
object AiAgent

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
AiAgent.type

Members list

Value members

Concrete methods

def assessMatch(matchExpl: MatchExplanation): Boolean

This is very experimental! The LLM try to verify is a match correct or not. The return value is a boolean. Don't trust this assessment without verification.

This is very experimental! The LLM try to verify is a match correct or not. The return value is a boolean. Don't trust this assessment without verification.

Attributes

def changeAiConfig(newAiConfig: AiConfig): Unit

Just call changeAiConfig of LMRunnerService. It's sugar for you not to use LMRunnerService directly.

Just call changeAiConfig of LMRunnerService. It's sugar for you not to use LMRunnerService directly.

Attributes

def explainMatch(matchExpl: MatchExplanation, userLang: String = ...): String

Experimental! Try to explain while a match of two names make sense. The LLM has sometimes problem if the name structure is different.

Experimental! Try to explain while a match of two names make sense. The LLM has sometimes problem if the name structure is different.

Value parameters

userLang

Default is English. Set an other language if you want to show the message directly to a end user with a different language.

Attributes

def loadModel(path: String): Unit

Just call loadModel of LMRunnerService. It's sugar for you not to use LMRunnerService directly.

Just call loadModel of LMRunnerService. It's sugar for you not to use LMRunnerService directly.

Attributes

def transToLatin(text: String): String

Transliterate or transcript a given text into the latein alphabet in a English language context. This takes some time but give you better results for some scripts like arabic or chinese then transcription with the ICU library.

Transliterate or transcript a given text into the latein alphabet in a English language context. This takes some time but give you better results for some scripts like arabic or chinese then transcription with the ICU library.

Attributes