text_analyzer_agent
autogen.agentchat.contrib.text_analyzer_agent.TextAnalyzerAgent
TextAnalyzerAgent
(Experimental) Text Analysis agent, a subclass of ConversableAgent designed to analyze text as instructed.
Name | Description |
---|---|
name='analyzer' | |
system_message | Type: str | None Default: ‘You are an expert in text analysis.\nThe user will give you TEXT to analyze.\nThe user will give you analysis INSTRUCTIONS copied twice, at both the beginning and the end.\nYou will follow these INSTRUCTIONS in analyzing the TEXT, then give the results of your expert analysis in the format requested.‘ |
human_input_mode | Type: Literal['ALWAYS', 'NEVER', 'TERMINATE'] Default: ‘NEVER’ |
llm_config | Type: dict | bool | None Default: None |
**kwargs |
Instance Methods
analyze_text
Analyzes the given text as instructed, and returns the analysis.
Parameters:Name | Description |
---|---|
text_to_analyze | |
analysis_instructions |