TextAnalyzerAgent

TextAnalyzerAgent(
    name='analyzer',
    system_message: str | None = '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: Literal['ALWAYS', 'NEVER', 'TERMINATE'] = 'NEVER',
    llm_config: dict | bool | None = None,
    **kwargs
)

(Experimental) Text Analysis agent, a subclass of ConversableAgent designed to analyze text as instructed.

Parameters:
NameDescription
name='analyzer'
system_messageType: 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_modeType: Literal['ALWAYS', 'NEVER', 'TERMINATE']

Default: ‘NEVER’
llm_configType: dict | bool | None

Default: None
**kwargs

Instance Methods

analyze_text

analyze_text(
    self,
    text_to_analyze,
    analysis_instructions
) -> 

Analyzes the given text as instructed, and returns the analysis.

Parameters:
NameDescription
text_to_analyze
analysis_instructions