language_detection_processor#
- class baf.core.processors.language_detection_processor.LanguageDetectionProcessor(agent, user_messages=False, agent_messages=False)[source]#
Bases:
ProcessorThe LanguageDetectionProcessor returns the spoken language in a given message.
This processor leverages the langdetect library to predict the language.
- Parameters:
- agent#
The agent the processor belongs to
- Type:
Agent
- _abc_impl = <_abc._abc_data object>#