agentchat.contrib
agentchat.contrib.text_analyzer_agent
TextAnalyzerAgent
(Experimental) Text Analysis agent, a subclass of ConversableAgent designed to analyze text as instructed.
__init__
Arguments:
name
str - name of the agent.system_message
str - system message for the ChatCompletion inference.human_input_mode
str - This agent should NEVER prompt the human for input.llm_config
dict or False - llm inference configuration. Please refer to OpenAIWrapper.create for available options. To disable llm-based auto reply, set to False.**kwargs
dict - other kwargs in ConversableAgent.
analyze_text
Analyzes the given text as instructed, and returns the analysis.