SYMBOL INDEX (648 symbols across 119 files) FILE: autogpt/agent/agent.py class Agent (line 16) | class Agent: method __init__ (line 45) | def __init__( method start_interaction_loop (line 72) | def start_interaction_loop(self): method _resolve_pathlike_command_args (line 267) | def _resolve_pathlike_command_args(self, command_args): method get_self_feedback (line 278) | def get_self_feedback(self, thoughts: dict, llm_model: str) -> str: FILE: autogpt/agent/agent_manager.py class AgentManager (line 11) | class AgentManager(metaclass=Singleton): method __init__ (line 14) | def __init__(self): method create_agent (line 22) | def create_agent(self, task: str, prompt: str, model: str) -> tuple[in... method message_agent (line 73) | def message_agent(self, key: str | int, message: str) -> str: method list_agents (line 121) | def list_agents(self) -> list[tuple[str | int, str]]: method delete_agent (line 131) | def delete_agent(self, key: str | int) -> bool: FILE: autogpt/app.py function is_valid_int (line 20) | def is_valid_int(value: str) -> bool: function get_command (line 36) | def get_command(response_json: Dict): function map_command_synonyms (line 77) | def map_command_synonyms(command_name: str): function execute_command (line 92) | def execute_command( function get_text_summary (line 143) | def get_text_summary(url: str, question: str) -> str: function get_hyperlinks (line 160) | def get_hyperlinks(url: str) -> Union[str, List[str]]: function start_agent (line 177) | def start_agent(name: str, task: str, prompt: str, model=CFG.fast_llm_mo... function message_agent (line 210) | def message_agent(key: str, message: str) -> str: function list_agents (line 225) | def list_agents() -> str: function delete_agent (line 237) | def delete_agent(key: str) -> str: FILE: autogpt/cli.py function main (line 64) | def main( FILE: autogpt/commands/analyze_code.py function analyze_code (line 13) | def analyze_code(code: str) -> list[str]: FILE: autogpt/commands/audio_text.py function read_audio_from_file (line 19) | def read_audio_from_file(filename: str) -> str: function read_audio (line 34) | def read_audio(audio: bytes) -> str: FILE: autogpt/commands/command.py class Command (line 10) | class Command: method __init__ (line 19) | def __init__( method __call__ (line 35) | def __call__(self, *args, **kwargs) -> Any: method __str__ (line 40) | def __str__(self) -> str: class CommandRegistry (line 44) | class CommandRegistry: method __init__ (line 52) | def __init__(self): method _import_module (line 55) | def _import_module(self, module_name: str) -> Any: method _reload_module (line 58) | def _reload_module(self, module: Any) -> Any: method register (line 61) | def register(self, cmd: Command) -> None: method unregister (line 64) | def unregister(self, command_name: str): method reload_commands (line 70) | def reload_commands(self) -> None: method get_command (line 79) | def get_command(self, name: str) -> Callable[..., Any]: method call (line 82) | def call(self, command_name: str, **kwargs) -> Any: method command_prompt (line 88) | def command_prompt(self) -> str: method import_commands (line 97) | def import_commands(self, module_name: str) -> None: function command (line 127) | def command( FILE: autogpt/commands/execute_code.py function execute_python_file (line 17) | def execute_python_file(filename: str) -> str: function execute_shell (line 109) | def execute_shell(command_line: str) -> str: function execute_shell_popen (line 146) | def execute_shell_popen(command_line) -> str: function we_are_running_in_a_docker_container (line 178) | def we_are_running_in_a_docker_container() -> bool: FILE: autogpt/commands/file_operations.py function text_checksum (line 25) | def text_checksum(text: str) -> str: function operations_from_log (line 30) | def operations_from_log(log_path: str) -> Generator[Tuple[Operation, str... function file_operations_state (line 55) | def file_operations_state(log_path: str) -> Dict: function is_duplicate_operation (line 78) | def is_duplicate_operation( function log_operation (line 99) | def log_operation(operation: str, filename: str, checksum: str | None = ... function split_file (line 114) | def split_file( function read_file (line 147) | def read_file(filename: str) -> str: function ingest_file (line 165) | def ingest_file( function write_to_file (line 200) | def write_to_file(filename: str, text: str) -> str: function append_to_file (line 227) | def append_to_file(filename: str, text: str, should_log: bool = True) ->... function delete_file (line 255) | def delete_file(filename: str) -> str: function list_files (line 275) | def list_files(directory: str) -> list[str]: function download_file (line 305) | def download_file(url, filename): FILE: autogpt/commands/git_operations.py function clone_repository (line 19) | def clone_repository(url: str, clone_path: str) -> str: FILE: autogpt/commands/google_search.py function google_search (line 15) | def google_search(query: str, num_results: int = 8) -> str: function google_official_search (line 47) | def google_official_search(query: str, num_results: int = 8) -> str | li... function safe_google_results (line 101) | def safe_google_results(results: str | list) -> str: FILE: autogpt/commands/image_gen.py function generate_image (line 18) | def generate_image(prompt: str, size: int = 256) -> str: function generate_image_with_hf (line 42) | def generate_image_with_hf(prompt: str, filename: str) -> str: function generate_image_with_dalle (line 80) | def generate_image_with_dalle(prompt: str, filename: str, size: int) -> ... function generate_image_with_sd_webui (line 118) | def generate_image_with_sd_webui( FILE: autogpt/commands/improve_code.py function improve_code (line 14) | def improve_code(suggestions: list[str], code: str) -> str: FILE: autogpt/commands/task_statuses.py function task_complete (line 15) | def task_complete(reason: str) -> NoReturn: FILE: autogpt/commands/times.py function get_datetime (line 4) | def get_datetime() -> str: FILE: autogpt/commands/twitter.py function send_tweet (line 14) | def send_tweet(tweet_text: str) -> str: FILE: autogpt/commands/web_playwright.py function scrape_text (line 17) | def scrape_text(url: str) -> str: function scrape_links (line 52) | def scrape_links(url: str) -> str | list[str]: FILE: autogpt/commands/web_requests.py function get_response (line 19) | def get_response( function scrape_text (line 53) | def scrape_text(url: str) -> str: function scrape_links (line 81) | def scrape_links(url: str) -> str | list[str]: function create_message (line 105) | def create_message(chunk, question): FILE: autogpt/commands/web_selenium.py function browse_website (line 37) | def browse_website(url: str, question: str) -> tuple[str, WebDriver]: function scrape_text_with_selenium (line 66) | def scrape_text_with_selenium(url: str) -> tuple[WebDriver, str]: function scrape_links_with_selenium (line 137) | def scrape_links_with_selenium(driver: WebDriver, url: str) -> list[str]: function close_browser (line 157) | def close_browser(driver: WebDriver) -> None: function add_header (line 169) | def add_header(driver: WebDriver) -> None: FILE: autogpt/commands/write_tests.py function write_tests (line 15) | def write_tests(code: str, focus: list[str]) -> str: FILE: autogpt/config/ai_config.py class AIConfig (line 21) | class AIConfig: method __init__ (line 32) | def __init__( method load (line 60) | def load(config_file: str = SAVE_FILE) -> "AIConfig": method save (line 92) | def save(self, config_file: str = SAVE_FILE) -> None: method construct_full_prompt (line 113) | def construct_full_prompt( FILE: autogpt/config/config.py class Config (line 13) | class Config(metaclass=Singleton): method __init__ (line 18) | def __init__(self) -> None: method get_azure_deployment_id_for_model (line 159) | def get_azure_deployment_id_for_model(self, model: str) -> str: method load_azure_config (line 186) | def load_azure_config(self, config_file: str = AZURE_CONFIG_FILE) -> N... method set_continuous_mode (line 206) | def set_continuous_mode(self, value: bool) -> None: method set_continuous_limit (line 210) | def set_continuous_limit(self, value: int) -> None: method set_speak_mode (line 214) | def set_speak_mode(self, value: bool) -> None: method set_fast_llm_model (line 218) | def set_fast_llm_model(self, value: str) -> None: method set_smart_llm_model (line 222) | def set_smart_llm_model(self, value: str) -> None: method set_fast_token_limit (line 226) | def set_fast_token_limit(self, value: int) -> None: method set_smart_token_limit (line 230) | def set_smart_token_limit(self, value: int) -> None: method set_embedding_model (line 234) | def set_embedding_model(self, value: str) -> None: method set_embedding_tokenizer (line 238) | def set_embedding_tokenizer(self, value: str) -> None: method set_embedding_token_limit (line 242) | def set_embedding_token_limit(self, value: int) -> None: method set_browse_chunk_max_length (line 246) | def set_browse_chunk_max_length(self, value: int) -> None: method set_openai_api_key (line 250) | def set_openai_api_key(self, value: str) -> None: method set_elevenlabs_api_key (line 254) | def set_elevenlabs_api_key(self, value: str) -> None: method set_elevenlabs_voice_1_id (line 258) | def set_elevenlabs_voice_1_id(self, value: str) -> None: method set_elevenlabs_voice_2_id (line 262) | def set_elevenlabs_voice_2_id(self, value: str) -> None: method set_google_api_key (line 266) | def set_google_api_key(self, value: str) -> None: method set_custom_search_engine_id (line 270) | def set_custom_search_engine_id(self, value: str) -> None: method set_pinecone_api_key (line 274) | def set_pinecone_api_key(self, value: str) -> None: method set_pinecone_region (line 278) | def set_pinecone_region(self, value: str) -> None: method set_debug_mode (line 282) | def set_debug_mode(self, value: bool) -> None: method set_plugins (line 286) | def set_plugins(self, value: list) -> None: method set_temperature (line 290) | def set_temperature(self, value: int) -> None: method set_memory_backend (line 294) | def set_memory_backend(self, name: str) -> None: function check_openai_api_key (line 299) | def check_openai_api_key() -> None: FILE: autogpt/configurator.py function create_config (line 13) | def create_config( FILE: autogpt/json_utils/json_fix_general.py function fix_invalid_escape (line 17) | def fix_invalid_escape(json_to_load: str, error_message: str) -> str: function balance_braces (line 42) | def balance_braces(json_string: str) -> Optional[str]: function add_quotes_to_property_names (line 69) | def add_quotes_to_property_names(json_string: str) -> str: function correct_json (line 93) | def correct_json(json_to_load: str) -> str: FILE: autogpt/json_utils/json_fix_llm.py function auto_fix_json (line 40) | def auto_fix_json(json_string: str, schema: str) -> str: function fix_json_using_multiple_techniques (line 85) | def fix_json_using_multiple_techniques(assistant_reply: str) -> Dict[Any... function fix_and_parse_json (line 134) | def fix_and_parse_json( function try_ai_fix (line 172) | def try_ai_fix( function attempt_to_fix_json_by_finding_outermost_brackets (line 208) | def attempt_to_fix_json_by_finding_outermost_brackets(json_string: str): FILE: autogpt/json_utils/utilities.py function extract_char_position (line 15) | def extract_char_position(error_message: str) -> int: function validate_json (line 33) | def validate_json(json_object: object, schema_name: str) -> dict | None: function validate_json_string (line 60) | def validate_json_string(json_string: str, schema_name: str) -> dict | N... function is_string_valid_json (line 74) | def is_string_valid_json(json_string: str, schema_name: str) -> bool: FILE: autogpt/llm/api_manager.py class ApiManager (line 11) | class ApiManager(metaclass=Singleton): method __init__ (line 12) | def __init__(self): method reset (line 18) | def reset(self): method create_chat_completion (line 24) | def create_chat_completion( method update_cost (line 68) | def update_cost(self, prompt_tokens, completion_tokens, model): method set_total_budget (line 85) | def set_total_budget(self, total_budget): method get_total_prompt_tokens (line 94) | def get_total_prompt_tokens(self): method get_total_completion_tokens (line 103) | def get_total_completion_tokens(self): method get_total_cost (line 112) | def get_total_cost(self): method get_total_budget (line 121) | def get_total_budget(self): FILE: autogpt/llm/base.py class Message (line 5) | class Message(TypedDict): class ModelInfo (line 13) | class ModelInfo: class ChatModelInfo (line 28) | class ChatModelInfo(ModelInfo): class EmbeddingModelInfo (line 35) | class EmbeddingModelInfo(ModelInfo): class LLMResponse (line 42) | class LLMResponse: class EmbeddingModelResponse (line 51) | class EmbeddingModelResponse(LLMResponse): method __post_init__ (line 56) | def __post_init__(self): class ChatModelResponse (line 62) | class ChatModelResponse(LLMResponse): FILE: autogpt/llm/chat.py function create_chat_message (line 23) | def create_chat_message(role, content) -> Message: function generate_context (line 37) | def generate_context(prompt, relevant_memory, full_message_history, model): function chat_with_ai (line 63) | def chat_with_ai( FILE: autogpt/llm/llm_utils.py function retry_openai_api (line 20) | def retry_openai_api( function call_ai_function (line 73) | def call_ai_function( function create_chat_completion (line 111) | def create_chat_completion( function batched (line 213) | def batched(iterable, n): function chunked_tokens (line 223) | def chunked_tokens(text, tokenizer_name, chunk_length): function get_ada_embedding (line 230) | def get_ada_embedding(text: str) -> List[float]: function create_embedding (line 253) | def create_embedding( FILE: autogpt/llm/token_counter.py function count_message_tokens (line 12) | def count_message_tokens( function count_string_tokens (line 64) | def count_string_tokens(string: str, model_name: str) -> int: FILE: autogpt/log_cycle/json_handler.py class JsonFileHandler (line 5) | class JsonFileHandler(logging.FileHandler): method __init__ (line 6) | def __init__(self, filename, mode="a", encoding=None, delay=False): method emit (line 9) | def emit(self, record): class JsonFormatter (line 18) | class JsonFormatter(logging.Formatter): method format (line 19) | def format(self, record): FILE: autogpt/log_cycle/log_cycle.py class LogCycleHandler (line 16) | class LogCycleHandler: method __init__ (line 21) | def __init__(self): method create_directory_if_not_exists (line 25) | def create_directory_if_not_exists(directory_path: str) -> None: method create_outer_directory (line 29) | def create_outer_directory(self, ai_name: str, created_at: str) -> str: method create_inner_directory (line 43) | def create_inner_directory(self, outer_folder_path: str, cycle_count: ... method create_nested_directory (line 50) | def create_nested_directory( method log_cycle (line 58) | def log_cycle( FILE: autogpt/logs.py class Logger (line 17) | class Logger(metaclass=Singleton): method __init__ (line 24) | def __init__(self): method typewriter_log (line 87) | def typewriter_log( method debug (line 106) | def debug( method info (line 114) | def info( method warn (line 122) | def warn( method error (line 130) | def error(self, title, message=""): method _log (line 133) | def _log( method set_level (line 147) | def set_level(self, level): method double_check (line 151) | def double_check(self, additionalText=None): method log_json (line 162) | def log_json(self, data: Any, file_name: str) -> None: method get_log_directory (line 177) | def get_log_directory(self): class TypingConsoleHandler (line 188) | class TypingConsoleHandler(logging.StreamHandler): method emit (line 189) | def emit(self, record): class ConsoleHandler (line 210) | class ConsoleHandler(logging.StreamHandler): method emit (line 211) | def emit(self, record) -> None: class AutoGptFormatter (line 219) | class AutoGptFormatter(logging.Formatter): method format (line 225) | def format(self, record: LogRecord) -> str: function remove_color_codes (line 246) | def remove_color_codes(s: str) -> str: function print_assistant_thoughts (line 254) | def print_assistant_thoughts( FILE: autogpt/main.py function run_auto_gpt (line 25) | def run_auto_gpt( FILE: autogpt/memory/__init__.py function get_memory (line 38) | def get_memory(cfg, init=False): function get_supported_memory_backends (line 84) | def get_supported_memory_backends(): FILE: autogpt/memory/base.py class MemoryProviderSingleton (line 7) | class MemoryProviderSingleton(AbstractSingleton): method add (line 9) | def add(self, data): method get (line 14) | def get(self, data): method clear (line 19) | def clear(self): method get_relevant (line 24) | def get_relevant(self, data, num_relevant=5): method get_stats (line 29) | def get_stats(self): FILE: autogpt/memory/local.py function create_default_embeddings (line 17) | def create_default_embeddings(): class CacheContent (line 22) | class CacheContent: class LocalCache (line 29) | class LocalCache(MemoryProviderSingleton): method __init__ (line 32) | def __init__(self, cfg) -> None: method add (line 52) | def add(self, text: str): method clear (line 83) | def clear(self) -> str: method get (line 92) | def get(self, data: str) -> list[Any] | None: method get_relevant (line 103) | def get_relevant(self, text: str, k: int) -> list[Any]: method get_stats (line 122) | def get_stats(self) -> tuple[int, tuple[int, ...]]: FILE: autogpt/memory/milvus.py class MilvusMemory (line 11) | class MilvusMemory(MemoryProviderSingleton): method __init__ (line 14) | def __init__(self, cfg: Config) -> None: method configure (line 36) | def configure(self, cfg: Config) -> None: method init_collection (line 72) | def init_collection(self) -> None: method add (line 93) | def add(self, data) -> str: method get (line 110) | def get(self, data): method clear (line 117) | def clear(self) -> str: method get_relevant (line 133) | def get_relevant(self, data: str, num_relevant: int = 5): method get_stats (line 158) | def get_stats(self) -> str: FILE: autogpt/memory/no_memory.py class NoMemory (line 9) | class NoMemory(MemoryProviderSingleton): method __init__ (line 14) | def __init__(self, cfg): method add (line 25) | def add(self, data: str) -> str: method get (line 36) | def get(self, data: str) -> list[Any] | None: method clear (line 48) | def clear(self) -> str: method get_relevant (line 56) | def get_relevant(self, data: str, num_relevant: int = 5) -> list[Any] ... method get_stats (line 69) | def get_stats(self): FILE: autogpt/memory/pinecone.py class PineconeMemory (line 9) | class PineconeMemory(MemoryProviderSingleton): method __init__ (line 10) | def __init__(self, cfg): method add (line 49) | def add(self, data): method get (line 57) | def get(self, data): method clear (line 60) | def clear(self): method get_relevant (line 64) | def get_relevant(self, data, num_relevant=5): method get_stats (line 77) | def get_stats(self): FILE: autogpt/memory/redismem.py class RedisMemory (line 27) | class RedisMemory(MemoryProviderSingleton): method __init__ (line 28) | def __init__(self, cfg): method add (line 80) | def add(self, data: str) -> str: method get (line 104) | def get(self, data: str) -> list[Any] | None: method clear (line 115) | def clear(self) -> str: method get_relevant (line 124) | def get_relevant(self, data: str, num_relevant: int = 5) -> list[Any] ... method get_stats (line 152) | def get_stats(self): FILE: autogpt/memory/weaviate.py function default_schema (line 11) | def default_schema(weaviate_index): class WeaviateMemory (line 24) | class WeaviateMemory(MemoryProviderSingleton): method __init__ (line 25) | def __init__(self, cfg): method format_classname (line 49) | def format_classname(index): method _create_schema (line 58) | def _create_schema(self): method _build_auth_credentials (line 63) | def _build_auth_credentials(self, cfg): method add (line 73) | def add(self, data): method get (line 89) | def get(self, data): method clear (line 92) | def clear(self): method get_relevant (line 102) | def get_relevant(self, data, num_relevant=5): method get_stats (line 123) | def get_stats(self): FILE: autogpt/memory_management/store_memory.py function format_memory (line 8) | def format_memory(assistant_reply, next_message_content): function save_memory_trimmed_from_context_window (line 22) | def save_memory_trimmed_from_context_window( FILE: autogpt/memory_management/summary_memory.py function get_newly_trimmed_messages (line 11) | def get_newly_trimmed_messages( function update_running_summary (line 48) | def update_running_summary( FILE: autogpt/models/base_open_ai_plugin.py class Message (line 9) | class Message(TypedDict): class BaseOpenAIPlugin (line 14) | class BaseOpenAIPlugin(AutoGPTPluginTemplate): method __init__ (line 19) | def __init__(self, manifests_specs_clients: dict): method can_handle_on_response (line 28) | def can_handle_on_response(self) -> bool: method on_response (line 35) | def on_response(self, response: str, *args, **kwargs) -> str: method can_handle_post_prompt (line 39) | def can_handle_post_prompt(self) -> bool: method post_prompt (line 46) | def post_prompt(self, prompt: PromptGenerator) -> PromptGenerator: method can_handle_on_planning (line 56) | def can_handle_on_planning(self) -> bool: method on_planning (line 63) | def on_planning( method can_handle_post_planning (line 73) | def can_handle_post_planning(self) -> bool: method post_planning (line 80) | def post_planning(self, response: str) -> str: method can_handle_pre_instruction (line 89) | def can_handle_pre_instruction(self) -> bool: method pre_instruction (line 96) | def pre_instruction(self, messages: List[Message]) -> List[Message]: method can_handle_on_instruction (line 105) | def can_handle_on_instruction(self) -> bool: method on_instruction (line 112) | def on_instruction(self, messages: List[Message]) -> Optional[str]: method can_handle_post_instruction (line 121) | def can_handle_post_instruction(self) -> bool: method post_instruction (line 128) | def post_instruction(self, response: str) -> str: method can_handle_pre_command (line 137) | def can_handle_pre_command(self) -> bool: method pre_command (line 144) | def pre_command( method can_handle_post_command (line 156) | def can_handle_post_command(self) -> bool: method post_command (line 163) | def post_command(self, command_name: str, response: str) -> str: method can_handle_chat_completion (line 173) | def can_handle_chat_completion( method handle_chat_completion (line 187) | def handle_chat_completion( FILE: autogpt/plugins.py function inspect_zip_for_modules (line 22) | def inspect_zip_for_modules(zip_path: str, debug: bool = False) -> list[... function write_dict_to_json_file (line 44) | def write_dict_to_json_file(data: dict, file_path: str) -> None: function fetch_openai_plugins_manifest_and_spec (line 55) | def fetch_openai_plugins_manifest_and_spec(cfg: Config) -> dict: function create_directory_if_not_exists (line 109) | def create_directory_if_not_exists(directory_path: str) -> bool: function initialize_openai_plugins (line 130) | def initialize_openai_plugins( function instantiate_openai_plugin_clients (line 180) | def instantiate_openai_plugin_clients( function scan_plugins (line 199) | def scan_plugins(cfg: Config, debug: bool = False) -> List[AutoGPTPlugin... function denylist_allowlist_check (line 254) | def denylist_allowlist_check(plugin_name: str, cfg: Config) -> bool: FILE: autogpt/processing/html.py function extract_hyperlinks (line 8) | def extract_hyperlinks(soup: BeautifulSoup, base_url: str) -> list[tuple... function format_hyperlinks (line 24) | def format_hyperlinks(hyperlinks: list[tuple[str, str]]) -> list[str]: FILE: autogpt/processing/text.py function split_text (line 15) | def split_text( function summarize_text (line 71) | def summarize_text( function scroll_to_percentage (line 140) | def scroll_to_percentage(driver: WebDriver, ratio: float) -> None: function create_message (line 155) | def create_message(chunk: str, question: str) -> Dict[str, str]: FILE: autogpt/prompts/generator.py class PromptGenerator (line 6) | class PromptGenerator: method __init__ (line 12) | def __init__(self) -> None: method add_constraint (line 36) | def add_constraint(self, constraint: str) -> None: method add_command (line 45) | def add_command( method _generate_command_string (line 77) | def _generate_command_string(self, command: Dict[str, Any]) -> str: method add_resource (line 92) | def add_resource(self, resource: str) -> None: method add_performance_evaluation (line 101) | def add_performance_evaluation(self, evaluation: str) -> None: method _generate_numbered_list (line 110) | def _generate_numbered_list(self, items: List[Any], item_type="list") ... method generate_prompt_string (line 136) | def generate_prompt_string(self) -> str: FILE: autogpt/prompts/prompt.py function build_default_prompt_generator (line 18) | def build_default_prompt_generator() -> PromptGenerator: function construct_main_ai_config (line 69) | def construct_main_ai_config() -> AIConfig: FILE: autogpt/setup.py function prompt_user (line 15) | def prompt_user() -> AIConfig: function generate_aiconfig_manual (line 74) | def generate_aiconfig_manual() -> AIConfig: function generate_aiconfig_automatic (line 160) | def generate_aiconfig_automatic(user_prompt) -> AIConfig: FILE: autogpt/singleton.py class Singleton (line 5) | class Singleton(abc.ABCMeta, type): method __call__ (line 12) | def __call__(cls, *args, **kwargs): class AbstractSingleton (line 19) | class AbstractSingleton(abc.ABC, metaclass=Singleton): FILE: autogpt/speech/base.py class VoiceBase (line 8) | class VoiceBase(AbstractSingleton): method __init__ (line 13) | def __init__(self): method say (line 24) | def say(self, text: str, voice_index: int = 0) -> bool: method _setup (line 36) | def _setup(self) -> None: method _speech (line 43) | def _speech(self, text: str, voice_index: int = 0) -> bool: FILE: autogpt/speech/brian.py class BrianSpeech (line 10) | class BrianSpeech(VoiceBase): method _setup (line 13) | def _setup(self) -> None: method _speech (line 17) | def _speech(self, text: str, _: int = 0) -> bool: FILE: autogpt/speech/eleven_labs.py class ElevenLabsSpeech (line 13) | class ElevenLabsSpeech(VoiceBase): method _setup (line 16) | def _setup(self) -> None: method _use_custom_voice (line 48) | def _use_custom_voice(self, voice, voice_index) -> None: method _speech (line 62) | def _speech(self, text: str, voice_index: int = 0) -> bool: FILE: autogpt/speech/gtts.py class GTTSVoice (line 10) | class GTTSVoice(VoiceBase): method _setup (line 13) | def _setup(self) -> None: method _speech (line 16) | def _speech(self, text: str, _: int = 0) -> bool: FILE: autogpt/speech/macos_tts.py class MacOSTTS (line 7) | class MacOSTTS(VoiceBase): method _setup (line 10) | def _setup(self) -> None: method _speech (line 13) | def _speech(self, text: str, voice_index: int = 0) -> bool: FILE: autogpt/speech/say.py function say_text (line 17) | def say_text(text: str, voice_index: int = 0) -> None: function _get_voice_engine (line 34) | def _get_voice_engine(config: Config) -> tuple[VoiceBase, VoiceBase]: FILE: autogpt/spinner.py class Spinner (line 8) | class Spinner: method __init__ (line 11) | def __init__(self, message: str = "Loading...", delay: float = 0.1) ->... method spin (line 24) | def spin(self) -> None: method __enter__ (line 32) | def __enter__(self): method __exit__ (line 40) | def __exit__(self, exc_type, exc_value, exc_traceback) -> None: method update_message (line 54) | def update_message(self, new_message, delay=0.1): FILE: autogpt/url_utils/validators.py function validate_url (line 8) | def validate_url(func: Callable[..., Any]) -> Any: function is_valid_url (line 39) | def is_valid_url(url: str) -> bool: function sanitize_url (line 55) | def sanitize_url(url: str) -> str: function check_local_file_access (line 69) | def check_local_file_access(url: str) -> bool: FILE: autogpt/utils.py function clean_input (line 20) | def clean_input(prompt: str = "", talk=False): function validate_yaml_file (line 61) | def validate_yaml_file(file: str): function readable_file_size (line 76) | def readable_file_size(size, decimal_places=2): function get_bulletin_from_web (line 89) | def get_bulletin_from_web(): function get_current_git_branch (line 102) | def get_current_git_branch() -> str: function get_latest_bulletin (line 111) | def get_latest_bulletin() -> tuple[str, bool]: function markdown_to_ansi_style (line 136) | def markdown_to_ansi_style(markdown: str): FILE: autogpt/workspace/workspace.py class Workspace (line 17) | class Workspace: method __init__ (line 22) | def __init__(self, workspace_root: str | Path, restrict_to_workspace: ... method root (line 27) | def root(self) -> Path: method restrict_to_workspace (line 32) | def restrict_to_workspace(self): method make_workspace (line 37) | def make_workspace(cls, workspace_directory: str | Path, *args, **kwar... method get_path (line 56) | def get_path(self, relative_path: str | Path) -> Path: method _sanitize_path (line 77) | def _sanitize_path( FILE: benchmark/benchmark_entrepreneur_gpt_with_difficult_user.py function benchmark_entrepreneur_gpt_with_difficult_user (line 6) | def benchmark_entrepreneur_gpt_with_difficult_user(): FILE: data_ingestion.py function configure_logging (line 11) | def configure_logging(): function ingest_directory (line 24) | def ingest_directory(directory, memory, args): function main (line 40) | def main() -> None: FILE: scripts/check_requirements.py function main (line 7) | def main(): FILE: scripts/install_plugin_deps.py function install_plugin_dependencies (line 8) | def install_plugin_dependencies(): FILE: tests/conftest.py function workspace_root (line 14) | def workspace_root(tmp_path: Path) -> Path: function workspace (line 19) | def workspace(workspace_root: Path) -> Workspace: function config (line 25) | def config(mocker: MockerFixture, workspace: Workspace) -> Config: function api_manager (line 38) | def api_manager() -> ApiManager: FILE: tests/integration/agent_factory.py function agent_test_config (line 12) | def agent_test_config(config: Config): function memory_local_cache (line 23) | def memory_local_cache(agent_test_config: Config): function memory_none (line 33) | def memory_none(agent_test_config: Config): function browser_agent (line 43) | def browser_agent(agent_test_config, memory_none: NoMemory, workspace: W... function writer_agent (line 80) | def writer_agent(agent_test_config, memory_none: NoMemory, workspace: Wo... function memory_management_agent (line 119) | def memory_management_agent( function get_company_revenue_agent (line 155) | def get_company_revenue_agent( FILE: tests/integration/agent_utils.py function run_interaction_loop (line 6) | def run_interaction_loop(agent: Agent, timeout: float | None): FILE: tests/integration/challenges/conftest.py function pytest_addoption (line 4) | def pytest_addoption(parser): function pytest_configure (line 10) | def pytest_configure(config): function user_selected_level (line 15) | def user_selected_level(request) -> int: FILE: tests/integration/challenges/information_retrieval/test_information_retrieval_challenge_a.py function input_generator (line 13) | def input_generator(input_sequence: list) -> Generator[str, None, None]: function test_information_retrieval_challenge_a (line 28) | def test_information_retrieval_challenge_a( FILE: tests/integration/challenges/memory/test_memory_challenge_a.py function test_memory_challenge_a (line 15) | def test_memory_challenge_a( function create_instructions_files (line 41) | def create_instructions_files( function generate_content (line 62) | def generate_content( FILE: tests/integration/challenges/memory/test_memory_challenge_b.py function test_memory_challenge_b (line 16) | def test_memory_challenge_b( function create_instructions_files (line 42) | def create_instructions_files( function generate_content (line 64) | def generate_content(index: int, task_ids: list, base_filename: str, lev... FILE: tests/integration/challenges/utils.py function get_level_to_run (line 8) | def get_level_to_run( function generate_noise (line 39) | def generate_noise(noise_size) -> str: function run_multiple_times (line 48) | def run_multiple_times(times): FILE: tests/integration/conftest.py function vcr_config (line 9) | def vcr_config(): FILE: tests/integration/goal_oriented/test_browse_website.py function test_browse_website (line 11) | def test_browse_website(browser_agent: Agent) -> None: FILE: tests/integration/goal_oriented/test_write_file.py function test_write_file (line 11) | def test_write_file(writer_agent: Agent) -> None: FILE: tests/integration/memory_tests.py class TestLocalCache (line 11) | class TestLocalCache(unittest.TestCase): method generate_random_string (line 12) | def generate_random_string(self, length): method setUp (line 15) | def setUp(self): method test_get_relevant (line 35) | def test_get_relevant(self): FILE: tests/integration/milvus_memory_tests.py class TestMilvusMemory (line 12) | class TestMilvusMemory(unittest.TestCase): method generate_random_string (line 15) | def generate_random_string(self, length: int) -> str: method setUp (line 18) | def setUp(self) -> None: method test_get_relevant (line 39) | def test_get_relevant(self) -> None: FILE: tests/integration/test_execute_code.py function config_allow_execute (line 13) | def config_allow_execute(config: Config, mocker: MockerFixture): function python_test_file (line 18) | def python_test_file(config: Config, random_string): function random_string (line 28) | def random_string(): function test_execute_python_file (line 32) | def test_execute_python_file(python_test_file: str, random_string: str): function test_execute_python_file_invalid (line 37) | def test_execute_python_file_invalid(): function test_execute_shell (line 48) | def test_execute_shell(config_allow_execute, random_string): FILE: tests/integration/test_git_commands.py function mock_clone_from (line 9) | def mock_clone_from(mocker): function test_clone_auto_gpt_repository (line 13) | def test_clone_auto_gpt_repository(workspace, mock_clone_from, config): function test_clone_repository_error (line 32) | def test_clone_repository_error(workspace, mock_clone_from): FILE: tests/integration/test_llm_utils.py function random_large_string (line 16) | def random_large_string(): function api_manager (line 25) | def api_manager(mocker: MockerFixture): function spy_create_embedding (line 37) | def spy_create_embedding(mocker: MockerFixture): function test_get_ada_embedding (line 43) | def test_get_ada_embedding( function test_get_ada_embedding_large_context (line 58) | def test_get_ada_embedding_large_context(random_large_string): FILE: tests/integration/test_local_cache.py function LocalCache (line 14) | def LocalCache(): function mock_embed_with_ada (line 22) | def mock_embed_with_ada(mocker): function test_init_without_backing_file (line 29) | def test_init_without_backing_file(LocalCache, config, workspace): function test_init_with_backing_empty_file (line 38) | def test_init_with_backing_empty_file(LocalCache, config, workspace): function test_init_with_backing_file (line 48) | def test_init_with_backing_file(LocalCache, config, workspace): function test_add (line 63) | def test_add(LocalCache, config, mock_embed_with_ada): function test_clear (line 70) | def test_clear(LocalCache, config, mock_embed_with_ada): function test_get (line 84) | def test_get(LocalCache, config, mock_embed_with_ada): function test_get_relevant (line 94) | def test_get_relevant(LocalCache, config) -> None: function test_get_stats (line 105) | def test_get_stats(LocalCache, config, mock_embed_with_ada) -> None: FILE: tests/integration/test_memory_management.py function message_history_fixture (line 14) | def message_history_fixture(): function expected_permanent_memory (line 32) | def expected_permanent_memory() -> str: function test_save_memory_trimmed_from_context_window (line 54) | def test_save_memory_trimmed_from_context_window( FILE: tests/integration/test_setup.py function test_generate_aiconfig_automatic_default (line 16) | def test_generate_aiconfig_automatic_default(): function test_generate_aiconfig_automatic_typical (line 29) | def test_generate_aiconfig_automatic_typical(): function test_generate_aiconfig_automatic_fallback (line 41) | def test_generate_aiconfig_automatic_fallback(): function test_prompt_user_manual_mode (line 62) | def test_prompt_user_manual_mode(): FILE: tests/integration/weaviate_memory_tests.py class TestWeaviateMemory (line 12) | class TestWeaviateMemory(unittest.TestCase): method setUpClass (line 18) | def setUpClass(cls): method setUp (line 50) | def setUp(self): method test_add (line 59) | def test_add(self): method test_get (line 69) | def test_get(self): method test_get_stats (line 88) | def test_get_stats(self): method test_clear (line 103) | def test_clear(self): FILE: tests/milvus_memory_test.py function mock_config (line 10) | def mock_config() -> dict: class TestMilvusMemory (line 25) | class TestMilvusMemory(unittest.TestCase): method setUp (line 28) | def setUp(self) -> None: method test_add (line 33) | def test_add(self) -> None: method test_clear (line 41) | def test_clear(self) -> None: method test_get (line 46) | def test_get(self) -> None: method test_get_relevant (line 54) | def test_get_relevant(self) -> None: method test_get_stats (line 64) | def test_get_stats(self) -> None: FILE: tests/mocks/mock_commands.py function function_based (line 5) | def function_based(arg1: int, arg2: str) -> str: FILE: tests/test_agent.py function agent (line 10) | def agent(): function test_agent_initialization (line 35) | def test_agent_initialization(agent): FILE: tests/test_agent_manager.py function agent_manager (line 8) | def agent_manager(): function task (line 16) | def task(): function prompt (line 21) | def prompt(): function model (line 26) | def model(): function mock_create_chat_completion (line 31) | def mock_create_chat_completion(mocker): function test_create_agent (line 40) | def test_create_agent(agent_manager, task, prompt, model): function test_message_agent (line 47) | def test_message_agent(agent_manager, task, prompt, model): function test_list_agents (line 54) | def test_list_agents(agent_manager, task, prompt, model): function test_delete_agent (line 61) | def test_delete_agent(agent_manager, task, prompt, model): FILE: tests/test_ai_config.py function test_goals_are_always_lists_of_strings (line 9) | def test_goals_are_always_lists_of_strings(tmp_path): FILE: tests/test_api_manager.py function reset_api_manager (line 11) | def reset_api_manager(): function mock_costs (line 17) | def mock_costs(): class TestApiManager (line 29) | class TestApiManager: method test_create_chat_completion_debug_mode (line 31) | def test_create_chat_completion_debug_mode(caplog): method test_create_chat_completion_empty_messages (line 51) | def test_create_chat_completion_empty_messages(): method test_create_chat_completion_valid_inputs (line 69) | def test_create_chat_completion_valid_inputs(): method test_getter_methods (line 89) | def test_getter_methods(self): method test_set_total_budget (line 99) | def test_set_total_budget(): method test_update_cost (line 107) | def test_update_cost(): FILE: tests/test_commands.py class TestCommand (line 11) | class TestCommand: method example_command_method (line 15) | def example_command_method(arg1: int, arg2: str) -> str: method test_command_creation (line 20) | def test_command_creation(self): method test_command_call (line 33) | def test_command_call(self): method test_command_call_with_invalid_arguments (line 44) | def test_command_call_with_invalid_arguments(self): method test_command_default_signature (line 54) | def test_command_default_signature(self): method test_command_custom_signature (line 63) | def test_command_custom_signature(self): class TestCommandRegistry (line 75) | class TestCommandRegistry: method example_command_method (line 77) | def example_command_method(arg1: int, arg2: str) -> str: method test_register_command (line 80) | def test_register_command(self): method test_unregister_command (line 94) | def test_unregister_command(self): method test_get_command (line 108) | def test_get_command(self): method test_get_nonexistent_command (line 122) | def test_get_nonexistent_command(self): method test_call_command (line 129) | def test_call_command(self): method test_call_nonexistent_command (line 143) | def test_call_nonexistent_command(self): method test_get_command_prompt (line 150) | def test_get_command_prompt(self): method test_import_mock_commands_module (line 164) | def test_import_mock_commands_module(self): method test_import_temp_command_file_module (line 178) | def test_import_temp_command_file_module(self, tmp_path): FILE: tests/test_config.py function test_initial_values (line 11) | def test_initial_values(config): function test_set_continuous_mode (line 24) | def test_set_continuous_mode(config): function test_set_speak_mode (line 38) | def test_set_speak_mode(config): function test_set_fast_llm_model (line 52) | def test_set_fast_llm_model(config): function test_set_smart_llm_model (line 66) | def test_set_smart_llm_model(config): function test_set_fast_token_limit (line 80) | def test_set_fast_token_limit(config): function test_set_smart_token_limit (line 94) | def test_set_smart_token_limit(config): function test_set_debug_mode (line 108) | def test_set_debug_mode(config): FILE: tests/test_image_gen.py function image_size (line 13) | def image_size(request): function test_dalle (line 22) | def test_dalle(config, workspace, image_size): function test_huggingface (line 40) | def test_huggingface(config, workspace, image_size, image_model): function test_sd_webui (line 52) | def test_sd_webui(config, workspace, image_size): function test_sd_webui_negative_prompt (line 63) | def test_sd_webui_negative_prompt(config, workspace, image_size): function lst (line 84) | def lst(txt): function generate_and_validate (line 89) | def generate_and_validate( FILE: tests/test_logs.py function test_remove_color_codes (line 27) | def test_remove_color_codes(raw_text, clean_text): FILE: tests/test_prompt_generator.py class TestPromptGenerator (line 6) | class TestPromptGenerator(TestCase): method setUpClass (line 13) | def setUpClass(cls): method test_add_constraint (line 20) | def test_add_constraint(self): method test_add_command (line 29) | def test_add_command(self): method test_add_resource (line 45) | def test_add_resource(self): method test_add_performance_evaluation (line 53) | def test_add_performance_evaluation(self): method test_generate_prompt_string (line 62) | def test_generate_prompt_string(self): FILE: tests/test_token_counter.py function test_count_message_tokens (line 6) | def test_count_message_tokens(): function test_count_message_tokens_with_name (line 14) | def test_count_message_tokens_with_name(): function test_count_message_tokens_empty_input (line 22) | def test_count_message_tokens_empty_input(): function test_count_message_tokens_invalid_model (line 27) | def test_count_message_tokens_invalid_model(): function test_count_message_tokens_gpt_4 (line 37) | def test_count_message_tokens_gpt_4(): function test_count_string_tokens (line 45) | def test_count_string_tokens(): function test_count_string_tokens_empty_input (line 52) | def test_count_string_tokens_empty_input(): function test_count_message_tokens_invalid_model (line 58) | def test_count_message_tokens_invalid_model(): function test_count_string_tokens_gpt_4 (line 68) | def test_count_string_tokens_gpt_4(): FILE: tests/test_utils.py function test_validate_yaml_file_valid (line 20) | def test_validate_yaml_file_valid(): function test_validate_yaml_file_not_found (line 30) | def test_validate_yaml_file_not_found(): function test_validate_yaml_file_invalid (line 37) | def test_validate_yaml_file_invalid(): function test_readable_file_size (line 50) | def test_readable_file_size(): function test_get_bulletin_from_web_success (line 58) | def test_get_bulletin_from_web_success(mock_get): function test_get_bulletin_from_web_failure (line 72) | def test_get_bulletin_from_web_failure(mock_get): function test_get_bulletin_from_web_exception (line 80) | def test_get_bulletin_from_web_exception(mock_get): function test_get_latest_bulletin_no_file (line 87) | def test_get_latest_bulletin_no_file(): function test_get_latest_bulletin_with_file (line 95) | def test_get_latest_bulletin_with_file(): function test_get_latest_bulletin_with_new_bulletin (line 108) | def test_get_latest_bulletin_with_new_bulletin(): function test_get_latest_bulletin_new_bulletin_same_as_old_bulletin (line 122) | def test_get_latest_bulletin_new_bulletin_same_as_old_bulletin(): function test_get_current_git_branch (line 136) | def test_get_current_git_branch(): function test_get_current_git_branch_success (line 144) | def test_get_current_git_branch_success(mock_repo): function test_get_current_git_branch_failure (line 152) | def test_get_current_git_branch_failure(mock_repo): FILE: tests/test_workspace.py function workspace_root (line 56) | def workspace_root(tmp_path): function accessible_path (line 61) | def accessible_path(request): function inaccessible_path (line 66) | def inaccessible_path(request): function test_sanitize_path_accessible (line 70) | def test_sanitize_path_accessible(accessible_path, workspace_root): function test_sanitize_path_inaccessible (line 80) | def test_sanitize_path_inaccessible(inaccessible_path, workspace_root): function test_get_path_accessible (line 89) | def test_get_path_accessible(accessible_path, workspace_root): function test_get_path_inaccessible (line 96) | def test_get_path_inaccessible(inaccessible_path, workspace_root): FILE: tests/unit/_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 21) | def test_invalid_json_major_with_gpt(self): method test_invalid_json_major_without_gpt (line 29) | def test_invalid_json_major_without_gpt(self): method test_invalid_json_leading_sentence_with_gpt (line 36) | def test_invalid_json_leading_sentence_with_gpt(self): method test_invalid_json_leading_sentence_with_gpt (line 75) | def test_invalid_json_leading_sentence_with_gpt(self): FILE: tests/unit/models/test_base_open_api_plugin.py class DummyPlugin (line 12) | class DummyPlugin(BaseOpenAIPlugin): function dummy_plugin (line 19) | def dummy_plugin(): function test_dummy_plugin_inheritance (line 33) | def test_dummy_plugin_inheritance(dummy_plugin): function test_dummy_plugin_name (line 38) | def test_dummy_plugin_name(dummy_plugin): function test_dummy_plugin_version (line 43) | def test_dummy_plugin_version(dummy_plugin): function test_dummy_plugin_description (line 48) | def test_dummy_plugin_description(dummy_plugin): function test_dummy_plugin_default_methods (line 53) | def test_dummy_plugin_default_methods(dummy_plugin): FILE: tests/unit/test_browse_scrape_links.py class TestScrapeLinks (line 40) | class TestScrapeLinks: method test_valid_url_with_hyperlinks (line 46) | def test_valid_url_with_hyperlinks(self): method test_valid_url (line 53) | def test_valid_url(self, mocker): method test_invalid_url (line 69) | def test_invalid_url(self, mocker): method test_no_hyperlinks (line 82) | def test_no_hyperlinks(self, mocker): method test_scrape_links_with_few_hyperlinks (line 96) | def test_scrape_links_with_few_hyperlinks(self, mocker): FILE: tests/unit/test_browse_scrape_text.py class TestScrapeText (line 44) | class TestScrapeText: method test_scrape_text_with_valid_url (line 45) | def test_scrape_text_with_valid_url(self, mocker): method test_invalid_url (line 62) | def test_invalid_url(self): method test_unreachable_url (line 67) | def test_unreachable_url(self, mocker): method test_no_text (line 80) | def test_no_text(self, mocker): method test_http_error (line 92) | def test_http_error(self, mocker): method test_scrape_text_with_html_tags (line 103) | def test_scrape_text_with_html_tags(self, mocker): FILE: tests/unit/test_chat.py function test_happy_path_role_content (line 8) | def test_happy_path_role_content(): function test_empty_role_content (line 14) | def test_empty_role_content(): function test_generate_context_empty_inputs (line 20) | def test_generate_context_empty_inputs(mocker): function test_generate_context_valid_inputs (line 49) | def test_generate_context_valid_inputs(): FILE: tests/unit/test_commands.py function test_make_agent (line 13) | def test_make_agent() -> None: FILE: tests/unit/test_file_operations.py function file_content (line 21) | def file_content(): function test_file_path (line 26) | def test_file_path(config, workspace: Workspace): function test_file (line 31) | def test_file(test_file_path: Path): function test_file_with_content_path (line 39) | def test_file_with_content_path(test_file: TextIOWrapper, file_content): function test_directory (line 49) | def test_directory(config, workspace: Workspace): function test_nested_file (line 54) | def test_nested_file(config, workspace: Workspace): function test_file_operations_log (line 58) | def test_file_operations_log(test_file: TextIOWrapper): function test_file_operations_state (line 80) | def test_file_operations_state(test_file: TextIOWrapper): function test_is_duplicate_operation (line 101) | def test_is_duplicate_operation(config, mocker: MockerFixture): function test_log_operation (line 133) | def test_log_operation(config: Config): function test_text_checksum (line 140) | def test_text_checksum(file_content: str): function test_log_operation_with_checksum (line 147) | def test_log_operation_with_checksum(config: Config): function test_split_file (line 155) | def test_split_file(): function test_read_file (line 162) | def test_read_file(test_file_with_content_path: Path, file_content): function test_write_to_file (line 167) | def test_write_to_file(test_file_path: Path): function test_write_file_logs_checksum (line 175) | def test_write_file_logs_checksum(config: Config, test_file_path: Path): function test_write_file_fails_if_content_exists (line 184) | def test_write_file_fails_if_content_exists(test_file_path: Path): function test_write_file_succeeds_if_content_different (line 195) | def test_write_file_succeeds_if_content_different(test_file_with_content... function test_append_to_file (line 201) | def test_append_to_file(test_nested_file: Path): function test_append_to_file_uses_checksum_from_appended_file (line 213) | def test_append_to_file_uses_checksum_from_appended_file( function test_delete_file (line 233) | def test_delete_file(test_file_with_content_path: Path): function test_delete_missing_file (line 239) | def test_delete_missing_file(config): function test_list_files (line 251) | def test_list_files(workspace: Workspace, test_directory: Path): function test_download_file (line 286) | def test_download_file(config, workspace: Workspace): FILE: tests/unit/test_get_self_feedback.py function test_get_self_feedback (line 6) | def test_get_self_feedback(mocker): FILE: tests/unit/test_json_parser.py class TestParseJson (line 7) | class TestParseJson(TestCase): method test_valid_json (line 8) | def test_valid_json(self): method test_invalid_json_minor (line 14) | 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 26) | def test_invalid_json_major_without_gpt(self): method test_invalid_json_leading_sentence_with_gpt (line 33) | def test_invalid_json_leading_sentence_with_gpt(self): FILE: tests/unit/test_json_utils_llm.py class TestFixJsonUsingMultipleTechniques (line 36) | class TestFixJsonUsingMultipleTechniques: method test_fix_and_parse_json_happy_path (line 38) | def test_fix_and_parse_json_happy_path(self): method test_fix_and_parse_json_whitespace (line 46) | def test_fix_and_parse_json_whitespace(self, mocker): method test_fix_and_parse_json_array (line 57) | def test_fix_and_parse_json_array(self): method test_fix_and_parse_json_can_not (line 65) | def test_fix_and_parse_json_can_not(self, mocker): method test_fix_and_parse_json_empty_string (line 81) | def test_fix_and_parse_json_empty_string(self, mocker): method test_fix_and_parse_json_escape_characters (line 95) | def test_fix_and_parse_json_escape_characters(self): method test_fix_and_parse_json_nested_objects (line 106) | def test_fix_and_parse_json_nested_objects(self): FILE: tests/unit/test_llm_utils.py function error (line 8) | def error(request): function error_factory (line 15) | def error_factory(error_instance, error_count, retry_count, warn_user=Tr... function test_retry_open_api_no_error (line 32) | def test_retry_open_api_no_error(capsys): function test_retry_open_api_passing (line 50) | def test_retry_open_api_passing(capsys, error, error_count, retry_count,... function test_retry_open_api_rate_limit_no_warn (line 75) | def test_retry_open_api_rate_limit_no_warn(capsys): function test_retry_openapi_other_api_error (line 91) | def test_retry_openapi_other_api_error(capsys): function test_chunked_tokens (line 106) | def test_chunked_tokens(): FILE: tests/unit/test_plugins.py function test_inspect_zip_for_modules (line 16) | def test_inspect_zip_for_modules(): function mock_config_denylist_allowlist_check (line 22) | def mock_config_denylist_allowlist_check(): function test_denylist_allowlist_check_denylist (line 34) | def test_denylist_allowlist_check_denylist( function test_denylist_allowlist_check_allowlist (line 44) | def test_denylist_allowlist_check_allowlist( function test_denylist_allowlist_check_user_input_yes (line 52) | def test_denylist_allowlist_check_user_input_yes( function test_denylist_allowlist_check_user_input_no (line 62) | def test_denylist_allowlist_check_user_input_no( function test_denylist_allowlist_check_user_input_invalid (line 72) | def test_denylist_allowlist_check_user_input_invalid( function config_with_plugins (line 83) | def config_with_plugins(): function mock_config_openai_plugin (line 93) | def mock_config_openai_plugin(): function test_scan_plugins_openai (line 107) | def test_scan_plugins_openai(mock_config_openai_plugin): function mock_config_generic_plugin (line 114) | def mock_config_generic_plugin(): function test_scan_plugins_generic (line 127) | def test_scan_plugins_generic(mock_config_generic_plugin): FILE: tests/unit/test_spinner.py function test_spinner_initializes_with_default_values (line 31) | def test_spinner_initializes_with_default_values(): function test_spinner_initializes_with_custom_values (line 38) | def test_spinner_initializes_with_custom_values(): function test_spinner_stops_spinning (line 46) | def test_spinner_stops_spinning(): function test_spinner_updates_message_and_still_spins (line 55) | def test_spinner_updates_message_and_still_spins(): function test_spinner_can_be_used_as_context_manager (line 66) | def test_spinner_can_be_used_as_context_manager(): FILE: tests/unit/test_url_validation.py function dummy_method (line 8) | def dummy_method(url): function test_url_validation_succeeds (line 21) | def test_url_validation_succeeds(url): function test_url_validation_fails_bad_protocol (line 33) | def test_url_validation_fails_bad_protocol(url): function test_url_validation_fails_bad_protocol (line 42) | def test_url_validation_fails_bad_protocol(url): function test_url_validation_fails_local_path (line 57) | def test_url_validation_fails_local_path(url): FILE: tests/unit/test_web_selenium.py function test_browse_website (line 4) | def test_browse_website(): FILE: tests/utils.py function dummy_openai_api_key (line 11) | def dummy_openai_api_key(): function requires_api_key (line 23) | def requires_api_key(env_var): function skip_in_ci (line 38) | def skip_in_ci(test_function): function get_workspace_file_path (line 45) | def get_workspace_file_path(workspace, file_name): FILE: tests/vcr/openai_filter.py function replace_timestamp_in_request (line 5) | def replace_timestamp_in_request(request): function before_record_response (line 29) | def before_record_response(response): function before_record_request (line 35) | def before_record_request(request): function filter_hostnames (line 43) | def filter_hostnames(request): FILE: tests/vcr/vcr_filter.py function replace_message_content (line 17) | def replace_message_content(content: str, replacements: List[Dict[str, s... function replace_timestamp_in_request (line 25) | def replace_timestamp_in_request(request: Any) -> Any: function before_record_response (line 49) | def before_record_response(response: Dict[str, Any]) -> Dict[str, Any]: function before_record_request (line 55) | def before_record_request(request: Any) -> Any: function filter_hostnames (line 63) | def filter_hostnames(request: Any) -> Any: