SYMBOL INDEX (198 symbols across 33 files) FILE: Chaos-GPT-master/Auto-GPT-master/scripts/agent_manager.py function create_agent (line 9) | def create_agent(task, prompt, model): function message_agent (line 35) | def message_agent(key, message): function list_agents (line 56) | def list_agents(): function delete_agent (line 64) | def delete_agent(key): FILE: Chaos-GPT-master/Auto-GPT-master/scripts/ai_config.py class AIConfig (line 5) | class AIConfig: method __init__ (line 15) | def __init__(self, ai_name: str="", ai_role: str="", ai_goals: list=[]... method load (line 35) | def load(cls: object, config_file: str=SAVE_FILE) -> object: method save (line 60) | def save(self, config_file: str=SAVE_FILE) -> None: method construct_full_prompt (line 75) | def construct_full_prompt(self) -> str: FILE: Chaos-GPT-master/Auto-GPT-master/scripts/ai_functions.py function evaluate_code (line 9) | def evaluate_code(code: str) -> List[str]: function improve_code (line 28) | def improve_code(suggestions: List[str], code: str) -> str: function write_tests (line 49) | def write_tests(code: str, focus: List[str]) -> str: FILE: Chaos-GPT-master/Auto-GPT-master/scripts/browse.py function is_valid_url (line 11) | def is_valid_url(url): function sanitize_url (line 20) | def sanitize_url(url): function check_local_file_access (line 25) | def check_local_file_access(url): function get_response (line 30) | def get_response(url, headers=cfg.user_agent_header, timeout=10): function scrape_text (line 58) | def scrape_text(url): function extract_hyperlinks (line 77) | def extract_hyperlinks(soup): function format_hyperlinks (line 85) | def format_hyperlinks(hyperlinks): function scrape_links (line 93) | def scrape_links(url): function split_text (line 109) | def split_text(text, max_length=8192): function create_message (line 128) | def create_message(chunk, question): function summarize_text (line 136) | def summarize_text(text, question): FILE: Chaos-GPT-master/Auto-GPT-master/scripts/call_ai_function.py function call_ai_function (line 8) | def call_ai_function(function, args, description, model=None): FILE: Chaos-GPT-master/Auto-GPT-master/scripts/chat.py function create_chat_message (line 12) | def create_chat_message(role, content): function generate_context (line 26) | def generate_context(prompt, relevant_memory, full_message_history, model): function chat_with_ai (line 44) | def chat_with_ai( FILE: Chaos-GPT-master/Auto-GPT-master/scripts/commands.py function is_valid_int (line 20) | def is_valid_int(value): function get_command (line 27) | def get_command(response): function execute_command (line 53) | def execute_command(command_name, arguments): function get_datetime (line 124) | def get_datetime(): function google_search (line 130) | def google_search(query, num_results=8): function google_official_search (line 138) | def google_official_search(query, num_results=8): function browse_website (line 174) | def browse_website(url, question): function get_text_summary (line 188) | def get_text_summary(url, question): function get_hyperlinks (line 195) | def get_hyperlinks(url): function commit_memory (line 201) | def commit_memory(string): function delete_memory (line 208) | def delete_memory(key): function overwrite_memory (line 220) | def overwrite_memory(key, string): function shutdown (line 247) | def shutdown(): function start_agent (line 253) | def start_agent(name, task, prompt, model=cfg.fast_llm_model): function message_agent (line 277) | def message_agent(key, message): function list_agents (line 296) | def list_agents(): function delete_agent (line 301) | def delete_agent(key): FILE: Chaos-GPT-master/Auto-GPT-master/scripts/config.py class Singleton (line 10) | class Singleton(abc.ABCMeta, type): method __call__ (line 17) | def __call__(cls, *args, **kwargs): class AbstractSingleton (line 26) | class AbstractSingleton(abc.ABC, metaclass=Singleton): class Config (line 30) | class Config(metaclass=Singleton): method __init__ (line 35) | def __init__(self): method get_azure_deployment_id_for_model (line 88) | def get_azure_deployment_id_for_model(self, model: str) -> str: method load_azure_config (line 109) | def load_azure_config(self, config_file: str=AZURE_CONFIG_FILE) -> None: method set_continuous_mode (line 128) | def set_continuous_mode(self, value: bool): method set_speak_mode (line 132) | def set_speak_mode(self, value: bool): method set_fast_llm_model (line 136) | def set_fast_llm_model(self, value: str): method set_smart_llm_model (line 140) | def set_smart_llm_model(self, value: str): method set_fast_token_limit (line 144) | def set_fast_token_limit(self, value: int): method set_smart_token_limit (line 148) | def set_smart_token_limit(self, value: int): method set_openai_api_key (line 152) | def set_openai_api_key(self, value: str): method set_elevenlabs_api_key (line 156) | def set_elevenlabs_api_key(self, value: str): method set_elevenlabs_voice_1_id (line 160) | def set_elevenlabs_voice_1_id(self, value: str): method set_elevenlabs_voice_2_id (line 164) | def set_elevenlabs_voice_2_id(self, value: str): method set_google_api_key (line 168) | def set_google_api_key(self, value: str): method set_custom_search_engine_id (line 172) | def set_custom_search_engine_id(self, value: str): method set_pinecone_api_key (line 176) | def set_pinecone_api_key(self, value: str): method set_pinecone_region (line 180) | def set_pinecone_region(self, value: str): method set_debug_mode (line 184) | def set_debug_mode(self, value: bool): FILE: Chaos-GPT-master/Auto-GPT-master/scripts/data.py function load_prompt (line 4) | def load_prompt(): FILE: Chaos-GPT-master/Auto-GPT-master/scripts/execute_code.py function execute_python_file (line 9) | def execute_python_file(file): function execute_shell (line 70) | def execute_shell(command_line): FILE: Chaos-GPT-master/Auto-GPT-master/scripts/file_operations.py function safe_join (line 12) | def safe_join(base, *paths): function read_file (line 23) | def read_file(filename): function write_to_file (line 34) | def write_to_file(filename, text): function append_to_file (line 48) | def append_to_file(filename, text): function delete_file (line 59) | def delete_file(filename): function search_files (line 68) | def search_files(directory): FILE: Chaos-GPT-master/Auto-GPT-master/scripts/image_gen.py function generate_image (line 14) | def generate_image(prompt): FILE: Chaos-GPT-master/Auto-GPT-master/scripts/json_parser.py function fix_and_parse_json (line 30) | def fix_and_parse_json( function fix_json (line 78) | def fix_json(json_str: str, schema: str) -> str: FILE: Chaos-GPT-master/Auto-GPT-master/scripts/json_utils.py function extract_char_position (line 8) | def extract_char_position(error_message: str) -> int: function add_quotes_to_property_names (line 27) | def add_quotes_to_property_names(json_string: str) -> str: function balance_braces (line 53) | def balance_braces(json_string: str) -> str: function fix_invalid_escape (line 82) | def fix_invalid_escape(json_str: str, error_message: str) -> str: function correct_json (line 97) | def correct_json(json_str: str) -> str: FILE: Chaos-GPT-master/Auto-GPT-master/scripts/llm_utils.py function create_chat_completion (line 8) | def create_chat_completion(messages, model=None, temperature=cfg.tempera... FILE: Chaos-GPT-master/Auto-GPT-master/scripts/logger.py class Logger (line 24) | class Logger(metaclass=Singleton): method __init__ (line 25) | def __init__(self): method typewriter_log (line 71) | def typewriter_log( method debug (line 89) | def debug( method warn (line 97) | def warn( method error (line 105) | def error( method _log (line 112) | def _log( method set_level (line 123) | def set_level(self, level): class TypingConsoleHandler (line 133) | class TypingConsoleHandler(logging.StreamHandler): method emit (line 134) | def emit(self, record): class ConsoleHandler (line 154) | class ConsoleHandler(logging.StreamHandler): method emit (line 155) | def emit(self, record): class AutoGptFormatter (line 167) | class AutoGptFormatter(logging.Formatter): method format (line 168) | def format(self, record: LogRecord) -> str: function remove_color_codes (line 180) | def remove_color_codes(s: str) -> str: FILE: Chaos-GPT-master/Auto-GPT-master/scripts/main.py function check_openai_api_key (line 23) | def check_openai_api_key(): function attempt_to_fix_json_by_finding_outermost_brackets (line 33) | def attempt_to_fix_json_by_finding_outermost_brackets(json_string): function print_assistant_thoughts (line 61) | def print_assistant_thoughts(assistant_reply): function load_variables (line 129) | def load_variables(config_file="config.yaml"): function construct_prompt (line 183) | def construct_prompt(): function prompt_user (line 212) | def prompt_user(): function parse_arguments (line 265) | def parse_arguments(): FILE: Chaos-GPT-master/Auto-GPT-master/scripts/memory/__init__.py function get_memory (line 21) | def get_memory(cfg, init=False): function get_supported_memory_backends (line 44) | def get_supported_memory_backends(): FILE: Chaos-GPT-master/Auto-GPT-master/scripts/memory/base.py function get_ada_embedding (line 9) | def get_ada_embedding(text): class MemoryProviderSingleton (line 17) | class MemoryProviderSingleton(AbstractSingleton): method add (line 19) | def add(self, data): method get (line 23) | def get(self, data): method clear (line 27) | def clear(self): method get_relevant (line 31) | def get_relevant(self, data, num_relevant=5): method get_stats (line 35) | def get_stats(self): FILE: Chaos-GPT-master/Auto-GPT-master/scripts/memory/local.py function create_default_embeddings (line 13) | def create_default_embeddings(): class CacheContent (line 18) | class CacheContent: class LocalCache (line 25) | class LocalCache(MemoryProviderSingleton): method __init__ (line 28) | def __init__(self, cfg) -> None: method add (line 47) | def add(self, text: str): method clear (line 81) | def clear(self) -> str: method get (line 90) | def get(self, data: str) -> Optional[List[Any]]: method get_relevant (line 101) | def get_relevant(self, text: str, k: int) -> List[Any]: method get_stats (line 120) | def get_stats(self): FILE: Chaos-GPT-master/Auto-GPT-master/scripts/memory/pinecone.py class PineconeMemory (line 7) | class PineconeMemory(MemoryProviderSingleton): method __init__ (line 8) | def __init__(self, cfg): method add (line 24) | def add(self, data): method get (line 32) | def get(self, data): method clear (line 35) | def clear(self): method get_relevant (line 39) | def get_relevant(self, data, num_relevant=5): method get_stats (line 50) | def get_stats(self): FILE: Chaos-GPT-master/Auto-GPT-master/scripts/memory/redismem.py class RedisMemory (line 26) | class RedisMemory(MemoryProviderSingleton): method __init__ (line 27) | def __init__(self, cfg): method add (line 63) | def add(self, data: str) -> str: method get (line 89) | def get(self, data: str) -> Optional[List[Any]]: method clear (line 100) | def clear(self) -> str: method get_relevant (line 109) | def get_relevant( method get_stats (line 139) | def get_stats(self): FILE: Chaos-GPT-master/Auto-GPT-master/scripts/speak.py function eleven_labs_speech (line 34) | def eleven_labs_speech(text, voice_index=0): function gtts_speech (line 54) | def gtts_speech(text): function macos_tts_speech (line 61) | def macos_tts_speech(text, voice_index=0): function say_text (line 70) | def say_text(text, voice_index=0): FILE: Chaos-GPT-master/Auto-GPT-master/scripts/spinner.py class Spinner (line 7) | class Spinner: method __init__ (line 9) | def __init__(self, message="Loading...", delay=0.1): method spin (line 17) | def spin(self): method __enter__ (line 25) | def __enter__(self): method __exit__ (line 31) | def __exit__(self, exc_type, exc_value, exc_traceback): FILE: Chaos-GPT-master/Auto-GPT-master/scripts/token_counter.py function count_message_tokens (line 4) | def count_message_tokens(messages : List[Dict[str, str]], model : str = ... function count_string_tokens (line 44) | def count_string_tokens(string: str, model_name: str) -> int: FILE: Chaos-GPT-master/Auto-GPT-master/scripts/utils.py function clean_input (line 1) | def clean_input(prompt: str=''): FILE: Chaos-GPT-master/Auto-GPT-master/tests/integration/memory_tests.py class TestLocalCache (line 11) | class TestLocalCache(unittest.TestCase): method random_string (line 13) | def random_string(self, length): method setUp (line 16) | def setUp(self): method test_get_relevant (line 36) | def test_get_relevant(self): FILE: Chaos-GPT-master/Auto-GPT-master/tests/local_cache_test.py function MockConfig (line 7) | def MockConfig(): class TestLocalCache (line 15) | class TestLocalCache(unittest.TestCase): method setUp (line 17) | def setUp(self): method test_add (line 21) | def test_add(self): method test_clear (line 26) | def test_clear(self): method test_get (line 30) | def test_get(self): method test_get_relevant (line 36) | def test_get_relevant(self): method test_get_stats (line 44) | def test_get_stats(self): FILE: Chaos-GPT-master/Auto-GPT-master/tests/test_config.py class TestConfig (line 4) | class TestConfig(unittest.TestCase): method test_singleton (line 6) | def test_singleton(self): method test_initial_values (line 11) | def test_initial_values(self): method test_set_continuous_mode (line 21) | def test_set_continuous_mode(self): method test_set_speak_mode (line 26) | def test_set_speak_mode(self): method test_set_fast_llm_model (line 31) | def test_set_fast_llm_model(self): method test_set_smart_llm_model (line 36) | def test_set_smart_llm_model(self): method test_set_fast_token_limit (line 41) | def test_set_fast_token_limit(self): method test_set_smart_token_limit (line 46) | def test_set_smart_token_limit(self): method test_set_debug_mode (line 51) | def test_set_debug_mode(self): FILE: Chaos-GPT-master/Auto-GPT-master/tests/test_json_parser.py class TestParseJson (line 6) | class TestParseJson(unittest.TestCase): method test_valid_json (line 7) | def test_valid_json(self): method test_invalid_json_minor (line 13) | def test_invalid_json_minor(self): method test_invalid_json_major_with_gpt (line 18) | def test_invalid_json_major_with_gpt(self): method test_invalid_json_major_without_gpt (line 23) | def test_invalid_json_major_without_gpt(self): method test_invalid_json_leading_sentence_with_gpt (line 30) | def test_invalid_json_leading_sentence_with_gpt(self): method test_invalid_json_leading_sentence_with_gpt (line 69) | def test_invalid_json_leading_sentence_with_gpt(self): FILE: Chaos-GPT-master/Auto-GPT-master/tests/unit/json_tests.py class TestParseJson (line 8) | class TestParseJson(unittest.TestCase): method test_valid_json (line 9) | def test_valid_json(self): method test_invalid_json_minor (line 15) | def test_invalid_json_minor(self): method test_invalid_json_major_with_gpt (line 20) | def test_invalid_json_major_with_gpt(self): method test_invalid_json_major_without_gpt (line 25) | def test_invalid_json_major_without_gpt(self): method test_invalid_json_leading_sentence_with_gpt (line 32) | def test_invalid_json_leading_sentence_with_gpt(self): method test_invalid_json_leading_sentence_with_gpt (line 71) | def test_invalid_json_leading_sentence_with_gpt(self): FILE: Chaos-GPT-master/Auto-GPT-master/tests/unit/test_browse_scrape_links.py class TestScrapeLinks (line 41) | class TestScrapeLinks: method test_valid_url_with_hyperlinks (line 45) | def test_valid_url_with_hyperlinks(self): method test_valid_url (line 53) | def test_valid_url(self, mocker): method test_invalid_url (line 67) | def test_invalid_url(self, mocker): method test_no_hyperlinks (line 80) | def test_no_hyperlinks(self, mocker): method test_scrape_links_with_few_hyperlinks (line 95) | def test_scrape_links_with_few_hyperlinks(self, mocker): FILE: Chaos-GPT-master/Auto-GPT-master/tests/unit/test_browse_scrape_text.py class TestScrapeText (line 37) | class TestScrapeText: method test_scrape_text_with_valid_url (line 40) | def test_scrape_text_with_valid_url(self, mocker): method test_invalid_url (line 53) | def test_invalid_url(self, mocker): method test_no_text (line 63) | def test_no_text(self, mocker): method test_http_error (line 75) | def test_http_error(self, mocker): method test_scrape_text_with_html_tags (line 86) | def test_scrape_text_with_html_tags(self, mocker):