You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: autogen/agentchat/contrib/text_analyzer_agent.py
+1-9
Original file line number
Diff line number
Diff line change
@@ -29,14 +29,6 @@ def __init__(
29
29
Please refer to [OpenAIWrapper.create](/docs/reference/oai/client#create)
30
30
for available options.
31
31
To disable llm-based auto reply, set to False.
32
-
teach_config (dict or None): Additional parameters used by TeachableAgent.
33
-
To use default config, set to None. Otherwise, set to a dictionary with any of the following keys:
34
-
- verbosity (Optional, int): # 0 (default) for basic info, 1 to add memory operations, 2 for analyzer messages, 3 for memo lists.
35
-
- reset_db (Optional, bool): True to clear the DB before starting. Default False.
36
-
- path_to_db_dir (Optional, str): path to the directory where the DB is stored. Default "./tmp/teachable_agent_db"
37
-
- prepopulate (Optional, int): True (default) to prepopulate the DB with a set of input-output pairs.
38
-
- recall_threshold (Optional, float): The maximum distance for retrieved memos, where 0.0 is exact match. Default 1.5. Larger values allow more (but less relevant) memos to be recalled.
39
-
- max_num_retrievals (Optional, int): The maximum number of memos to retrieve from the DB. Default 10.
40
32
**kwargs (dict): other kwargs in [ConversableAgent](../conversable_agent#__init__).
41
33
"""
42
34
super().__init__(
@@ -56,7 +48,7 @@ def _analyze_in_reply(
56
48
) ->Tuple[bool, Union[str, Dict, None]]:
57
49
"""Analyzes the given text as instructed, and returns the analysis as a message.
58
50
Assumes exactly two messages containing the text to analyze and the analysis instructions.
59
-
See TeachableAgent.analyze for an example of how to use this method."""
51
+
See Teachability.analyze for an example of how to use this method."""
60
52
ifself.llm_configisFalse:
61
53
raiseValueError("TextAnalyzerAgent requires self.llm_config to be set in its base class.")
0 commit comments