SYMBOL INDEX (4552 symbols across 231 files) FILE: scripts/bump-version.py function get_current_version (line 15) | def get_current_version() -> str: function get_sdk_dependency_version (line 24) | def get_sdk_dependency_version() -> Optional[str]: function check_sdk_version_on_pypi (line 31) | def check_sdk_version_on_pypi(version: str, max_wait: int = 300) -> bool: function update_sdk_dependency (line 51) | def update_sdk_dependency(new_sdk_version: str): function parse_version (line 63) | def parse_version(version: str) -> Tuple[int, int, int, Optional[str]]: function bump_version (line 74) | def bump_version(current: str, bump_type: str) -> str: function update_version_in_file (line 91) | def update_version_in_file(file_path: Path, old_version: str, new_versio... function update_all_versions (line 106) | def update_all_versions(old_version: str, new_version: str): function get_git_log (line 121) | def get_git_log(since_tag: Optional[str] = None) -> str: function update_changelog (line 139) | def update_changelog(new_version: str, changes: str = None, sdk_version:... function main (line 175) | def main(): FILE: scripts/validate-release.py class Colors (line 15) | class Colors: function print_status (line 26) | def print_status(message: str, status: str = "info"): function run_command (line 40) | def run_command(cmd: List[str], capture=True) -> Tuple[int, str, str]: function check_version (line 46) | def check_version() -> str: function check_dependencies (line 71) | def check_dependencies(): function check_security_files (line 102) | def check_security_files(): function validate_package_contents (line 126) | def validate_package_contents(wheel_path: Path): function main (line 162) | def main(): FILE: src/bedrock_agentcore_starter_toolkit/cli/cli.py function _deprecation_banner (line 40) | def _deprecation_banner(ctx: typer.Context) -> None: function main (line 81) | def main(): # pragma: no cover FILE: src/bedrock_agentcore_starter_toolkit/cli/cli_ui.py class NoUnderline (line 37) | class NoUnderline(StyleTransformation): method transform_attrs (line 40) | def transform_attrs(self, attrs): class OptionState (line 50) | class OptionState: method __init__ (line 53) | def __init__(self, values: list[tuple[str, str, str | None]]): method current_value (line 64) | def current_value(self): function build_option_fragments (line 69) | def build_option_fragments(state: OptionState): function show_create_welcome_ascii (line 116) | def show_create_welcome_ascii() -> None: function select_one (line 127) | def select_one(title: str, options: list[str] | dict[str, str], default:... function ask_text (line 226) | def ask_text( function ask_text_with_validation (line 306) | def ask_text_with_validation( function intro_animate_once (line 408) | def intro_animate_once(): function print_border (line 422) | def print_border(char: str = "-", style: str = "") -> None: function sandwich_text_ui (line 428) | def sandwich_text_ui(style: str, text: str) -> None: function show_invalid_aws_creds (line 436) | def show_invalid_aws_creds(ok: bool, msg: Optional[str], optional_header... function _pause_and_new_line_on_finish (line 457) | def _pause_and_new_line_on_finish(sleep_override: float | None = None): FILE: src/bedrock_agentcore_starter_toolkit/cli/common.py function requires_aws_creds (line 15) | def requires_aws_creds(func): function assert_valid_aws_creds_or_exit (line 26) | def assert_valid_aws_creds_or_exit(failure_message=None): function _handle_error (line 35) | def _handle_error(message: str, exception: Optional[Exception] = None) -... function _handle_warn (line 44) | def _handle_warn(message: str) -> None: function _print_success (line 49) | def _print_success(message: str) -> None: function _prompt_with_default (line 54) | def _prompt_with_default(question: str, default_value: Optional[str] = "... FILE: src/bedrock_agentcore_starter_toolkit/cli/create/commands.py function create (line 84) | def create( function _apply_non_interactive_defaults (line 177) | def _apply_non_interactive_defaults( function _handle_basic_runtime_flow (line 219) | def _handle_basic_runtime_flow( function _handle_monorepo_flow (line 268) | def _handle_monorepo_flow( function _assert_sdk_and_model_provider_combination (line 320) | def _assert_sdk_and_model_provider_combination(sdk: SDKProvider, model_p... function handle_keyboard_interrupt (line 330) | def handle_keyboard_interrupt(): FILE: src/bedrock_agentcore_starter_toolkit/cli/create/import_agent/agent_info.py function get_clients (line 13) | def get_clients(credentials, region_name="us-west-2"): function get_agents (line 36) | def get_agents(bedrock_agent_client) -> list[dict[str, str]]: function get_agent_aliases (line 57) | def get_agent_aliases(bedrock_agent_client, agent_id): function get_agent_info (line 79) | def get_agent_info(agent_id: str, agent_alias_id: str, bedrock_client, b... function auth_and_get_info (line 213) | def auth_and_get_info(agent_id: str, agent_alias_id: str, output_dir: st... FILE: src/bedrock_agentcore_starter_toolkit/cli/create/import_agent/commands.py function _run_agent (line 22) | def _run_agent(output_dir, output_path): function _agentcore_invoke_cli (line 60) | def _agentcore_invoke_cli(output_dir): function import_agent (line 83) | def import_agent( FILE: src/bedrock_agentcore_starter_toolkit/cli/create/prompt_util.py function prompt_runtime_or_monorepo (line 10) | def prompt_runtime_or_monorepo(runtime_only_text: str): function prompt_iac_provider (line 19) | def prompt_iac_provider() -> IACProvider: function prompt_sdk_provider (line 27) | def prompt_sdk_provider(is_direct_code_deploy: bool = False) -> CreateSD... function prompt_model_provider (line 36) | def prompt_model_provider(sdk_provider: str | None = None) -> CreateMode... function prompt_configure (line 45) | def prompt_configure(): function prompt_memory (line 55) | def prompt_memory() -> bool: function prompt_git_init (line 63) | def prompt_git_init(): function get_auto_generated_project_name (line 69) | def get_auto_generated_project_name() -> str: FILE: src/bedrock_agentcore_starter_toolkit/cli/evaluation/commands.py function _get_agent_config_from_file (line 42) | def _get_agent_config_from_file(agent_name: Optional[str] = None) -> Opt... function run_evaluation (line 79) | def run_evaluation( function list_evaluators (line 261) | def list_evaluators( function get_evaluator (line 298) | def get_evaluator( function _interactive_create_evaluator (line 338) | def _interactive_create_evaluator(client: EvaluationControlPlaneClient) ... function create_evaluator (line 393) | def create_evaluator( function update_evaluator (line 473) | def update_evaluator( function delete_evaluator (line 527) | def delete_evaluator( function create_online_config (line 570) | def create_online_config( function get_online_config (line 691) | def get_online_config( function list_online_configs (line 752) | def list_online_configs( function update_online_config (line 833) | def update_online_config( function delete_online_config (line 913) | def delete_online_config( FILE: src/bedrock_agentcore_starter_toolkit/cli/gateway/commands.py function create_mcp_gateway (line 16) | def create_mcp_gateway( function create_mcp_gateway_target (line 47) | def create_mcp_gateway_target( function delete_mcp_gateway (line 102) | def delete_mcp_gateway( function delete_mcp_gateway_target (line 137) | def delete_mcp_gateway_target( function list_mcp_gateways (line 170) | def list_mcp_gateways( function get_mcp_gateway (line 190) | def get_mcp_gateway( function list_mcp_gateway_targets (line 216) | def list_mcp_gateway_targets( function get_mcp_gateway_target (line 247) | def get_mcp_gateway_target( function update_gateway (line 280) | def update_gateway( FILE: src/bedrock_agentcore_starter_toolkit/cli/identity/commands.py function create_credential_provider (line 33) | def create_credential_provider( function create_workload_identity (line 148) | def create_workload_identity( function update_workload_identity (line 224) | def update_workload_identity( function get_cognito_inbound_token (line 289) | def get_cognito_inbound_token( function list_credential_providers (line 409) | def list_credential_providers(): function _build_provider_config (line 470) | def _build_provider_config( function _save_provider_config (line 526) | def _save_provider_config(name: str, arn: str, provider_type: str, callb... function _save_workload_config (line 548) | def _save_workload_config(name: str, arn: str, return_urls: List[str]): function setup_cognito (line 567) | def setup_cognito( function setup_aws_jwt (line 708) | def setup_aws_jwt( function list_aws_jwt (line 857) | def list_aws_jwt(): function cleanup_identity (line 894) | def cleanup_identity( FILE: src/bedrock_agentcore_starter_toolkit/cli/memory/browser.py class NavigationState (line 24) | class NavigationState: class BrowserData (line 39) | class BrowserData: class MemoryBrowser (line 50) | class MemoryBrowser: method __init__ (line 53) | def __init__( method run (line 77) | def run(self) -> None: method _clear (line 177) | def _clear(self) -> None: method _render (line 181) | def _render(self) -> None: method _render_breadcrumb (line 188) | def _render_breadcrumb(self) -> None: method _render_content (line 221) | def _render_content(self) -> None: method _render_memory_view (line 235) | def _render_memory_view(self) -> None: method _render_list_view (line 259) | def _render_list_view(self, view_type: str) -> None: method _render_event_detail (line 360) | def _render_event_detail(self) -> None: method _render_record_detail (line 367) | def _render_record_detail(self) -> None: method _render_controls (line 374) | def _render_controls(self) -> None: method _load_view (line 410) | def _load_view(self) -> None: method _load_memory (line 442) | def _load_memory(self) -> None: method _load_actors (line 450) | def _load_actors(self, load_more: bool = False) -> None: method _load_sessions (line 472) | def _load_sessions(self, load_more: bool = False) -> None: method _load_events (line 494) | def _load_events(self, load_more: bool = False) -> None: method _load_namespaces (line 521) | def _load_namespaces(self) -> None: method _load_records (line 532) | def _load_records(self, load_more: bool = False) -> None: method _cursor_up (line 555) | def _cursor_up(self) -> None: method _cursor_down (line 560) | def _cursor_down(self) -> None: method _push_state (line 565) | def _push_state(self) -> None: method _go_back (line 570) | def _go_back(self) -> None: method _select (line 577) | def _select(self) -> None: method _select_memory_item (line 597) | def _select_memory_item(self) -> None: method _select_actor (line 602) | def _select_actor(self) -> None: method _select_session (line 610) | def _select_session(self) -> None: method _select_event (line 618) | def _select_event(self) -> None: method _select_namespace (line 623) | def _select_namespace(self) -> None: method _select_namespace_actor (line 639) | def _select_namespace_actor(self) -> None: method _select_namespace_session (line 655) | def _select_namespace_session(self) -> None: method _select_record (line 667) | def _select_record(self) -> None: method _extract_role (line 672) | def _extract_role(self, event: Dict[str, Any]) -> str: method _extract_text (line 683) | def _extract_text(self, event: Dict[str, Any]) -> str: method _extract_payload_snippet (line 694) | def _extract_payload_snippet(self, event: Dict[str, Any]) -> str: method _extract_record_text (line 704) | def _extract_record_text(self, record: Dict[str, Any]) -> str: FILE: src/bedrock_agentcore_starter_toolkit/cli/memory/commands.py class ResolvedMemoryConfig (line 33) | class ResolvedMemoryConfig: class _ConfigLookupResult (line 41) | class _ConfigLookupResult: function _get_memory_config_from_file (line 50) | def _get_memory_config_from_file(agent_name: Optional[str] = None) -> _C... function _resolve_memory_config (line 80) | def _resolve_memory_config( function _validate_events_options (line 144) | def _validate_events_options( function _validate_records_options (line 162) | def _validate_records_options( function _collect_all_events (line 182) | def _collect_all_events(manager: MemoryManager, memory_id: str) -> List[... function _collect_all_records (line 203) | def _collect_all_records( function _collect_records_from_namespace_template (line 230) | def _collect_records_from_namespace_template( function _try_collect_records (line 262) | def _try_collect_records( function create (line 283) | def create( function show (line 354) | def show( function get (line 429) | def get( function list_memories_cmd (line 459) | def list_memories_cmd( function delete (line 480) | def delete( function status (line 508) | def status( function show_callback (line 532) | def show_callback( function show_events (line 581) | def show_events( function _handle_list_actors (line 658) | def _handle_list_actors(manager: MemoryManager, memory_id: str) -> None: function _handle_list_sessions (line 668) | def _handle_list_sessions(manager: MemoryManager, memory_id: str, actor_... function _handle_show_nth_event (line 681) | def _handle_show_nth_event( function show_records (line 714) | def show_records( function _handle_semantic_search (line 780) | def _handle_semantic_search( function _handle_show_nth_record (line 800) | def _handle_show_nth_record( function browse (line 839) | def browse( FILE: src/bedrock_agentcore_starter_toolkit/cli/observability/commands.py function _get_default_time_range (line 30) | def _get_default_time_range(days: int = DEFAULT_LOOKBACK_DAYS) -> tuple[... function _get_agent_config_from_file (line 37) | def _get_agent_config_from_file(agent_name: Optional[str] = None) -> Opt... function _create_observability_client (line 67) | def _create_observability_client( function _display_trace_list (line 136) | def _display_trace_list(trace_data: TraceData, session_id: str) -> None: function _export_trace_data_to_json (line 224) | def _export_trace_data_to_json(trace_data: TraceData, output_path: str, ... function show (line 243) | def show( function _show_trace_view (line 404) | def _show_trace_view( function _show_session_view (line 445) | def _show_session_view( function list_traces (line 553) | def list_traces( FILE: src/bedrock_agentcore_starter_toolkit/cli/policy/commands.py function create_policy_engine (line 20) | def create_policy_engine( function get_policy_engine (line 55) | def get_policy_engine( function update_policy_engine (line 77) | def update_policy_engine( function list_policy_engines (line 97) | def list_policy_engines( function delete_policy_engine (line 136) | def delete_policy_engine( function create_policy (line 154) | def create_policy( function get_policy (line 197) | def get_policy( function update_policy (line 223) | def update_policy( function list_policies (line 259) | def list_policies( function delete_policy (line 305) | def delete_policy( function create_policy_from_generation (line 321) | def create_policy_from_generation( function start_policy_generation (line 357) | def start_policy_generation( function get_policy_generation (line 400) | def get_policy_generation( function list_policy_generation_assets (line 422) | def list_policy_generation_assets( function list_policy_generations (line 443) | def list_policy_generations( FILE: src/bedrock_agentcore_starter_toolkit/cli/runtime/_configure_impl.py function configure_impl (line 23) | def configure_impl( function _validate_requirements_file (line 702) | def _validate_requirements_file(file_path: str) -> str: function _prompt_for_requirements_file (line 716) | def _prompt_for_requirements_file(prompt_text: str, source_path: str, de... function _handle_requirements_file_display (line 751) | def _handle_requirements_file_display( function _detect_entrypoint_in_source (line 805) | def _detect_entrypoint_in_source(source_path: str, non_interactive: bool... FILE: src/bedrock_agentcore_starter_toolkit/cli/runtime/commands.py function _show_configuration_not_found_panel (line 45) | def _show_configuration_not_found_panel(): function list_agents (line 62) | def list_agents(): function set_default (line 86) | def set_default(name: str = typer.Argument(...)): function configure (line 106) | def configure( function deploy (line 219) | def deploy( function _show_invoke_info_panel (line 619) | def _show_invoke_info_panel(agent_name: str, invoke_result=None, config=... function _show_success_response (line 663) | def _show_success_response(content): function _show_error_response (line 670) | def _show_error_response(error_msg: str): function _parse_custom_headers (line 675) | def _parse_custom_headers(headers_str: str) -> dict: function invoke (line 714) | def invoke( function status (line 880) | def status( function stop_session (line 1101) | def stop_session( function destroy (line 1204) | def destroy( function _invoke_dev_server (line 1353) | def _invoke_dev_server(payload: str, port: int = 8080, session_id: str =... FILE: src/bedrock_agentcore_starter_toolkit/cli/runtime/configuration_manager.py class ConfigurationManager (line 11) | class ConfigurationManager: method __init__ (line 14) | def __init__(self, config_path: Path, non_interactive: bool = False, r... method prompt_agent_name (line 29) | def prompt_agent_name(self, suggested_name: str) -> str: method prompt_execution_role (line 52) | def prompt_execution_role(self) -> Optional[str]: method prompt_ecr_repository (line 72) | def prompt_ecr_repository(self) -> tuple[Optional[str], bool]: method prompt_s3_bucket (line 92) | def prompt_s3_bucket(self) -> tuple[Optional[str], bool]: method _validate_s3_bucket (line 115) | def _validate_s3_bucket(self, s3_input: str) -> bool: method prompt_oauth_config (line 147) | def prompt_oauth_config(self) -> Optional[dict]: method _configure_oauth (line 167) | def _configure_oauth(self) -> dict: method prompt_request_header_allowlist (line 229) | def prompt_request_header_allowlist(self) -> Optional[dict]: method _configure_request_header_allowlist (line 257) | def _configure_request_header_allowlist(self) -> dict: method prompt_memory_type (line 278) | def prompt_memory_type(self) -> tuple[bool, bool]: method prompt_memory_selection (line 316) | def prompt_memory_selection(self) -> Tuple[str, str]: method _prompt_new_memory_config (line 409) | def _prompt_new_memory_config(self) -> Tuple[str, str]: FILE: src/bedrock_agentcore_starter_toolkit/cli/runtime/dev_command.py function dev (line 25) | def dev( function _get_language (line 101) | def _get_language(config_path: Path) -> str: function _has_dev_script (line 114) | def _has_dev_script(project_dir: Path) -> bool: function _build_typescript_command (line 129) | def _build_typescript_command(config_path: Path, port: str) -> List[str]: function _get_module_path_and_agent_name (line 140) | def _get_module_path_and_agent_name(config_path: Path) -> tuple[str, str]: function _get_env_vars (line 171) | def _get_env_vars(config_path: Path) -> Dict[str, str]: function _ensure_config (line 189) | def _ensure_config(config_path: Path) -> Tuple[bool, bool]: function _get_module_path_from_config (line 207) | def _get_module_path_from_config(config_path: Path, agent_config) -> str: function _setup_dev_environment (line 223) | def _setup_dev_environment(envs: List[str], port: Optional[int], config_... function _find_available_port (line 261) | def _find_available_port(start_port: int = 8080) -> int: function _assert_aws_creds_if_required (line 273) | def _assert_aws_creds_if_required(config_path: Path): function _cleanup_process (line 290) | def _cleanup_process(process): FILE: src/bedrock_agentcore_starter_toolkit/create/baseline_feature.py class BaselineFeature (line 10) | class BaselineFeature(Feature): method __init__ (line 16) | def __init__(self, ctx: ProjectContext): method before_apply (line 37) | def before_apply(self, context): method after_apply (line 41) | def after_apply(self, context): method execute (line 45) | def execute(self, context: ProjectContext) -> None: FILE: src/bedrock_agentcore_starter_toolkit/create/configure/resolve.py function resolve_agent_config_with_project_context (line 19) | def resolve_agent_config_with_project_context(ctx: ProjectContext, agent... FILE: src/bedrock_agentcore_starter_toolkit/create/constants.py class TemplateDisplay (line 10) | class TemplateDisplay: class TemplateDirSelection (line 17) | class TemplateDirSelection: class DeploymentType (line 25) | class DeploymentType: class RuntimeProtocol (line 32) | class RuntimeProtocol: class IACProvider (line 44) | class IACProvider: method get_iac_as_list (line 53) | def get_iac_as_list(cls) -> list[CreateIACProvider]: class MemoryConfig (line 58) | class MemoryConfig: method get_memory_display_names_as_list (line 71) | def get_memory_display_names_as_list(cls) -> list[str]: method get_id_from_display (line 77) | def get_id_from_display(cls, display_name: str) -> CreateMemoryType: class SDKProvider (line 85) | class SDKProvider: method get_sdk_display_names_as_list (line 117) | def get_sdk_display_names_as_list(cls, is_direct_code_deploy: bool = F... method get_id_from_display (line 125) | def get_id_from_display(cls, display_name: str) -> CreateSDKProvider: method resolve_to_internal_id (line 133) | def resolve_to_internal_id(cls, input_val: str) -> str: class ModelProvider (line 148) | class ModelProvider: method _get_filtered_ids (line 183) | def _get_filtered_ids(cls, sdk_provider: str | None = None) -> list[Cr... method get_provider_display_names_as_list (line 207) | def get_provider_display_names_as_list(cls, sdk_provider: str | None =... method get_providers_list (line 213) | def get_providers_list(cls, sdk_provider: str | None = None) -> list[C... method get_id_from_display (line 218) | def get_id_from_display(cls, display_name: str) -> str: FILE: src/bedrock_agentcore_starter_toolkit/create/features/autogen/feature.py class AutogenFeature (line 8) | class AutogenFeature(Feature): method before_apply (line 13) | def before_apply(self, context: ProjectContext) -> None: method after_apply (line 33) | def after_apply(self, context: ProjectContext) -> None: method execute (line 37) | def execute(self, context: ProjectContext): FILE: src/bedrock_agentcore_starter_toolkit/create/features/base_feature.py class Feature (line 15) | class Feature(ABC): method __init__ (line 23) | def __init__(self) -> None: method _resolve_template_dir (line 31) | def _resolve_template_dir(self, context: ProjectContext) -> Path: method before_apply (line 43) | def before_apply(self, context: ProjectContext) -> None: method after_apply (line 48) | def after_apply(self, context: ProjectContext) -> None: method apply (line 52) | def apply(self, context: ProjectContext) -> None: method execute (line 60) | def execute(self, context: ProjectContext) -> None: method render_dir (line 64) | def render_dir(self, dest_dir: Path, context: ProjectContext) -> None: method _render_from_template_src_dir (line 90) | def _render_from_template_src_dir(self, template_src_dir: Path, dest_d... FILE: src/bedrock_agentcore_starter_toolkit/create/features/cdk/feature.py class CDKFeature (line 10) | class CDKFeature(Feature): method before_apply (line 16) | def before_apply(self, context: ProjectContext): method after_apply (line 22) | def after_apply(self, context: ProjectContext) -> None: method execute (line 26) | def execute(self, context: ProjectContext) -> None: FILE: src/bedrock_agentcore_starter_toolkit/create/features/crewai/feature.py class CrewAIFeature (line 8) | class CrewAIFeature(Feature): method before_apply (line 13) | def before_apply(self, context: ProjectContext) -> None: method after_apply (line 30) | def after_apply(self, context: ProjectContext) -> None: method execute (line 34) | def execute(self, context: ProjectContext): FILE: src/bedrock_agentcore_starter_toolkit/create/features/googleadk/feature.py class GoogleADKFeature (line 8) | class GoogleADKFeature(Feature): method before_apply (line 14) | def before_apply(self, context: ProjectContext) -> None: method after_apply (line 18) | def after_apply(self, context: ProjectContext) -> None: method execute (line 22) | def execute(self, context: ProjectContext): FILE: src/bedrock_agentcore_starter_toolkit/create/features/langchain_langgraph/feature.py class LangChainLangGraphFeature (line 8) | class LangChainLangGraphFeature(Feature): method before_apply (line 13) | def before_apply(self, context: ProjectContext) -> None: method after_apply (line 33) | def after_apply(self, context: ProjectContext) -> None: method execute (line 37) | def execute(self, context: ProjectContext): FILE: src/bedrock_agentcore_starter_toolkit/create/features/openaiagents/feature.py class OpenAIAgentsFeature (line 8) | class OpenAIAgentsFeature(Feature): method before_apply (line 14) | def before_apply(self, context: ProjectContext) -> None: method after_apply (line 18) | def after_apply(self, context: ProjectContext) -> None: method execute (line 22) | def execute(self, context: ProjectContext): FILE: src/bedrock_agentcore_starter_toolkit/create/features/strands/feature.py class StrandsFeature (line 8) | class StrandsFeature(Feature): method before_apply (line 13) | def before_apply(self, context: ProjectContext) -> None: method after_apply (line 27) | def after_apply(self, context: ProjectContext) -> None: method execute (line 31) | def execute(self, context: ProjectContext): FILE: src/bedrock_agentcore_starter_toolkit/create/features/terraform/feature.py class TerraformFeature (line 10) | class TerraformFeature(Feature): method before_apply (line 15) | def before_apply(self, context: ProjectContext): method after_apply (line 21) | def after_apply(self, context: ProjectContext) -> None: method execute (line 25) | def execute(self, context: ProjectContext) -> None: FILE: src/bedrock_agentcore_starter_toolkit/create/generate.py function generate_project (line 25) | def generate_project( function _apply_baseline_and_sdk_features (line 119) | def _apply_baseline_and_sdk_features(ctx: ProjectContext) -> None: function _apply_iac_generation (line 154) | def _apply_iac_generation(ctx: ProjectContext, agent_config: BedrockAgen... FILE: src/bedrock_agentcore_starter_toolkit/create/progress/progress_sink.py class ProgressSink (line 14) | class ProgressSink: method step (line 21) | def step(self, message: str, done_message: str | None = None, error_me... method notification (line 66) | def notification(self, message: str): FILE: src/bedrock_agentcore_starter_toolkit/create/types.py class ProjectContext (line 26) | class ProjectContext: method dict (line 68) | def dict(self): FILE: src/bedrock_agentcore_starter_toolkit/create/util/console_print.py function emit_create_completed_message (line 9) | def emit_create_completed_message(ctx: ProjectContext): FILE: src/bedrock_agentcore_starter_toolkit/create/util/create_agentcore_yaml.py function write_minimal_create_with_iac_project_yaml (line 15) | def write_minimal_create_with_iac_project_yaml(ctx: ProjectContext) -> P... function write_minimal_create_runtime_yaml (line 46) | def write_minimal_create_runtime_yaml(ctx: ProjectContext, memory: Creat... FILE: src/bedrock_agentcore_starter_toolkit/create/util/dotenv.py function _write_env_file_directly (line 8) | def _write_env_file_directly(output_dir: Path, model_provider: str, api_... FILE: src/bedrock_agentcore_starter_toolkit/create/util/subprocess.py function create_and_init_venv (line 14) | def create_and_init_venv(ctx: ProjectContext, sink: ProgressSink) -> None: function init_git_project (line 42) | def init_git_project(ctx: ProjectContext, sink: ProgressSink) -> None: function _has_uv (line 69) | def _has_uv() -> bool: function _has_git (line 73) | def _has_git() -> bool: function _run (line 77) | def _run(cmd: list[str], cwd: Path) -> None: function _run_quiet (line 82) | def _run_quiet(cmd: list[str], cwd: Path) -> None: FILE: src/bedrock_agentcore_starter_toolkit/notebook/evaluation/client.py class Evaluation (line 21) | class Evaluation: method __init__ (line 43) | def __init__( method from_config (line 85) | def from_config( method get_latest_session (line 123) | def get_latest_session(self, agent_id: str) -> Optional[str]: method run (line 156) | def run( method list_evaluators (line 257) | def list_evaluators(self, max_results: int = 50) -> Dict: method get_evaluator (line 278) | def get_evaluator(self, evaluator_id: str, output: Optional[str] = Non... method duplicate_evaluator (line 304) | def duplicate_evaluator( method create_evaluator (line 344) | def create_evaluator( method update_evaluator (line 396) | def update_evaluator( method delete_evaluator (line 429) | def delete_evaluator(self, evaluator_id: str) -> None: method create_online_config (line 447) | def create_online_config( method get_online_config (line 514) | def get_online_config(self, config_id: str) -> Dict: method list_online_configs (line 535) | def list_online_configs(self, agent_id: Optional[str] = None, max_resu... method update_online_config (line 565) | def update_online_config( method delete_online_config (line 611) | def delete_online_config(self, config_id: str, delete_execution_role: ... FILE: src/bedrock_agentcore_starter_toolkit/notebook/memory/memory.py function _resolve_memory_config (line 12) | def _resolve_memory_config( class Memory (line 44) | class Memory: method __init__ (line 58) | def __init__( method show (line 68) | def show(self, verbose: bool = False) -> Dict[str, Any]: method show_events (line 74) | def show_events( method show_records (line 138) | def show_records( FILE: src/bedrock_agentcore_starter_toolkit/notebook/observability/observability.py class Observability (line 17) | class Observability: method __init__ (line 33) | def __init__( method list (line 68) | def list( method show (line 136) | def show( FILE: src/bedrock_agentcore_starter_toolkit/notebook/runtime/bedrock_agentcore.py class Runtime (line 29) | class Runtime: method __init__ (line 32) | def __init__(self): method configure (line 37) | def configure( method launch (line 257) | def launch( method invoke (line 394) | def invoke( method stop_session (line 433) | def stop_session(self, session_id: Optional[str] = None) -> Dict[str, ... method status (line 463) | def status(self) -> StatusResult: method destroy (line 479) | def destroy( method help_deployment_modes (line 549) | def help_deployment_modes(self): method help_vpc_networking (line 585) | def help_vpc_networking(self): FILE: src/bedrock_agentcore_starter_toolkit/operations/constants.py class OTelFields (line 14) | class OTelFields: class AttributePrefixes (line 31) | class AttributePrefixes: class GenAIAttributes (line 43) | class GenAIAttributes: class LLMAttributes (line 67) | class LLMAttributes: class InstrumentationScopes (line 75) | class InstrumentationScopes: class TruncationConfig (line 95) | class TruncationConfig: method truncate (line 104) | def truncate(cls, text: str, length: int = None, is_tool_use: bool = F... FILE: src/bedrock_agentcore_starter_toolkit/operations/evaluation/control_plane_client.py class EvaluationControlPlaneClient (line 21) | class EvaluationControlPlaneClient: method __init__ (line 41) | def __init__(self, region_name: str, endpoint_url: Optional[str] = Non... method list_evaluators (line 70) | def list_evaluators(self, max_results: int = 50) -> Dict[str, Any]: method get_evaluator (line 96) | def get_evaluator(self, evaluator_id: str) -> Dict[str, Any]: method create_evaluator (line 107) | def create_evaluator( method update_evaluator (line 127) | def update_evaluator( method delete_evaluator (line 163) | def delete_evaluator(self, evaluator_id: str) -> None: method create_online_evaluation_config (line 175) | def create_online_evaluation_config( method get_online_evaluation_config (line 269) | def get_online_evaluation_config(self, config_id: str) -> Dict[str, Any]: method list_online_evaluation_configs (line 285) | def list_online_evaluation_configs(self, agent_id: Optional[str] = Non... method update_online_evaluation_config (line 312) | def update_online_evaluation_config( method delete_online_evaluation_config (line 345) | def delete_online_evaluation_config(self, config_id: str) -> None: FILE: src/bedrock_agentcore_starter_toolkit/operations/evaluation/create_role.py function _generate_deterministic_suffix (line 16) | def _generate_deterministic_suffix(config_name: str, length: int = 10) -... function get_or_create_evaluation_execution_role (line 34) | def get_or_create_evaluation_execution_role( function _attach_inline_policy (line 217) | def _attach_inline_policy( FILE: src/bedrock_agentcore_starter_toolkit/operations/evaluation/data_plane_client.py class EvaluationDataPlaneClient (line 20) | class EvaluationDataPlaneClient: method __init__ (line 29) | def __init__(self, region_name: str, endpoint_url: Optional[str] = Non... method evaluate (line 57) | def evaluate( FILE: src/bedrock_agentcore_starter_toolkit/operations/evaluation/evaluator_processor.py function filter_custom_evaluators (line 16) | def filter_custom_evaluators(evaluators: List[Dict[str, Any]]) -> List[D... function is_builtin_evaluator (line 28) | def is_builtin_evaluator(evaluator_id: str) -> bool: function validate_evaluator_config (line 40) | def validate_evaluator_config(config_data: Dict[str, Any]) -> None: function get_evaluator_for_duplication (line 58) | def get_evaluator_for_duplication( function create_evaluator (line 96) | def create_evaluator( function duplicate_evaluator (line 122) | def duplicate_evaluator( function update_evaluator (line 154) | def update_evaluator( function update_evaluator_instructions (line 186) | def update_evaluator_instructions( function delete_evaluator (line 220) | def delete_evaluator(client: EvaluationControlPlaneClient, evaluator_id:... function list_evaluators (line 242) | def list_evaluators(client: EvaluationControlPlaneClient, max_results: i... function get_evaluator (line 255) | def get_evaluator(client: EvaluationControlPlaneClient, evaluator_id: st... FILE: src/bedrock_agentcore_starter_toolkit/operations/evaluation/formatters.py function display_evaluator_list (line 19) | def display_evaluator_list(evaluators: List[Dict[str, Any]], console: Co... function display_evaluator_details (line 74) | def display_evaluator_details(details: Dict[str, Any], console: Console)... function display_evaluation_results (line 125) | def display_evaluation_results(results: EvaluationResults, console: Cons... function save_evaluation_results (line 209) | def save_evaluation_results(results: EvaluationResults, output_file: str... function save_json_output (line 247) | def save_json_output(data: Dict[str, Any], output_file: str, console: Co... FILE: src/bedrock_agentcore_starter_toolkit/operations/evaluation/models.py class ReferenceInputs (line 8) | class ReferenceInputs: method to_api_dict (line 20) | def to_api_dict(self, session_id: str) -> List[Dict[str, Any]]: class EvaluationRequest (line 53) | class EvaluationRequest: method to_api_request (line 64) | def to_api_request(self) -> tuple[str, Dict[str, Any]]: class EvaluationResult (line 81) | class EvaluationResult: method from_api_response (line 95) | def from_api_response(cls, result: Dict[str, Any]) -> "EvaluationResult": method has_error (line 129) | def has_error(self) -> bool: class EvaluationResults (line 135) | class EvaluationResults: method add_result (line 143) | def add_result(self, result: EvaluationResult) -> None: method has_errors (line 147) | def has_errors(self) -> bool: method get_successful_results (line 151) | def get_successful_results(self) -> List[EvaluationResult]: method get_failed_results (line 155) | def get_failed_results(self) -> List[EvaluationResult]: method to_dict (line 159) | def to_dict(self) -> Dict[str, Any]: class OnlineEvaluationConfig (line 190) | class OnlineEvaluationConfig: method from_api_response (line 215) | def from_api_response(cls, response: Dict[str, Any]) -> "OnlineEvaluat... method to_dict (line 263) | def to_dict(self) -> Dict[str, Any]: method is_enabled (line 284) | def is_enabled(self) -> bool: FILE: src/bedrock_agentcore_starter_toolkit/operations/evaluation/on_demand_processor.py class EvaluationProcessor (line 27) | class EvaluationProcessor: method __init__ (line 37) | def __init__(self, data_plane_client, control_plane_client=None): method get_latest_session (line 47) | def get_latest_session(self, agent_id: str, region: str) -> Optional[s... method fetch_session_data (line 88) | def fetch_session_data( method extract_raw_spans (line 152) | def extract_raw_spans(self, trace_data: TraceData) -> List[Dict[str, A... method filter_relevant_spans (line 175) | def filter_relevant_spans(self, raw_spans: List[Dict[str, Any]]) -> Li... method filter_traces_up_to (line 211) | def filter_traces_up_to(self, trace_data: TraceData, target_trace_id: ... method get_most_recent_spans (line 248) | def get_most_recent_spans( method count_span_types (line 282) | def count_span_types(self, raw_spans: List[Dict[str, Any]]) -> tuple: method determine_spans_for_evaluator (line 304) | def determine_spans_for_evaluator( method execute_evaluators (line 343) | def execute_evaluators( method evaluate_session (line 418) | def evaluate_session( method _group_evaluators_by_level (line 515) | def _group_evaluators_by_level(self, evaluators: List[str]) -> Dict[st... FILE: src/bedrock_agentcore_starter_toolkit/operations/evaluation/online_processor.py function create_online_evaluation_config (line 19) | def create_online_evaluation_config( function get_online_evaluation_config (line 90) | def get_online_evaluation_config( function list_online_evaluation_configs (line 113) | def list_online_evaluation_configs( function update_online_evaluation_config (line 144) | def update_online_evaluation_config( function delete_online_evaluation_config (line 200) | def delete_online_evaluation_config( function _delete_execution_role (line 241) | def _delete_execution_role(role_arn: str) -> None: FILE: src/bedrock_agentcore_starter_toolkit/operations/gateway/client.py class GatewayClient (line 25) | class GatewayClient: method __init__ (line 28) | def __init__(self, region_name: Optional[str] = None, endpoint_url: Op... method create_mcp_gateway (line 57) | def create_mcp_gateway( method create_mcp_gateway_target (line 134) | def create_mcp_gateway_target( method fix_iam_permissions (line 206) | def fix_iam_permissions(self, gateway: dict) -> None: method delete_gateway (line 268) | def delete_gateway( method delete_gateway_target (line 343) | def delete_gateway_target( method _get_gateway_id_by_name (line 407) | def _get_gateway_id_by_name(self, name: str) -> Optional[str]: method list_gateways (line 431) | def list_gateways( method get_gateway (line 467) | def get_gateway( method list_gateway_targets (line 504) | def list_gateway_targets( method get_gateway_target (line 561) | def get_gateway_target( method cleanup_gateway (line 622) | def cleanup_gateway(self, gateway_id: str, client_info: Optional[Dict]... method __handle_lambda_target_creation (line 699) | def __handle_lambda_target_creation(self, role_arn: str) -> Dict[str, ... method __handle_openapi_target_credential_provider_creation (line 710) | def __handle_openapi_target_credential_provider_creation( method __wait_for_ready (line 765) | def __wait_for_ready(resource_name, method, identifiers, max_attempts:... method generate_random_id (line 793) | def generate_random_id(): method create_oauth_authorizer_with_cognito (line 797) | def create_oauth_authorizer_with_cognito(self, gateway_name: str) -> D... method update_gateway (line 926) | def update_gateway( method update_gateway_policy_engine (line 1006) | def update_gateway_policy_engine( method get_access_token_for_cognito (line 1030) | def get_access_token_for_cognito(self, client_info: Dict[str, Any]) ->... method _enable_observability_for_gateway (line 1093) | def _enable_observability_for_gateway(self, gateway: dict) -> None: method enable_observability (line 1109) | def enable_observability( method disable_observability (line 1136) | def disable_observability( FILE: src/bedrock_agentcore_starter_toolkit/operations/gateway/create_lambda.py function create_test_lambda (line 19) | def create_test_lambda(session: Session, logger: logging.Logger, gateway... FILE: src/bedrock_agentcore_starter_toolkit/operations/gateway/create_role.py function create_gateway_execution_role (line 18) | def create_gateway_execution_role( function _attach_policy (line 70) | def _attach_policy( function _try_create_policy (line 101) | def _try_create_policy(iam_client: BaseClient, policy_name: str, policy_... function _get_existing_policy_arn (line 122) | def _get_existing_policy_arn(iam_client: BaseClient, policy_name: str) -... FILE: src/bedrock_agentcore_starter_toolkit/operations/gateway/exceptions.py class GatewayException (line 4) | class GatewayException(Exception): class GatewaySetupException (line 10) | class GatewaySetupException(GatewayException): FILE: src/bedrock_agentcore_starter_toolkit/operations/identity/helpers.py function create_cognito_oauth_pool (line 15) | def create_cognito_oauth_pool( function update_cognito_callback_urls (line 112) | def update_cognito_callback_urls(pool_id: str, client_id: str, callback_... function get_cognito_access_token (line 146) | def get_cognito_access_token( function get_cognito_m2m_token (line 190) | def get_cognito_m2m_token( function _random_suffix (line 243) | def _random_suffix(length: int = 4) -> str: function _generate_password (line 250) | def _generate_password(length: int = 16) -> str: function ensure_identity_permissions (line 257) | def ensure_identity_permissions(role_arn: str, provider_arns: list, regi... function setup_aws_jwt_federation (line 360) | def setup_aws_jwt_federation(region: str, logger: Optional[logging.Logge... function get_aws_jwt_federation_info (line 424) | def get_aws_jwt_federation_info(region: str, logger: Optional[logging.Lo... function ensure_aws_jwt_permissions (line 454) | def ensure_aws_jwt_permissions( class IdentityCognitoManager (line 526) | class IdentityCognitoManager: method __init__ (line 529) | def __init__(self, region_name: str): method generate_random_id (line 542) | def generate_random_id() -> str: method create_dual_pool_setup (line 546) | def create_dual_pool_setup(self) -> Dict[str, Any]: method _create_runtime_pool (line 579) | def _create_runtime_pool(self) -> Dict[str, Any]: method _create_identity_pool (line 631) | def _create_identity_pool(self) -> Dict[str, Any]: method _wait_for_domain (line 689) | def _wait_for_domain(self, domain_prefix: str, max_attempts: int = 30)... method _generate_password (line 708) | def _generate_password() -> str: method cleanup_cognito_pools (line 730) | def cleanup_cognito_pools(self, runtime_pool_id: str = None, identity_... method _delete_user_pool (line 749) | def _delete_user_pool(self, pool_id: str, pool_type: str) -> None: method _create_identity_pool_m2m (line 782) | def _create_identity_pool_m2m(self) -> Dict[str, Any]: method create_user_federation_pools (line 835) | def create_user_federation_pools(self) -> Dict[str, Any]: method create_m2m_pools (line 851) | def create_m2m_pools(self) -> Dict[str, Any]: FILE: src/bedrock_agentcore_starter_toolkit/operations/identity/oauth2_callback_server.py function start_oauth2_callback_server (line 20) | def start_oauth2_callback_server(config_path: Path, agent_name: str, deb... class BedrockAgentCoreIdentity3loCallback (line 26) | class BedrockAgentCoreIdentity3loCallback(Starlette): method __init__ (line 29) | def __init__(self, config_path: Path, agent_name: str, debug: bool = F... method run (line 38) | def run(self, **kwargs): method _handle_3lo_callback (line 50) | def _handle_3lo_callback(self, request: Request) -> JSONResponse: method get_oauth2_callback_endpoint (line 84) | def get_oauth2_callback_endpoint(cls) -> str: FILE: src/bedrock_agentcore_starter_toolkit/operations/memory/constants.py class StrategyType (line 7) | class StrategyType(Enum): method extraction_wrapper_key (line 15) | def extraction_wrapper_key(self) -> Optional[str]: method consolidation_wrapper_key (line 23) | def consolidation_wrapper_key(self) -> Optional[str]: method get_memory_strategy (line 30) | def get_memory_strategy(self) -> str: method get_override_type (line 40) | def get_override_type(self) -> Optional[str]: class OverrideType (line 49) | class OverrideType(Enum): method extraction_wrapper_key (line 56) | def extraction_wrapper_key(self) -> Optional[str]: method consolidation_wrapper_key (line 64) | def consolidation_wrapper_key(self) -> Optional[str]: class MemoryStatus (line 74) | class MemoryStatus(Enum): class MemoryStrategyStatus (line 84) | class MemoryStrategyStatus(Enum): FILE: src/bedrock_agentcore_starter_toolkit/operations/memory/manager.py class MemoryManager (line 26) | class MemoryManager: method __init__ (line 33) | def __init__( method __getattr__ (line 96) | def __getattr__(self, name: str): method _validate_namespace (line 132) | def _validate_namespace(self, namespace: str) -> bool: method _validate_strategy_config (line 142) | def _validate_strategy_config(self, strategy: Dict[str, Any], strategy... method _wrap_configuration (line 150) | def _wrap_configuration( method _create_memory (line 199) | def _create_memory( method _create_memory_and_wait (line 245) | def _create_memory_and_wait( method create_memory_and_wait (line 304) | def create_memory_and_wait( method get_or_create_memory (line 364) | def get_or_create_memory( method get_memory (line 435) | def get_memory(self, memory_id: str) -> Memory: method get_memory_status (line 449) | def get_memory_status(self, memory_id: str) -> str: method get_memory_strategies (line 458) | def get_memory_strategies(self, memory_id: str) -> List[MemoryStrategy]: method list_memories (line 471) | def list_memories(self, max_results: int = 100) -> list[MemorySummary]: method delete_memory (line 508) | def delete_memory(self, memory_id: str) -> Dict[str, Any]: method delete_memory_and_wait (line 521) | def delete_memory_and_wait(self, memory_id: str, max_wait: int = 300, ... method _paginated_list (line 565) | def _paginated_list( method _paginated_list_page (line 613) | def _paginated_list_page( method list_actors (line 641) | def list_actors( method list_sessions (line 674) | def list_sessions( method list_events (line 709) | def list_events( method get_event (line 746) | def get_event(self, memory_id: str, event_id: str) -> Dict[str, Any]: method list_records (line 770) | def list_records( method get_record (line 805) | def get_record(self, memory_id: str, record_id: str) -> Dict[str, Any]: method search_records (line 829) | def search_records( method add_semantic_strategy (line 869) | def add_semantic_strategy( method add_semantic_strategy_and_wait (line 893) | def add_semantic_strategy_and_wait( method add_summary_strategy (line 913) | def add_summary_strategy( method add_summary_strategy_and_wait (line 937) | def add_summary_strategy_and_wait( method add_user_preference_strategy (line 950) | def add_user_preference_strategy( method add_user_preference_strategy_and_wait (line 974) | def add_user_preference_strategy_and_wait( method add_custom_semantic_strategy (line 987) | def add_custom_semantic_strategy( method add_custom_semantic_strategy_and_wait (line 1033) | def add_custom_semantic_strategy_and_wait( method modify_strategy (line 1050) | def modify_strategy( method delete_strategy (line 1070) | def delete_strategy(self, memory_id: str, strategy_id: str) -> Memory: method update_memory_strategies (line 1074) | def update_memory_strategies( method update_memory_strategies_and_wait (line 1161) | def update_memory_strategies_and_wait( method add_strategy (line 1202) | def add_strategy(self, memory_id: str, strategy: Union[BaseStrategy, D... method add_strategy_and_wait (line 1228) | def add_strategy_and_wait( method _check_strategies_terminal_state (line 1273) | def _check_strategies_terminal_state(self, strategies: List[Dict[str, ... method _wait_for_memory_active (line 1299) | def _wait_for_memory_active(self, memory_id: str, max_wait: int, poll_... method _validate_namespace (line 1368) | def _validate_namespace(self, namespace: str) -> bool: method _validate_strategy_config (line 1378) | def _validate_strategy_config(self, strategy: Dict[str, Any], strategy... method _enable_observability_for_memory (line 1386) | def _enable_observability_for_memory(self, memory: Memory) -> None: method enable_observability (line 1394) | def enable_observability( method disable_observability (line 1418) | def disable_observability( FILE: src/bedrock_agentcore_starter_toolkit/operations/memory/memory_formatters.py function get_memory_status_icon (line 10) | def get_memory_status_icon(status: str) -> str: function get_memory_status_style (line 21) | def get_memory_status_style(status: str) -> str: function get_strategy_type_icon (line 32) | def get_strategy_type_icon(strategy_type: str) -> str: function get_strategy_status_style (line 37) | def get_strategy_status_style(status: str) -> str: function format_namespaces (line 42) | def format_namespaces(namespaces: list) -> str: function format_memory_age (line 49) | def format_memory_age(created_at: Any) -> str: class DisplayConfig (line 80) | class DisplayConfig: function extract_record_text (line 94) | def extract_record_text(record: Dict[str, Any]) -> str: function extract_event_text (line 109) | def extract_event_text(event: Dict[str, Any]) -> Optional[str]: function extract_event_role (line 142) | def extract_event_role(event: Dict[str, Any]) -> Optional[str]: function extract_event_type (line 159) | def extract_event_type(event: Dict[str, Any]) -> Optional[str]: function truncate_text (line 181) | def truncate_text(text: str, max_len: int = 80, verbose: bool = False) -... function format_content_preview (line 197) | def format_content_preview(text: str, verbose: bool = False) -> str: function render_content_panel (line 212) | def render_content_panel(text: str, verbose: bool = False) -> Union[Pane... function format_payload_snippet (line 227) | def format_payload_snippet(event: Dict[str, Any], max_len: int = 60) -> ... function format_truncation_hint (line 248) | def format_truncation_hint(shown: int, total: int) -> str: function format_role_icon (line 264) | def format_role_icon(role: Optional[str]) -> str: FILE: src/bedrock_agentcore_starter_toolkit/operations/memory/memory_visualizer.py class MemoryVisualizer (line 38) | class MemoryVisualizer: method __init__ (line 41) | def __init__(self, console: Optional[Console] = None): method build_memory_tree (line 47) | def build_memory_tree( method build_actors_table (line 70) | def build_actors_table(self, actors: List[Dict[str, Any]], memory_id: ... method build_sessions_table (line 88) | def build_sessions_table(self, sessions: List[Dict[str, Any]], actor_i... method build_events_table (line 106) | def build_events_table(self, events: List[Dict[str, Any]], session_id:... method build_event_detail (line 131) | def build_event_detail(self, event: Dict[str, Any], verbose: bool = Fa... method build_namespaces_table (line 175) | def build_namespaces_table(self, strategies: List[Dict[str, Any]], mem... method build_records_table (line 200) | def build_records_table(self, records: List[Dict[str, Any]], namespace... method build_record_detail (line 225) | def build_record_detail( method visualize_memory (line 253) | def visualize_memory( method _extract_memory_data (line 260) | def _extract_memory_data(self, memory: Any) -> Dict[str, Any]: method _format_memory_header (line 266) | def _format_memory_header(self, memory_id: str, name: str, status: str... method _add_memory_info (line 277) | def _add_memory_info(self, tree: Tree, data: Dict[str, Any], verbose: ... method _add_memory_strategies (line 302) | def _add_memory_strategies(self, tree: Tree, data: Dict[str, Any], ver... method _add_strategy_node (line 314) | def _add_strategy_node(self, parent: Tree, strategy: Dict[str, Any], v... method _format_strategy_header (line 340) | def _format_strategy_header(self, name: str, strategy_type: str, statu... method _add_config_tree (line 354) | def _add_config_tree(self, parent: Tree, config: Dict[str, Any]) -> None: method display_memory_list (line 366) | def display_memory_list(self, memories: List[Dict[str, Any]], manager:... method _format_memory_row (line 386) | def _format_memory_row(self, memory: Any, manager: Any) -> tuple: method display_events_tree (line 419) | def display_events_tree( method _get_actors (line 453) | def _get_actors(self, manager: Any, memory_id: str, actor_id: Optional... method _build_actor_subtree (line 460) | def _build_actor_subtree( method _get_sessions (line 493) | def _get_sessions( method _build_session_subtree (line 502) | def _build_session_subtree( method _group_events_by_branch (line 536) | def _group_events_by_branch(self, events: List[Dict[str, Any]]) -> Dic... method _add_event_node (line 546) | def _add_event_node(self, branch_tree: Tree, event: Dict[str, Any], ve... method display_single_event (line 569) | def display_single_event(self, event: Dict[str, Any], nth: int, total:... method display_single_record (line 591) | def display_single_record(self, record: Dict[str, Any], nth: int, tota... method _format_position_label (line 604) | def _format_position_label(self, nth: int, total: int) -> str: method _print_content_panel (line 608) | def _print_content_panel(self, text: str, verbose: bool) -> None: method display_namespace_records (line 618) | def display_namespace_records( method display_records_tree (line 642) | def display_records_tree( method _add_strategy_records (line 662) | def _add_strategy_records( method _add_records_to_tree (line 692) | def _add_records_to_tree( method _resolve_namespace (line 717) | def _resolve_namespace(self, manager: Any, memory_id: str, ns_template... method display_search_results (line 741) | def display_search_results(self, records: List[Dict[str, Any]], query:... method _output_or_print (line 760) | def _output_or_print(self, tree: Tree, data: Dict[str, Any], output: O... FILE: src/bedrock_agentcore_starter_toolkit/operations/memory/models/DictWrapper.py class DictWrapper (line 6) | class DictWrapper: method __init__ (line 9) | def __init__(self, data: Dict[str, Any]): method __getattr__ (line 17) | def __getattr__(self, name: str) -> Any: method __getitem__ (line 21) | def __getitem__(self, key: str) -> Any: method get (line 25) | def get(self, key: str, default: Any = None) -> Any: method __contains__ (line 29) | def __contains__(self, key: str) -> bool: method keys (line 33) | def keys(self): method values (line 37) | def values(self): method items (line 41) | def items(self): method __dir__ (line 45) | def __dir__(self): method __repr__ (line 49) | def __repr__(self): FILE: src/bedrock_agentcore_starter_toolkit/operations/memory/models/Memory.py class Memory (line 8) | class Memory(DictWrapper): method __init__ (line 11) | def __init__(self, memory: Dict[str, Any]): FILE: src/bedrock_agentcore_starter_toolkit/operations/memory/models/MemoryStrategy.py class MemoryStrategy (line 8) | class MemoryStrategy(DictWrapper): method __init__ (line 11) | def __init__(self, memory_strategy: Dict[str, Any]): FILE: src/bedrock_agentcore_starter_toolkit/operations/memory/models/MemorySummary.py class MemorySummary (line 8) | class MemorySummary(DictWrapper): method __init__ (line 11) | def __init__(self, memory_summary: Dict[str, Any]): FILE: src/bedrock_agentcore_starter_toolkit/operations/memory/models/__init__.py function convert_strategies_to_dicts (line 56) | def convert_strategies_to_dicts(strategies: List[StrategyType]) -> List[... FILE: src/bedrock_agentcore_starter_toolkit/operations/memory/models/strategies/base.py class ExtractionConfig (line 16) | class ExtractionConfig(BaseModel): class ConsolidationConfig (line 30) | class ConsolidationConfig(BaseModel): class BaseStrategy (line 44) | class BaseStrategy(BaseModel, ABC): method to_dict (line 58) | def to_dict(self) -> Dict[str, Any]: FILE: src/bedrock_agentcore_starter_toolkit/operations/memory/models/strategies/custom.py class CustomSemanticStrategy (line 10) | class CustomSemanticStrategy(BaseStrategy): method to_dict (line 39) | def to_dict(self) -> Dict[str, Any]: method _convert_extraction_config (line 59) | def _convert_extraction_config(self) -> Dict[str, Any]: method _convert_consolidation_config (line 68) | def _convert_consolidation_config(self) -> Dict[str, Any]: class CustomSummaryStrategy (line 78) | class CustomSummaryStrategy(BaseStrategy): method to_dict (line 100) | def to_dict(self) -> Dict[str, Any]: method _convert_consolidation_config (line 119) | def _convert_consolidation_config(self) -> Dict[str, Any]: class CustomUserPreferenceStrategy (line 129) | class CustomUserPreferenceStrategy(BaseStrategy): method to_dict (line 158) | def to_dict(self) -> Dict[str, Any]: method _convert_extraction_config (line 178) | def _convert_extraction_config(self) -> Dict[str, Any]: method _convert_consolidation_config (line 187) | def _convert_consolidation_config(self) -> Dict[str, Any]: FILE: src/bedrock_agentcore_starter_toolkit/operations/memory/models/strategies/self_managed.py class MessageBasedTrigger (line 10) | class MessageBasedTrigger(BaseModel): class TokenBasedTrigger (line 16) | class TokenBasedTrigger(BaseModel): class TimeBasedTrigger (line 22) | class TimeBasedTrigger(BaseModel): class InvocationConfig (line 30) | class InvocationConfig(BaseModel): class SelfManagedStrategy (line 37) | class SelfManagedStrategy(BaseStrategy): method to_dict (line 72) | def to_dict(self) -> Dict[str, Any]: method _convert_trigger_conditions (line 90) | def _convert_trigger_conditions(self) -> List[Dict[str, Any]]: method _convert_invocation_config (line 102) | def _convert_invocation_config(self) -> Dict[str, Any]: FILE: src/bedrock_agentcore_starter_toolkit/operations/memory/models/strategies/semantic.py class SemanticStrategy (line 8) | class SemanticStrategy(BaseStrategy): method to_dict (line 23) | def to_dict(self) -> Dict[str, Any]: FILE: src/bedrock_agentcore_starter_toolkit/operations/memory/models/strategies/summary.py class SummaryStrategy (line 8) | class SummaryStrategy(BaseStrategy): method to_dict (line 23) | def to_dict(self) -> Dict[str, Any]: FILE: src/bedrock_agentcore_starter_toolkit/operations/memory/models/strategies/user_preference.py class UserPreferenceStrategy (line 8) | class UserPreferenceStrategy(BaseStrategy): method to_dict (line 22) | def to_dict(self) -> Dict[str, Any]: FILE: src/bedrock_agentcore_starter_toolkit/operations/memory/strategy_validator.py class UniversalComparator (line 14) | class UniversalComparator: method _camel_to_snake (line 18) | def _camel_to_snake(name: str) -> str: method normalize_field_names (line 25) | def normalize_field_names(data: Any) -> Any: method deep_compare (line 39) | def deep_compare(dict1: Dict[str, Any], dict2: Dict[str, Any], path: s... method _deep_compare_normalized (line 48) | def _deep_compare_normalized(obj1: Any, obj2: Any, path: str = "") -> ... class StrategyComparator (line 126) | class StrategyComparator: method normalize_strategy (line 130) | def normalize_strategy(strategy: Union[Dict[str, Any], Dict[str, Dict[... method _normalize_memory_strategy (line 147) | def _normalize_memory_strategy(strategy: Dict[str, Any]) -> Dict[str, ... method _transform_memory_configuration (line 172) | def _transform_memory_configuration(config: Dict[str, Any], strategy_t... method _normalize_request_strategy (line 269) | def _normalize_request_strategy(strategy_dict: Dict[str, Any]) -> Dict... method compare_strategies (line 323) | def compare_strategies( function validate_existing_memory_strategies (line 379) | def validate_existing_memory_strategies( FILE: src/bedrock_agentcore_starter_toolkit/operations/observability/builders.py class CloudWatchResultBuilder (line 9) | class CloudWatchResultBuilder: method build_span (line 13) | def build_span(result: Any) -> Span: method build_runtime_log (line 83) | def build_runtime_log(result: Any) -> RuntimeLog: FILE: src/bedrock_agentcore_starter_toolkit/operations/observability/client.py class ObservabilityClient (line 14) | class ObservabilityClient: method __init__ (line 25) | def __init__(self, region_name: str): method query_spans_by_session (line 44) | def query_spans_by_session( method query_spans_by_trace (line 79) | def query_spans_by_trace( method query_runtime_logs_by_traces (line 114) | def query_runtime_logs_by_traces( method _query_runtime_logs_individually (line 166) | def _query_runtime_logs_individually( method get_latest_session_id (line 212) | def get_latest_session_id( method _execute_cloudwatch_query (line 257) | def _execute_cloudwatch_query( FILE: src/bedrock_agentcore_starter_toolkit/operations/observability/delivery.py class ObservabilityDeliveryManager (line 30) | class ObservabilityDeliveryManager: method __init__ (line 66) | def __init__( method account_id (line 97) | def account_id(self) -> str: method enable_observability_for_resource (line 101) | def enable_observability_for_resource( method enable_traces_for_runtime (line 241) | def enable_traces_for_runtime( method _create_log_group_if_not_exists (line 267) | def _create_log_group_if_not_exists(self, log_group_name: str) -> None: method _setup_logs_delivery (line 282) | def _setup_logs_delivery( method _setup_traces_delivery (line 359) | def _setup_traces_delivery( method disable_observability_for_resource (line 426) | def disable_observability_for_resource( method get_observability_status (line 493) | def get_observability_status( method enable_for_memory (line 531) | def enable_for_memory( method enable_for_gateway (line 553) | def enable_for_gateway( method disable_for_memory (line 575) | def disable_for_memory( method disable_for_gateway (line 586) | def disable_for_gateway( function enable_observability_for_resource (line 599) | def enable_observability_for_resource( FILE: src/bedrock_agentcore_starter_toolkit/operations/observability/formatters.py function format_age (line 15) | def format_age(age_seconds: float) -> str: function format_duration_seconds (line 42) | def format_duration_seconds(duration_ms: float) -> str: function calculate_age_seconds (line 60) | def calculate_age_seconds(timestamp_nano: int, now_nano: int) -> float: function format_timestamp_relative (line 77) | def format_timestamp_relative(timestamp_nano: int, now_nano: int) -> str: function get_duration_style (line 95) | def get_duration_style(duration_ms: float) -> str: function format_duration_ms (line 130) | def format_duration_ms(duration_ms: float, include_unit: bool = True) ->... function get_status_icon (line 152) | def get_status_icon(status_code: str) -> str: function get_status_style (line 177) | def get_status_style(status_code: str) -> str: function format_status_display (line 202) | def format_status_display(has_errors: bool) -> tuple[str, str]: function get_span_attribute (line 226) | def get_span_attribute(attributes: Dict[str, Any], *attr_names: str) -> ... function extract_prompt (line 252) | def extract_prompt(attributes: Dict[str, Any]) -> Optional[str]: function extract_completion (line 277) | def extract_completion(attributes: Dict[str, Any]) -> Optional[str]: function extract_invocation_payload (line 302) | def extract_invocation_payload(attributes: Dict[str, Any]) -> Optional[s... function extract_input_data (line 327) | def extract_input_data(attributes: Dict[str, Any]) -> Optional[str]: function extract_output_data (line 351) | def extract_output_data(attributes: Dict[str, Any]) -> Optional[str]: function truncate_for_display (line 375) | def truncate_for_display(text: str, verbose: bool = False, is_tool_use: ... function has_llm_attributes (line 401) | def has_llm_attributes(attributes: Dict[str, Any]) -> bool: FILE: src/bedrock_agentcore_starter_toolkit/operations/observability/message_parser.py class UnifiedLogParser (line 17) | class UnifiedLogParser: method parse (line 20) | def parse(self, raw_message: Optional[Dict[str, Any]], timestamp: str)... method _extract_exception (line 45) | def _extract_exception(self, raw_message: Dict[str, Any], timestamp: s... method _extract_messages (line 67) | def _extract_messages(self, raw_message: Dict[str, Any], timestamp: st... method _get_role_from_event_name (line 93) | def _get_role_from_event_name(self, event_name: str) -> Optional[str]: method _extract_content (line 112) | def _extract_content(self, body: Dict[str, Any]) -> Optional[str]: method _extract_generic_otel (line 141) | def _extract_generic_otel( method _extract_from_strands (line 167) | def _extract_from_strands(self, body: Dict[str, Any], timestamp: str) ... method _extract_from_input_output (line 171) | def _extract_from_input_output(self, body: Dict[str, Any], timestamp: ... method _extract_from_langchain (line 207) | def _extract_from_langchain(self, body: Dict[str, Any], timestamp: str... method _parse_langchain_input (line 223) | def _parse_langchain_input(self, body: Dict[str, Any]) -> Optional[str]: method _parse_langchain_output (line 240) | def _parse_langchain_output(self, body: Dict[str, Any]) -> Optional[str]: method _format_langchain_content (line 273) | def _format_langchain_content(self, content: Any, tool_calls: list) ->... method _extract_text_from_array (line 294) | def _extract_text_from_array(self, content: list) -> Optional[str]: FILE: src/bedrock_agentcore_starter_toolkit/operations/observability/query_builder.py class CloudWatchQueryBuilder (line 4) | class CloudWatchQueryBuilder: method build_spans_by_session_query (line 8) | def build_spans_by_session_query(session_id: str, agent_id: str) -> str: method build_spans_by_trace_query (line 41) | def build_spans_by_trace_query(trace_id: str) -> str: method build_runtime_logs_by_trace_direct (line 69) | def build_runtime_logs_by_trace_direct(trace_id: str) -> str: method build_runtime_logs_by_traces_batch (line 83) | def build_runtime_logs_by_traces_batch(trace_ids: list[str]) -> str: method build_latest_session_query (line 103) | def build_latest_session_query(agent_id: str, limit: int = 1) -> str: method build_session_summary_query (line 125) | def build_session_summary_query(session_id: str, agent_id: str | None ... FILE: src/bedrock_agentcore_starter_toolkit/operations/observability/telemetry.py class Span (line 11) | class Span: class RuntimeLog (line 37) | class RuntimeLog: class TraceData (line 49) | class TraceData: FILE: src/bedrock_agentcore_starter_toolkit/operations/observability/trace_processor.py class TraceProcessor (line 12) | class TraceProcessor: method group_spans_by_trace (line 16) | def group_spans_by_trace(trace_data: TraceData) -> None: method build_span_hierarchy (line 32) | def build_span_hierarchy(trace_data: TraceData, trace_id: str) -> List... method get_messages_by_span (line 69) | def get_messages_by_span(trace_data: TraceData) -> Dict[str, List[Dict... method calculate_trace_duration (line 94) | def calculate_trace_duration(spans: List[Span]) -> float: method count_error_spans (line 115) | def count_error_spans(spans: List[Span]) -> int: method get_trace_ids (line 127) | def get_trace_ids(trace_data: TraceData) -> List[str]: method filter_error_traces (line 139) | def filter_error_traces(trace_data: TraceData) -> Dict[str, List[Span]]: method get_trace_messages (line 155) | def get_trace_messages(trace_data: TraceData, trace_id: str) -> tuple[... method to_dict (line 204) | def to_dict(trace_data: TraceData) -> Dict[str, Any]: FILE: src/bedrock_agentcore_starter_toolkit/operations/observability/trace_visualizer.py class TraceVisualizer (line 26) | class TraceVisualizer: method __init__ (line 29) | def __init__(self, console: Optional[Console] = None): method visualize_trace (line 37) | def visualize_trace( method visualize_all_traces (line 89) | def visualize_all_traces( method _format_trace_header (line 116) | def _format_trace_header(self, trace_id: str, spans: List[Span]) -> Text: method _has_meaningful_data (line 142) | def _has_meaningful_data( method _add_span_to_tree (line 208) | def _add_span_to_tree( method _format_span (line 249) | def _format_span( method _get_message_id (line 412) | def _get_message_id(self, item: Dict[str, Any]) -> str: method _is_generic_wrapper_event (line 441) | def _is_generic_wrapper_event(self, event_name: str, payload: Dict[str... method _format_event_payload_display (line 471) | def _format_event_payload_display(self, text: Text, payload: Dict[str,... FILE: src/bedrock_agentcore_starter_toolkit/operations/policy/client.py class PolicyClient (line 24) | class PolicyClient: method __init__ (line 31) | def __init__(self, region_name: Optional[str] = None): method create_policy_engine (line 54) | def create_policy_engine( method create_or_get_policy_engine (line 94) | def create_or_get_policy_engine( method get_policy_engine (line 202) | def get_policy_engine(self, policy_engine_id: str) -> Dict[str, Any]: method update_policy_engine (line 219) | def update_policy_engine( method list_policy_engines (line 249) | def list_policy_engines( method delete_policy_engine (line 275) | def delete_policy_engine(self, policy_engine_id: str) -> Dict[str, Any]: method create_policy (line 297) | def create_policy( method create_or_get_policy (line 343) | def create_or_get_policy( method get_policy (line 454) | def get_policy(self, policy_engine_id: str, policy_id: str) -> Dict[st... method update_policy (line 475) | def update_policy( method list_policies (line 517) | def list_policies( method delete_policy (line 552) | def delete_policy(self, policy_engine_id: str, policy_id: str) -> Dict... method create_policy_from_generation_asset (line 576) | def create_policy_from_generation_asset( method start_policy_generation (line 618) | def start_policy_generation( method get_policy_generation (line 659) | def get_policy_generation( method list_policy_generation_assets (line 684) | def list_policy_generation_assets( method list_policy_generations (line 720) | def list_policy_generations( method generate_policy (line 751) | def generate_policy( method _wait_for_policy_engine_active (line 843) | def _wait_for_policy_engine_active( method _wait_for_policy_active (line 877) | def _wait_for_policy_active( method _wait_for_policy_deleted (line 913) | def _wait_for_policy_deleted( method cleanup_policy_engine (line 948) | def cleanup_policy_engine(self, policy_engine_id: str) -> None: FILE: src/bedrock_agentcore_starter_toolkit/operations/policy/constants.py class PolicyEngineStatus (line 14) | class PolicyEngineStatus(Enum): class PolicyStatus (line 26) | class PolicyStatus(Enum): class PolicyGenerationStatus (line 38) | class PolicyGenerationStatus(Enum): class ValidationMode (line 47) | class ValidationMode(Enum): class FindingType (line 54) | class FindingType(Enum): FILE: src/bedrock_agentcore_starter_toolkit/operations/policy/exceptions.py class PolicyException (line 4) | class PolicyException(Exception): class PolicySetupException (line 10) | class PolicySetupException(PolicyException): class PolicyEngineNotFoundException (line 16) | class PolicyEngineNotFoundException(PolicyException): class PolicyNotFoundException (line 22) | class PolicyNotFoundException(PolicyException): class PolicyGenerationNotFoundException (line 28) | class PolicyGenerationNotFoundException(PolicyException): class PolicyValidationException (line 34) | class PolicyValidationException(PolicyException): class PolicyGenerationException (line 40) | class PolicyGenerationException(PolicyException): FILE: src/bedrock_agentcore_starter_toolkit/operations/runtime/configure.py function get_relative_path (line 34) | def get_relative_path(path: Path, base: Optional[Path] = None) -> str: function detect_entrypoint (line 64) | def detect_entrypoint(source_path: Path) -> List[Path]: function detect_requirements (line 90) | def detect_requirements(source_path: Path): function infer_agent_name (line 112) | def infer_agent_name(entrypoint_path: Path, base: Optional[Path] = None)... function configure_bedrock_agentcore (line 137) | def configure_bedrock_agentcore( function validate_agent_name (line 634) | def validate_agent_name(name: str) -> Tuple[bool, str]: FILE: src/bedrock_agentcore_starter_toolkit/operations/runtime/create_role.py function _extract_ecr_repository_name (line 19) | def _extract_ecr_repository_name(ecr_uri: Optional[str]) -> Optional[str]: function _generate_deterministic_suffix (line 40) | def _generate_deterministic_suffix(agent_name: str, length: int = 10) ->... function get_or_create_runtime_execution_role (line 58) | def get_or_create_runtime_execution_role( function _create_iam_role_with_policies (line 200) | def _create_iam_role_with_policies( function _attach_inline_policy (line 291) | def _attach_inline_policy( function get_or_create_codebuild_execution_role (line 330) | def get_or_create_codebuild_execution_role( FILE: src/bedrock_agentcore_starter_toolkit/operations/runtime/destroy.py function destroy_bedrock_agentcore (line 20) | def destroy_bedrock_agentcore( function _destroy_agentcore_endpoint (line 132) | def _destroy_agentcore_endpoint( function _destroy_api_key_credential_provider (line 198) | def _destroy_api_key_credential_provider( function _destroy_agentcore_agent (line 246) | def _destroy_agentcore_agent( function _destroy_ecr_images (line 287) | def _destroy_ecr_images( function _delete_ecr_repository (line 409) | def _delete_ecr_repository(ecr_client, repo_name: str, result: DestroyRe... function _destroy_codebuild_project (line 439) | def _destroy_codebuild_project( function _destroy_s3_artifacts (line 472) | def _destroy_s3_artifacts( function _destroy_memory (line 522) | def _destroy_memory( function _destroy_codebuild_iam_role (line 558) | def _destroy_codebuild_iam_role( function _destroy_iam_role (line 602) | def _destroy_iam_role( function _cleanup_agent_config (line 671) | def _cleanup_agent_config( FILE: src/bedrock_agentcore_starter_toolkit/operations/runtime/exceptions.py class RuntimeException (line 6) | class RuntimeException(Exception): class RuntimeToolkitException (line 12) | class RuntimeToolkitException(RuntimeException): method __init__ (line 15) | def __init__(self, message: str, created_resources: Optional[List[str]... FILE: src/bedrock_agentcore_starter_toolkit/operations/runtime/invoke.py function invoke_bedrock_agentcore (line 25) | def invoke_bedrock_agentcore( function _update_workload_identity_with_oauth2_callback_url (line 129) | def _update_workload_identity_with_oauth2_callback_url( function _get_workload_name (line 147) | def _get_workload_name( FILE: src/bedrock_agentcore_starter_toolkit/operations/runtime/launch.py function _validate_vpc_resources (line 36) | def _validate_vpc_resources(session: boto3.Session, agent_config, region... function _ensure_network_service_linked_role (line 110) | def _ensure_network_service_linked_role(session: boto3.Session, logger) ... function _resolve_ecr_repo_name_to_uri (line 147) | def _resolve_ecr_repo_name_to_uri(repo_name: str, region: str) -> str: function _ensure_ecr_repository (line 176) | def _ensure_ecr_repository(agent_config, project_config, config_path, ag... function _ensure_identity_permissions (line 216) | def _ensure_identity_permissions( function _ensure_aws_jwt_permissions (line 262) | def _ensure_aws_jwt_permissions( function _validate_execution_role (line 309) | def _validate_execution_role(role_arn: str, session: boto3.Session) -> b... function _ensure_execution_role (line 343) | def _ensure_execution_role(agent_config, project_config, config_path, ag... function _ensure_memory_for_agent (line 386) | def _ensure_memory_for_agent( function _deploy_to_bedrock_agentcore (line 555) | def _deploy_to_bedrock_agentcore( function _check_vpc_deployment (line 698) | def _check_vpc_deployment(session: boto3.Session, agent_id: str, vpc_sub... function _launch_direct_code_deploy_local (line 729) | def _launch_direct_code_deploy_local( function launch_bedrock_agentcore (line 785) | def launch_bedrock_agentcore( function _execute_codebuild_workflow (line 1040) | def _execute_codebuild_workflow( function _launch_with_codebuild (line 1169) | def _launch_with_codebuild( function _launch_with_direct_code_deploy (line 1222) | def _launch_with_direct_code_deploy( FILE: src/bedrock_agentcore_starter_toolkit/operations/runtime/models.py class ConfigureResult (line 12) | class ConfigureResult(BaseModel): class LaunchResult (line 35) | class LaunchResult(BaseModel): class InvokeResult (line 64) | class InvokeResult(BaseModel): class StatusConfigInfo (line 73) | class StatusConfigInfo(BaseModel): class StatusResult (line 98) | class StatusResult(BaseModel): class DestroyResult (line 106) | class DestroyResult(BaseModel): class StopSessionResult (line 116) | class StopSessionResult(BaseModel): FILE: src/bedrock_agentcore_starter_toolkit/operations/runtime/status.py function get_status (line 12) | def get_status(config_path: Path, agent_name: Optional[str] = None) -> S... FILE: src/bedrock_agentcore_starter_toolkit/operations/runtime/stop_session.py function stop_runtime_session (line 17) | def stop_runtime_session( function _clear_session_from_config (line 114) | def _clear_session_from_config( FILE: src/bedrock_agentcore_starter_toolkit/operations/runtime/vpc_validation.py function validate_vpc_configuration (line 12) | def validate_vpc_configuration( function _validate_subnets (line 47) | def _validate_subnets(ec2_client, subnets: List[str], warnings: List[str... function _validate_security_groups (line 85) | def _validate_security_groups( function check_network_immutability (line 125) | def check_network_immutability( function verify_subnet_azs (line 168) | def verify_subnet_azs(ec2_client, subnets: List[str], region: str) -> Li... FILE: src/bedrock_agentcore_starter_toolkit/services/codebuild.py class CodeBuildService (line 20) | class CodeBuildService: method __init__ (line 23) | def __init__(self, session: boto3.Session): method get_source_bucket_name (line 33) | def get_source_bucket_name(self, account_id: str) -> str: method ensure_source_bucket (line 38) | def ensure_source_bucket(self, account_id: str) -> str: method upload_source (line 75) | def upload_source(self, agent_name: str, source_dir: str = ".", docker... method _normalize_s3_location (line 143) | def _normalize_s3_location(self, source_location: str) -> str: method create_codebuild_execution_role (line 147) | def create_codebuild_execution_role(self, account_id: str, ecr_reposit... method create_or_update_project (line 159) | def create_or_update_project( method start_build (line 210) | def start_build(self, project_name: str, source_location: str) -> str: method wait_for_completion (line 222) | def wait_for_completion(self, build_id: str, timeout: int = 900): method _get_arm64_buildspec (line 274) | def _get_arm64_buildspec(self, ecr_repository_uri: str, image_tag: str... method _parse_dockerignore (line 310) | def _parse_dockerignore(self) -> List[str]: method _should_ignore (line 348) | def _should_ignore(self, path: str, patterns: List[str], is_dir: bool ... method _matches_pattern (line 368) | def _matches_pattern(self, path: str, pattern: str, is_dir: bool) -> b... FILE: src/bedrock_agentcore_starter_toolkit/services/ecr.py function sanitize_ecr_repo_name (line 13) | def sanitize_ecr_repo_name(name: str) -> str: function get_account_id (line 54) | def get_account_id() -> str: function get_region (line 59) | def get_region() -> str: function generate_image_tag (line 64) | def generate_image_tag() -> str: function create_ecr_repository (line 69) | def create_ecr_repository(repo_name: str, region: str) -> str: function get_or_create_ecr_repository (line 80) | def get_or_create_ecr_repository(agent_name: str, region: str) -> str: function deploy_to_ecr (line 109) | def deploy_to_ecr( FILE: src/bedrock_agentcore_starter_toolkit/services/import_agent/assets/memory_manager_template.py class LongTermMemoryManager (line 16) | class LongTermMemoryManager: method __init__ (line 22) | def __init__( method _cleanup_reference (line 48) | def _cleanup_reference(ref): method _load_session_summaries (line 52) | def _load_session_summaries(self) -> List[Dict[str, Any]]: method _save_session_summaries (line 60) | def _save_session_summaries(self): method add_message (line 67) | def add_message(self, message: Dict[str, str]): method _generate_session_summary (line 71) | def _generate_session_summary(self) -> str: method _cleanup_instance (line 115) | def _cleanup_instance(cls): method get_active_instances_count (line 120) | def get_active_instances_count(cls): method get_active_instances (line 127) | def get_active_instances(cls): method end_all_sessions (line 134) | def end_all_sessions(cls): method end_session (line 143) | def end_session(self): method get_memory_synopsis (line 188) | def get_memory_synopsis(self) -> str: method has_memory_changed (line 192) | def has_memory_changed(self) -> bool: method clear_current_session (line 205) | def clear_current_session(self): FILE: src/bedrock_agentcore_starter_toolkit/services/import_agent/scripts/base_bedrock_translate.py class BaseBedrockTranslator (line 35) | class BaseBedrockTranslator: method __init__ (line 38) | def __init__(self, agent_config, debug: bool, output_dir: str, enabled... method _clean_fixtures_and_prompt (line 167) | def _clean_fixtures_and_prompt(self, base_template, fixtures) -> Tuple... method generate_prompt (line 210) | def generate_prompt(self, config: Dict): method generate_memory_configuration (line 287) | def generate_memory_configuration(self, memory_saver: str) -> str: method generate_action_groups_code (line 349) | def generate_action_groups_code(self, platform: str) -> str: method generate_openapi_ag_code (line 468) | def generate_openapi_ag_code(self, ag: Dict, platform: str) -> Tuple[l... method generate_structured_ag_code (line 640) | def generate_structured_ag_code(self, ag: Dict, platform: str) -> Tupl... method generate_example_usage (line 774) | def generate_example_usage(self) -> str: method generate_code_interpreter (line 829) | def generate_code_interpreter(self, platform: str): method _get_url_regex_pattern (line 1035) | def _get_url_regex_pattern(self) -> str: method generate_entrypoint_code (line 1039) | def generate_entrypoint_code(self, platform: str) -> str: method translate (line 1104) | def translate(self, output_path: str, code_sections: list, platform: s... method create_gateway (line 1151) | def create_gateway(self): method create_gateway_proxy_and_targets (line 1166) | def create_gateway_proxy_and_targets(self): method _update_gateway_role_with_lambda_permission (line 1475) | def _update_gateway_role_with_lambda_permission(self, function_name): method create_lambda (line 1528) | def create_lambda(self, code, function_name): method create_gateway_lambda_target (line 1659) | def create_gateway_lambda_target(self, tools, lambda_arn, target_name): FILE: src/bedrock_agentcore_starter_toolkit/services/import_agent/scripts/bedrock_to_langchain.py class BedrockLangchainTranslation (line 14) | class BedrockLangchainTranslation(BaseBedrockTranslator): method __init__ (line 17) | def __init__(self, agent_config, debug: bool, output_dir: str, enabled... method generate_imports (line 54) | def generate_imports(self) -> str: method generate_model_configurations (line 71) | def generate_model_configurations(self) -> str: method generate_knowledge_base_code (line 110) | def generate_knowledge_base_code(self) -> str: method generate_collaboration_code (line 136) | def generate_collaboration_code(self) -> str: method generate_agent_setup (line 182) | def generate_agent_setup(self) -> str: method generate_routing_code (line 336) | def generate_routing_code(self): method translate_bedrock_to_langchain (line 380) | def translate_bedrock_to_langchain(self, output_path: str) -> dict: FILE: src/bedrock_agentcore_starter_toolkit/services/import_agent/scripts/bedrock_to_strands.py class BedrockStrandsTranslation (line 14) | class BedrockStrandsTranslation(BaseBedrockTranslator): method __init__ (line 17) | def __init__(self, agent_config, debug: bool, output_dir: str, enabled... method generate_imports (line 46) | def generate_imports(self) -> str: method generate_model_configurations (line 57) | def generate_model_configurations(self) -> str: method generate_knowledge_base_code (line 94) | def generate_knowledge_base_code(self) -> str: method generate_collaboration_code (line 124) | def generate_collaboration_code(self) -> str: method generate_agent_setup (line 158) | def generate_agent_setup(self) -> str: method generate_routing_code (line 337) | def generate_routing_code(self): method translate_bedrock_to_strands (line 372) | def translate_bedrock_to_strands(self, output_path) -> dict: FILE: src/bedrock_agentcore_starter_toolkit/services/import_agent/utils.py function json_to_obj_fixed (line 11) | def json_to_obj_fixed(json_string: str): function fix_field (line 24) | def fix_field(obj, field=None): function clean_variable_name (line 36) | def clean_variable_name(text): function clean_gateway_or_target_name (line 53) | def clean_gateway_or_target_name(text): function unindent_by_one (line 67) | def unindent_by_one(input_code, spaces_per_indent=4): function generate_pydantic_models (line 93) | def generate_pydantic_models( function prune_tool_name (line 372) | def prune_tool_name(tool_name: str, length=50) -> str: function get_template_fixtures (line 380) | def get_template_fixtures(field: str = "orchestrationBasePrompts", group... function safe_substitute_placeholders (line 419) | def safe_substitute_placeholders(template_str, substitutions): function get_base_dir (line 429) | def get_base_dir(file): FILE: src/bedrock_agentcore_starter_toolkit/services/runtime.py function _get_user_agent (line 23) | def _get_user_agent() -> str: function generate_session_id (line 36) | def generate_session_id() -> str: function _validate_runtime_type (line 41) | def _validate_runtime_type(runtime_type: Optional[str]) -> str: function _handle_http_response (line 69) | def _handle_http_response(response) -> dict: function _handle_aws_response (line 86) | def _handle_aws_response(response) -> dict: function _handle_streaming_response (line 110) | def _handle_streaming_response(response) -> Dict[str, Any]: class BedrockAgentCoreClient (line 133) | class BedrockAgentCoreClient: method __init__ (line 136) | def __init__(self, region: str): method create_agent (line 169) | def create_agent( method update_agent (line 328) | def update_agent( method list_agents (line 425) | def list_agents(self, max_results: int = 100) -> list: method find_agent_by_name (line 449) | def find_agent_by_name(self, agent_name: str) -> Optional[Dict]: method create_or_update_agent (line 465) | def create_or_update_agent( method wait_for_agent_endpoint_ready (line 526) | def wait_for_agent_endpoint_ready(self, agent_id: str, endpoint_name: ... method get_agent_runtime (line 566) | def get_agent_runtime(self, agent_id: str) -> Dict: method get_agent_runtime_endpoint (line 577) | def get_agent_runtime_endpoint(self, agent_id: str, endpoint_name: str... method delete_agent_runtime_endpoint (line 592) | def delete_agent_runtime_endpoint(self, agent_id: str, endpoint_name: ... method invoke_endpoint (line 618) | def invoke_endpoint( method stop_runtime_session (line 688) | def stop_runtime_session( method _update_api_key_credential_provider (line 719) | def _update_api_key_credential_provider( method _create_api_key_credential_provider (line 741) | def _create_api_key_credential_provider( method create_or_update_api_key_credential_provider (line 763) | def create_or_update_api_key_credential_provider( method delete_api_key_credential_provider (line 773) | def delete_api_key_credential_provider(self, api_key_credential_provid... class HttpBedrockAgentCoreClient (line 778) | class HttpBedrockAgentCoreClient: method __init__ (line 781) | def __init__(self, region: str): method invoke_endpoint (line 794) | def invoke_endpoint( class LocalBedrockAgentCoreClient (line 870) | class LocalBedrockAgentCoreClient: method __init__ (line 873) | def __init__(self, endpoint: str): method invoke_endpoint (line 878) | def invoke_endpoint( FILE: src/bedrock_agentcore_starter_toolkit/services/s3.py function sanitize_s3_bucket_name (line 12) | def sanitize_s3_bucket_name(name: str, account_id: str, region: str) -> ... function get_or_create_s3_bucket (line 38) | def get_or_create_s3_bucket(agent_name: str, account_id: str, region: st... function create_s3_bucket (line 64) | def create_s3_bucket(bucket_name: str, region: str, account_id: str) -> ... FILE: src/bedrock_agentcore_starter_toolkit/services/xray.py function _need_resource_policy (line 14) | def _need_resource_policy(logs_client, policy_name="TransactionSearchXRa... function _need_trace_destination (line 26) | def _need_trace_destination(xray_client): function _need_indexing_rule (line 35) | def _need_indexing_rule(xray_client): function enable_transaction_search_if_needed (line 47) | def enable_transaction_search_if_needed(region: str, account_id: str) ->... function enable_traces_delivery_for_runtime (line 103) | def enable_traces_delivery_for_runtime( function _create_cloudwatch_logs_resource_policy (line 156) | def _create_cloudwatch_logs_resource_policy(logs_client, account_id: str... function _configure_trace_segment_destination (line 191) | def _configure_trace_segment_destination(xray_client) -> None: function _log_trace_destination_status (line 213) | def _log_trace_destination_status(xray_client): function _configure_indexing_rule (line 230) | def _configure_indexing_rule(xray_client) -> None: FILE: src/bedrock_agentcore_starter_toolkit/utils/aws.py function extract_id_from_arn (line 17) | def extract_id_from_arn(arn_or_id: str) -> str: function get_account_id (line 37) | def get_account_id() -> str: function get_region (line 42) | def get_region() -> str: function get_partition (line 47) | def get_partition(region: str) -> str: function ensure_valid_aws_creds (line 52) | def ensure_valid_aws_creds() -> tuple[bool, Optional[str]]: FILE: src/bedrock_agentcore_starter_toolkit/utils/endpoints.py function get_data_plane_endpoint (line 11) | def get_data_plane_endpoint(region: str = DEFAULT_REGION) -> str: function get_control_plane_endpoint (line 23) | def get_control_plane_endpoint(region: str = DEFAULT_REGION) -> str: FILE: src/bedrock_agentcore_starter_toolkit/utils/lambda_utils.py function create_lambda_function (line 14) | def create_lambda_function( FILE: src/bedrock_agentcore_starter_toolkit/utils/logging_config.py function setup_toolkit_logging (line 8) | def setup_toolkit_logging(mode: str = "sdk") -> None: function _setup_cli_logging (line 28) | def _setup_cli_logging() -> None: function _setup_sdk_logging (line 47) | def _setup_sdk_logging() -> None: function _setup_basic_logging (line 59) | def _setup_basic_logging() -> None: function is_logging_configured (line 64) | def is_logging_configured() -> bool: function reset_logging_config (line 69) | def reset_logging_config() -> None: FILE: src/bedrock_agentcore_starter_toolkit/utils/paths.py function is_sub_path (line 9) | def is_sub_path(path: Path, parent: Path) -> bool: function expand_source_path_for_dependencies (line 18) | def expand_source_path_for_dependencies(source_dir: Path, dependency_inf... function _relative_to_build_context (line 37) | def _relative_to_build_context(context_root: Path, path: Path, descripti... FILE: src/bedrock_agentcore_starter_toolkit/utils/python_env.py function is_recommended_python_version (line 8) | def is_recommended_python_version() -> tuple[bool, str]: FILE: src/bedrock_agentcore_starter_toolkit/utils/runtime/agentcore_identity.py function _parse_env_file (line 12) | def _parse_env_file(env_file_path: Path) -> Dict[str, str]: function _load_api_key_from_env_if_configured (line 53) | def _load_api_key_from_env_if_configured( FILE: src/bedrock_agentcore_starter_toolkit/utils/runtime/config.py function is_project_config_format (line 29) | def is_project_config_format(config_path: Path) -> bool: function _is_legacy_format (line 38) | def _is_legacy_format(data: dict) -> bool: function _transform_legacy_to_multi_agent (line 43) | def _transform_legacy_to_multi_agent(data: dict) -> BedrockAgentCoreConf... function _migrate_deployment_type (line 49) | def _migrate_deployment_type(config: BedrockAgentCoreConfigSchema) -> None: function load_config (line 72) | def load_config(config_path: Path, autofill_missing_aws=True) -> Bedrock... function save_config (line 129) | def save_config(config: BedrockAgentCoreConfigSchema, config_path: Path): function load_config_if_exists (line 150) | def load_config_if_exists(config_path: Path, autofill_missing_aws=True) ... function get_entrypoint_from_config (line 165) | def get_entrypoint_from_config(config_path: Path, default: str) -> str: function merge_agent_config (line 186) | def merge_agent_config( function get_agentcore_directory (line 228) | def get_agentcore_directory(project_root: Path, agent_name: str, source_... FILE: src/bedrock_agentcore_starter_toolkit/utils/runtime/container.py class ContainerRuntime (line 22) | class ContainerRuntime: method __init__ (line 28) | def __init__(self, runtime_type: Optional[str] = None, print_logs=True): method _is_runtime_installed (line 87) | def _is_runtime_installed(self, runtime: str) -> bool: method get_name (line 95) | def get_name(self) -> str: method image_exists (line 99) | def image_exists(self, tag: str) -> bool: method _get_template_path (line 107) | def _get_template_path(self, language: str, template_type: str) -> Path: method generate_dockerfile (line 126) | def generate_dockerfile( method _ensure_dockerignore (line 318) | def _ensure_dockerignore(self, project_dir: Path, language: str = "pyt... method _transform_ts_entrypoint (line 327) | def _transform_ts_entrypoint(self, source_path: str) -> str: method _validate_module_path (line 341) | def _validate_module_path(self, agent_path: Path, project_root: Path) ... method _get_module_path (line 359) | def _get_module_path(self, agent_path: Path, project_root: Path) -> str: method _get_current_platform (line 380) | def _get_current_platform(self) -> str: method build (line 387) | def build( method run_local (line 436) | def run_local(self, tag: str, port: int = 8080, env_vars: Optional[dic... method login (line 485) | def login(self, registry: str, username: str, password: str) -> bool: method tag (line 501) | def tag(self, source: str, target: str) -> bool: method push (line 511) | def push(self, tag: str) -> bool: method _execute_command (line 522) | def _execute_command(self, cmd: List[str]) -> Tuple[bool, List[str]]: FILE: src/bedrock_agentcore_starter_toolkit/utils/runtime/create.py function resolve_create_with_iac_project_config (line 10) | def resolve_create_with_iac_project_config(config_path: Path) -> Bedrock... FILE: src/bedrock_agentcore_starter_toolkit/utils/runtime/create_with_iam_eventual_consistency.py function retry_create_with_eventual_iam_consistency (line 12) | def retry_create_with_eventual_iam_consistency(create_function: Callable... FILE: src/bedrock_agentcore_starter_toolkit/utils/runtime/entrypoint.py function detect_entrypoint_by_language (line 28) | def detect_entrypoint_by_language(source_dir: Path, language: str) -> Li... function detect_language (line 58) | def detect_language(project_dir: Path, entrypoint: Optional[str] = None)... function detect_typescript_project (line 86) | def detect_typescript_project(project_dir: Path) -> Optional["TypeScript... function parse_entrypoint (line 121) | def parse_entrypoint(entrypoint: str) -> Tuple[Path, str]: class DependencyInfo (line 145) | class DependencyInfo: method found (line 154) | def found(self) -> bool: method is_pyproject (line 159) | def is_pyproject(self) -> bool: method is_requirements (line 164) | def is_requirements(self) -> bool: method is_root_package (line 169) | def is_root_package(self) -> bool: class TypeScriptProjectInfo (line 175) | class TypeScriptProjectInfo: method found (line 183) | def found(self) -> bool: function detect_dependencies (line 188) | def detect_dependencies(package_dir: Path, explicit_file: Optional[str] ... function _handle_explicit_file (line 226) | def _handle_explicit_file(package_dir: Path, explicit_file: str) -> Depe... function validate_requirements_file (line 271) | def validate_requirements_file(build_dir: Path, requirements_file: str) ... function get_python_version (line 298) | def get_python_version() -> str: class RuntimeEntrypointInfo (line 304) | class RuntimeEntrypointInfo: function parse_entrypoint_for_runtime (line 312) | def parse_entrypoint_for_runtime(entrypoint: str, source_dir: Optional[P... function build_entrypoint_array (line 368) | def build_entrypoint_array(entrypoint_path: str, has_otel_distro: bool, ... FILE: src/bedrock_agentcore_starter_toolkit/utils/runtime/logs.py function get_agent_runtime_log_group (line 7) | def get_agent_runtime_log_group(agent_id: str, endpoint_name: Optional[s... function get_genai_observability_url (line 23) | def get_genai_observability_url(region: str) -> str: function get_agent_log_paths (line 35) | def get_agent_log_paths( function get_aws_tail_commands (line 74) | def get_aws_tail_commands(log_group: str) -> tuple[str, str]: FILE: src/bedrock_agentcore_starter_toolkit/utils/runtime/package.py class PackageCache (line 20) | class PackageCache: method __init__ (line 23) | def __init__(self, cache_dir: Path): method dependencies_zip (line 33) | def dependencies_zip(self) -> Path: method dependencies_hash (line 38) | def dependencies_hash(self) -> Path: method should_rebuild_dependencies (line 42) | def should_rebuild_dependencies( method save_dependencies_hash (line 87) | def save_dependencies_hash( method _compute_file_hash (line 101) | def _compute_file_hash(file_path: Path) -> str: method _compute_combined_hash (line 112) | def _compute_combined_hash( class CodeZipPackager (line 150) | class CodeZipPackager: method create_deployment_package (line 153) | def create_deployment_package( method _build_dependencies_zip (line 233) | def _build_dependencies_zip(self, requirements_file: Path, output_zip:... method _check_otel_distro (line 271) | def _check_otel_distro(self, requirements_file: Optional[Path]) -> bool: method _fix_shebangs_in_bin_dir (line 292) | def _fix_shebangs_in_bin_dir(package_dir: Path) -> None: method _resolve_pyproject_to_requirements (line 340) | def _resolve_pyproject_to_requirements(self, pyproject_file: Path, out... method _install_dependencies (line 382) | def _install_dependencies( method _build_uv_command (line 437) | def _build_uv_command( method _should_cross_compile (line 475) | def _should_cross_compile(self) -> bool: method _build_direct_code_deploy (line 487) | def _build_direct_code_deploy(self, source_dir: Path, output_zip: Path... method _merge_zips (line 518) | def _merge_zips(self, dependencies_zip: Optional[Path], direct_code_de... method _get_ignore_patterns (line 542) | def _get_ignore_patterns(self) -> List[str]: method _should_ignore (line 581) | def _should_ignore(self, path: str, patterns: List[str], is_dir: bool)... method _matches_pattern (line 609) | def _matches_pattern(self, path: str, pattern: str, is_dir: bool) -> b... method upload_to_s3 (line 640) | def upload_to_s3(self, deployment_zip: Path, agent_name: str, session:... FILE: src/bedrock_agentcore_starter_toolkit/utils/runtime/policy_template.py function _get_template_dir (line 13) | def _get_template_dir() -> Path: function _render_template (line 18) | def _render_template(template_name: str, variables: Dict[str, str]) -> str: function render_trust_policy_template (line 26) | def render_trust_policy_template(region: str, account_id: str) -> str: function render_execution_policy_template (line 40) | def render_execution_policy_template( function validate_rendered_policy (line 87) | def validate_rendered_policy(policy_json: str) -> Dict: FILE: src/bedrock_agentcore_starter_toolkit/utils/runtime/schema.py class NetworkModeConfig (line 8) | class NetworkModeConfig(BaseModel): class MemoryConfig (line 15) | class MemoryConfig(BaseModel): method is_enabled (line 33) | def is_enabled(self) -> bool: method has_ltm (line 38) | def has_ltm(self) -> bool: class CredentialProviderInfo (line 43) | class CredentialProviderInfo(BaseModel): class WorkloadIdentityInfo (line 52) | class WorkloadIdentityInfo(BaseModel): class AwsJwtConfig (line 63) | class AwsJwtConfig(BaseModel): method validate_signing_algorithm (line 83) | def validate_signing_algorithm(cls, v: str) -> str: class IdentityConfig (line 91) | class IdentityConfig(BaseModel): method is_enabled (line 100) | def is_enabled(self) -> bool: method has_oauth_providers (line 105) | def has_oauth_providers(self) -> bool: method provider_names (line 110) | def provider_names(self) -> List[str]: class NetworkConfiguration (line 115) | class NetworkConfiguration(BaseModel): method validate_network_mode (line 125) | def validate_network_mode(cls, v: str) -> str: method validate_network_mode_config (line 134) | def validate_network_mode_config(cls, v: Optional[NetworkModeConfig], ... method to_aws_dict (line 140) | def to_aws_dict(self) -> dict: class ProtocolConfiguration (line 153) | class ProtocolConfiguration(BaseModel): method validate_protocol (line 162) | def validate_protocol(cls, v: str) -> str: method to_aws_dict (line 169) | def to_aws_dict(self) -> dict: class LifecycleConfiguration (line 174) | class LifecycleConfiguration(BaseModel): method validate_lifecycle_relationship (line 189) | def validate_lifecycle_relationship(cls, v: Optional[int], info) -> Op... method to_aws_dict (line 201) | def to_aws_dict(self) -> dict: method has_custom_settings (line 211) | def has_custom_settings(self) -> bool: class ObservabilityConfig (line 216) | class ObservabilityConfig(BaseModel): class AWSConfig (line 222) | class AWSConfig(BaseModel): method validate_account (line 240) | def validate_account(cls, v: Optional[str]) -> Optional[str]: class CodeBuildConfig (line 248) | class CodeBuildConfig(BaseModel): class BedrockAgentCoreDeploymentInfo (line 256) | class BedrockAgentCoreDeploymentInfo(BaseModel): class BedrockAgentCoreAgentSchema (line 264) | class BedrockAgentCoreAgentSchema(BaseModel): method validate_typescript_deployment (line 305) | def validate_typescript_deployment(self) -> "BedrockAgentCoreAgentSche... method get_authorizer_configuration (line 311) | def get_authorizer_configuration(self) -> Optional[dict]: method validate (line 315) | def validate(self, for_local: bool = False) -> List[str]: class BedrockAgentCoreConfigSchema (line 346) | class BedrockAgentCoreConfigSchema(BaseModel): method get_agent_config (line 360) | def get_agent_config(self, agent_name: Optional[str] = None) -> Bedroc... FILE: src/bedrock_agentcore_starter_toolkit/utils/server_addresses.py function build_server_urls (line 11) | def build_server_urls(port: int, *, path_suffix: str = "", protocol: str... function _normalize_path_suffix (line 26) | def _normalize_path_suffix(path_suffix: str) -> str: function _detect_local_network_ip (line 32) | def _detect_local_network_ip() -> Optional[str]: FILE: tests/cli/evaluation/test_commands.py function runner (line 31) | def runner(): function mock_config (line 37) | def mock_config(): function sample_evaluation_results (line 50) | def sample_evaluation_results(): class TestHelperFunctions (line 71) | class TestHelperFunctions: method test_get_agent_config_from_file_success (line 75) | def test_get_agent_config_from_file_success(self, mock_load_config, mo... method test_get_agent_config_from_file_no_config (line 90) | def test_get_agent_config_from_file_no_config(self, tmp_path): method test_get_agent_config_from_file_error (line 98) | def test_get_agent_config_from_file_error(self, mock_load_config, tmp_... class TestRunEvaluationCommand (line 116) | class TestRunEvaluationCommand: method test_run_evaluation_with_config_file (line 121) | def test_run_evaluation_with_config_file( method test_run_evaluation_with_explicit_params (line 137) | def test_run_evaluation_with_explicit_params(self, mock_processor_clas... method test_run_evaluation_with_trace_id (line 154) | def test_run_evaluation_with_trace_id( method test_run_evaluation_multiple_evaluators (line 173) | def test_run_evaluation_multiple_evaluators( method test_run_evaluation_no_config (line 192) | def test_run_evaluation_no_config(self, mock_get_config, runner): method test_run_evaluation_with_reference_inputs (line 203) | def test_run_evaluation_with_reference_inputs( method test_run_evaluation_with_comma_separated_trajectory (line 243) | def test_run_evaluation_with_comma_separated_trajectory( method test_run_evaluation_without_reference_inputs (line 272) | def test_run_evaluation_without_reference_inputs( class TestListEvaluatorsCommand (line 294) | class TestListEvaluatorsCommand: method test_list_evaluators_success (line 299) | def test_list_evaluators_success(self, mock_client_class, mock_list_op... method test_list_evaluators_empty (line 319) | def test_list_evaluators_empty(self, mock_client_class, mock_list_op, ... method test_list_evaluators_with_max_results (line 329) | def test_list_evaluators_with_max_results(self, mock_client_class, moc... class TestGetEvaluatorCommand (line 346) | class TestGetEvaluatorCommand: method test_get_evaluator_success (line 351) | def test_get_evaluator_success(self, mock_client_class, mock_get_op, r... method test_get_evaluator_not_found (line 368) | def test_get_evaluator_not_found(self, mock_client_class, mock_get_op,... class TestCreateEvaluatorCommand (line 382) | class TestCreateEvaluatorCommand: method test_create_evaluator_from_json (line 387) | def test_create_evaluator_from_json(self, mock_client_class, mock_crea... method test_create_evaluator_missing_config (line 400) | def test_create_evaluator_missing_config(self, mock_client_class, runn... class TestUpdateEvaluatorCommand (line 413) | class TestUpdateEvaluatorCommand: method test_update_evaluator_description (line 418) | def test_update_evaluator_description(self, mock_client_class, mock_up... method test_update_evaluator_config (line 430) | def test_update_evaluator_config(self, mock_client_class, mock_update_... class TestDeleteEvaluatorCommand (line 449) | class TestDeleteEvaluatorCommand: method test_delete_evaluator_success (line 454) | def test_delete_evaluator_success(self, mock_client_class, mock_delete... method test_delete_evaluator_builtin_fails (line 464) | def test_delete_evaluator_builtin_fails(self, mock_client_class, mock_... FILE: tests/cli/gateway/test_commands.py class TestBedrockAgentCoreGatewayCLI (line 11) | class TestBedrockAgentCoreGatewayCLI: method setup_method (line 14) | def setup_method(self): method test_create_mcp_gateway_command_basic (line 18) | def test_create_mcp_gateway_command_basic(self): method test_create_mcp_gateway_with_defaults (line 64) | def test_create_mcp_gateway_with_defaults(self): method test_create_mcp_gateway_target_command_basic (line 89) | def test_create_mcp_gateway_target_command_basic(self): method test_create_mcp_gateway_target_with_openapi_schema (line 145) | def test_create_mcp_gateway_target_with_openapi_schema(self): method test_create_mcp_gateway_target_with_defaults (line 200) | def test_create_mcp_gateway_target_with_defaults(self): method test_create_mcp_gateway_invalid_json_authorizer_config (line 244) | def test_create_mcp_gateway_invalid_json_authorizer_config(self): method test_create_mcp_gateway_target_invalid_json_credentials (line 259) | def test_create_mcp_gateway_target_invalid_json_credentials(self): method test_list_mcp_gateways_command_parameters (line 285) | def test_list_mcp_gateways_command_parameters(self): method test_get_mcp_gateway_command_flag_parsing (line 298) | def test_get_mcp_gateway_command_flag_parsing(self): method test_delete_mcp_gateway_command_flag_parsing (line 310) | def test_delete_mcp_gateway_command_flag_parsing(self): method test_delete_mcp_gateway_target_command_parameter_parsing (line 323) | def test_delete_mcp_gateway_target_command_parameter_parsing(self): method test_update_gateway_command_basic (line 337) | def test_update_gateway_command_basic(self): method test_update_gateway_command_all_parameters (line 366) | def test_update_gateway_command_all_parameters(self): method test_update_gateway_command_no_identifier_error (line 393) | def test_update_gateway_command_no_identifier_error(self): FILE: tests/cli/identity/test_identity.py function runner (line 29) | def runner(): function test_config (line 35) | def test_config(tmp_path): class TestCreateProvider (line 53) | class TestCreateProvider: method test_create_cognito_provider_success (line 56) | def test_create_cognito_provider_success(self, runner, tmp_path, monke... method test_create_github_provider_success (line 121) | def test_create_github_provider_success(self, runner, tmp_path, monkey... method test_create_google_provider (line 169) | def test_create_google_provider(self, runner, tmp_path, monkeypatch): method test_create_salesforce_provider (line 215) | def test_create_salesforce_provider(self, runner, tmp_path, monkeypatch): method test_create_provider_with_cognito_auto_update (line 261) | def test_create_provider_with_cognito_auto_update(self, runner, tmp_pa... method test_create_provider_cognito_auto_update_failure (line 320) | def test_create_provider_cognito_auto_update_failure(self, runner, tmp... method test_create_provider_missing_discovery_url (line 376) | def test_create_provider_missing_discovery_url(self, runner, tmp_path,... method test_create_provider_unsupported_type (line 412) | def test_create_provider_unsupported_type(self, runner, tmp_path, monk... method test_create_provider_no_callback_url (line 448) | def test_create_provider_no_callback_url(self, runner, tmp_path, monke... method test_create_provider_api_error (line 492) | def test_create_provider_api_error(self, runner, tmp_path, monkeypatch): class TestCreateWorkload (line 534) | class TestCreateWorkload: method test_create_workload_with_name_and_urls (line 537) | def test_create_workload_with_name_and_urls(self, runner, tmp_path, mo... method test_create_workload_auto_generated_name (line 587) | def test_create_workload_auto_generated_name(self, runner, tmp_path, m... method test_create_workload_no_config_generates_uuid (line 628) | def test_create_workload_no_config_generates_uuid(self, runner, tmp_pa... method test_create_workload_api_error (line 653) | def test_create_workload_api_error(self, runner, tmp_path, monkeypatch): class TestUpdateWorkload (line 691) | class TestUpdateWorkload: method test_update_workload_add_urls (line 694) | def test_update_workload_add_urls(self, runner, tmp_path, monkeypatch): method test_update_workload_set_urls (line 743) | def test_update_workload_set_urls(self, runner, tmp_path, monkeypatch): method test_update_workload_no_options_error (line 791) | def test_update_workload_no_options_error(self, runner, tmp_path, monk... method test_update_workload_api_error (line 814) | def test_update_workload_api_error(self, runner, tmp_path, monkeypatch): class TestGetToken (line 852) | class TestGetToken: method test_get_token_user_flow_without_secret (line 855) | def test_get_token_user_flow_without_secret(self, runner): method test_get_token_user_flow_with_secret (line 892) | def test_get_token_user_flow_with_secret(self, runner): method test_get_token_user_flow_default (line 925) | def test_get_token_user_flow_default(self, runner): method test_get_token_m2m_flow_success (line 951) | def test_get_token_m2m_flow_success(self, runner): method test_get_token_user_flow_missing_username (line 984) | def test_get_token_user_flow_missing_username(self, runner): method test_get_token_user_flow_missing_password (line 1014) | def test_get_token_user_flow_missing_password(self, runner): method test_get_token_m2m_flow_missing_secret (line 1044) | def test_get_token_m2m_flow_missing_secret(self, runner): method test_get_token_invalid_auth_flow (line 1072) | def test_get_token_invalid_auth_flow(self, runner): method test_get_token_user_flow_error (line 1091) | def test_get_token_user_flow_error(self, runner): method test_get_token_m2m_flow_error (line 1119) | def test_get_token_m2m_flow_error(self, runner): class TestListProviders (line 1146) | class TestListProviders: method test_list_providers_success (line 1149) | def test_list_providers_success(self, runner, tmp_path, monkeypatch): method test_list_providers_with_workload (line 1195) | def test_list_providers_with_workload(self, runner, tmp_path, monkeypa... method test_list_providers_no_config (line 1237) | def test_list_providers_no_config(self, runner, tmp_path, monkeypatch): method test_list_providers_empty (line 1246) | def test_list_providers_empty(self, runner, tmp_path, monkeypatch): method test_list_providers_no_identity_attribute (line 1279) | def test_list_providers_no_identity_attribute(self, runner, tmp_path, ... class TestSetupCognito (line 1314) | class TestSetupCognito: method test_setup_cognito_user_flow_success (line 1317) | def test_setup_cognito_user_flow_success(self, runner, tmp_path, monke... method test_setup_cognito_m2m_flow_success (line 1382) | def test_setup_cognito_m2m_flow_success(self, runner, tmp_path, monkey... method test_setup_cognito_uses_config_region (line 1436) | def test_setup_cognito_uses_config_region(self, runner, tmp_path, monk... method test_setup_cognito_fallback_region (line 1485) | def test_setup_cognito_fallback_region(self, runner, tmp_path, monkeyp... method test_setup_cognito_invalid_auth_flow (line 1526) | def test_setup_cognito_invalid_auth_flow(self, runner, tmp_path, monke... method test_setup_cognito_error (line 1535) | def test_setup_cognito_error(self, runner, tmp_path, monkeypatch): class TestCleanup (line 1551) | class TestCleanup: method test_cleanup_success_with_force (line 1554) | def test_cleanup_success_with_force(self, runner, tmp_path, monkeypatch): method test_cleanup_without_force_cancelled (line 1630) | def test_cleanup_without_force_cancelled(self, runner, tmp_path, monke... method test_cleanup_no_config_error (line 1665) | def test_cleanup_no_config_error(self, runner, tmp_path, monkeypatch): method test_cleanup_provider_deletion_error (line 1674) | def test_cleanup_provider_deletion_error(self, runner, tmp_path, monke... class TestBuildProviderConfig (line 1725) | class TestBuildProviderConfig: method test_build_cognito_config (line 1728) | def test_build_cognito_config(self): method test_build_github_config (line 1751) | def test_build_github_config(self): method test_build_google_config (line 1768) | def test_build_google_config(self): method test_build_salesforce_config (line 1783) | def test_build_salesforce_config(self): class TestSetupAwsJwt (line 1799) | class TestSetupAwsJwt: method test_setup_aws_jwt_success (line 1802) | def test_setup_aws_jwt_success(self, runner, tmp_path, monkeypatch): method test_setup_aws_jwt_already_enabled (line 1848) | def test_setup_aws_jwt_already_enabled(self, runner, tmp_path, monkeyp... method test_setup_aws_jwt_with_rs256 (line 1882) | def test_setup_aws_jwt_with_rs256(self, runner, tmp_path, monkeypatch): method test_setup_aws_jwt_with_custom_duration (line 1923) | def test_setup_aws_jwt_with_custom_duration(self, runner, tmp_path, mo... method test_setup_aws_jwt_invalid_algorithm (line 1964) | def test_setup_aws_jwt_invalid_algorithm(self, runner, tmp_path, monke... method test_setup_aws_jwt_invalid_duration_too_short (line 1982) | def test_setup_aws_jwt_invalid_duration_too_short(self, runner, tmp_pa... method test_setup_aws_jwt_invalid_duration_too_long (line 2000) | def test_setup_aws_jwt_invalid_duration_too_long(self, runner, tmp_pat... method test_setup_aws_jwt_no_config_file (line 2018) | def test_setup_aws_jwt_no_config_file(self, runner, tmp_path, monkeypa... method test_setup_aws_jwt_adds_multiple_audiences (line 2039) | def test_setup_aws_jwt_adds_multiple_audiences(self, runner, tmp_path,... method test_setup_aws_jwt_duplicate_audience (line 2082) | def test_setup_aws_jwt_duplicate_audience(self, runner, tmp_path, monk... method test_setup_aws_jwt_api_error (line 2130) | def test_setup_aws_jwt_api_error(self, runner, tmp_path, monkeypatch): class TestListAwsJwt (line 2160) | class TestListAwsJwt: method test_list_aws_jwt_success (line 2163) | def test_list_aws_jwt_success(self, runner, tmp_path, monkeypatch): method test_list_aws_jwt_not_configured (line 2204) | def test_list_aws_jwt_not_configured(self, runner, tmp_path, monkeypat... method test_list_aws_jwt_disabled (line 2228) | def test_list_aws_jwt_disabled(self, runner, tmp_path, monkeypatch): method test_list_aws_jwt_no_config_file (line 2261) | def test_list_aws_jwt_no_config_file(self, runner, tmp_path, monkeypat... FILE: tests/cli/memory/test_browser.py class TestNavigationState (line 16) | class TestNavigationState: method test_default_values (line 19) | def test_default_values(self): method test_with_values (line 28) | def test_with_values(self): method test_replace (line 40) | def test_replace(self): class TestBrowserData (line 49) | class TestBrowserData: method test_default_values (line 52) | def test_default_values(self): method test_mutable_defaults_isolated (line 61) | def test_mutable_defaults_isolated(self): class TestMemoryBrowserInit (line 68) | class TestMemoryBrowserInit: method test_init_with_manager (line 71) | def test_init_with_manager(self): method test_init_with_visualizer (line 80) | def test_init_with_visualizer(self): method test_init_with_initial_memory (line 86) | def test_init_with_initial_memory(self): method test_load_memory_skips_api_when_preloaded (line 92) | def test_load_memory_skips_api_when_preloaded(self): class TestMemoryBrowserNavigation (line 100) | class TestMemoryBrowserNavigation: method test_push_state (line 103) | def test_push_state(self): method test_go_back_empty_stack (line 113) | def test_go_back_empty_stack(self): method test_go_back_with_stack (line 119) | def test_go_back_with_stack(self): method test_go_back_restores_cursor (line 133) | def test_go_back_restores_cursor(self): class TestMemoryBrowserCursor (line 149) | class TestMemoryBrowserCursor: method test_cursor_up (line 152) | def test_cursor_up(self): method test_cursor_up_at_zero (line 159) | def test_cursor_up_at_zero(self): method test_cursor_down (line 166) | def test_cursor_down(self): method test_cursor_down_at_end (line 174) | def test_cursor_down_at_end(self): class TestMemoryBrowserSelection (line 183) | class TestMemoryBrowserSelection: method test_select_actor (line 186) | def test_select_actor(self): method test_select_session (line 200) | def test_select_session(self): method test_select_event (line 214) | def test_select_event(self): method test_select_static_namespace (line 226) | def test_select_static_namespace(self): method test_select_template_namespace (line 239) | def test_select_template_namespace(self): method test_select_namespace_actor (line 252) | def test_select_namespace_actor(self): method test_select_namespace_actor_with_session (line 266) | def test_select_namespace_actor_with_session(self): method test_select_namespace_session (line 280) | def test_select_namespace_session(self): method test_select_record (line 295) | def test_select_record(self): method test_select_empty_items (line 308) | def test_select_empty_items(self): method test_select_memory_item_actors (line 314) | def test_select_memory_item_actors(self): method test_select_memory_item_namespaces (line 327) | def test_select_memory_item_namespaces(self): class TestMemoryBrowserExtractors (line 340) | class TestMemoryBrowserExtractors: method test_extract_role (line 343) | def test_extract_role(self): method test_extract_role_empty (line 349) | def test_extract_role_empty(self): method test_extract_text (line 356) | def test_extract_text(self): method test_extract_text_empty (line 362) | def test_extract_text_empty(self): method test_extract_record_text (line 368) | def test_extract_record_text(self): method test_extract_record_text_string_content (line 374) | def test_extract_record_text_string_content(self): method test_extract_record_text_empty (line 380) | def test_extract_record_text_empty(self): method test_extract_payload_snippet_short (line 386) | def test_extract_payload_snippet_short(self): method test_extract_payload_snippet_long (line 392) | def test_extract_payload_snippet_long(self): method test_extract_payload_snippet_empty (line 400) | def test_extract_payload_snippet_empty(self): class TestMemoryBrowserLoadView (line 407) | class TestMemoryBrowserLoadView: method test_load_memory_view (line 410) | def test_load_memory_view(self): method test_load_actors_view (line 421) | def test_load_actors_view(self): method test_load_sessions_view (line 430) | def test_load_sessions_view(self): method test_load_events_view (line 439) | def test_load_events_view(self): method test_load_namespaces_view (line 459) | def test_load_namespaces_view(self): method test_load_records_view (line 474) | def test_load_records_view(self): method test_load_view_error_handling (line 483) | def test_load_view_error_handling(self): method test_load_view_client_error_handling (line 495) | def test_load_view_client_error_handling(self): method test_load_view_botocore_error_handling (line 509) | def test_load_view_botocore_error_handling(self): class TestMemoryBrowserLoadMore (line 523) | class TestMemoryBrowserLoadMore: method test_load_actors_load_more (line 526) | def test_load_actors_load_more(self): method test_load_sessions_load_more (line 543) | def test_load_sessions_load_more(self): method test_load_events_load_more_sorts (line 558) | def test_load_events_load_more_sorts(self): method test_load_records_load_more (line 574) | def test_load_records_load_more(self): method test_load_actors_cache_hit (line 589) | def test_load_actors_cache_hit(self): method test_load_namespaces_fallback_key (line 597) | def test_load_namespaces_fallback_key(self): class TestMemoryBrowserCacheInvalidation (line 611) | class TestMemoryBrowserCacheInvalidation: method test_select_actor_clears_session_cache (line 614) | def test_select_actor_clears_session_cache(self): method test_select_session_clears_event_cache (line 629) | def test_select_session_clears_event_cache(self): method test_select_namespace_clears_record_cache (line 645) | def test_select_namespace_clears_record_cache(self): class TestMemoryBrowserRender (line 661) | class TestMemoryBrowserRender: method _make_browser (line 664) | def _make_browser(self, **kwargs): method test_render_breadcrumb_memory_root (line 674) | def test_render_breadcrumb_memory_root(self): method test_render_breadcrumb_deep_navigation (line 681) | def test_render_breadcrumb_deep_navigation(self): method test_render_breadcrumb_record_detail (line 694) | def test_render_breadcrumb_record_detail(self): method test_render_memory_view_calls_visualizer (line 705) | def test_render_memory_view_calls_visualizer(self): method test_render_memory_view_no_data_shows_nav (line 718) | def test_render_memory_view_no_data_shows_nav(self): method test_render_event_detail_calls_visualizer (line 731) | def test_render_event_detail_calls_visualizer(self): method test_render_record_detail_with_namespace (line 739) | def test_render_record_detail_with_namespace(self): method test_render_event_detail_out_of_bounds (line 750) | def test_render_event_detail_out_of_bounds(self): method test_render_list_view_empty (line 757) | def test_render_list_view_empty(self): method test_render_list_view_events_with_role (line 763) | def test_render_list_view_events_with_role(self): method test_render_list_view_events_payload_fallback (line 775) | def test_render_list_view_events_payload_fallback(self): class TestMemoryBrowserRenderControls (line 786) | class TestMemoryBrowserRenderControls: method _make_browser (line 789) | def _make_browser(self): method test_render_controls_shows_more_for_events (line 797) | def test_render_controls_shows_more_for_events(self): method test_render_controls_no_notice_for_actors (line 804) | def test_render_controls_no_notice_for_actors(self): method test_render_controls_shows_shortcuts_on_memory_view (line 811) | def test_render_controls_shows_shortcuts_on_memory_view(self): method test_render_controls_no_shortcuts_on_other_views (line 822) | def test_render_controls_no_shortcuts_on_other_views(self): class TestMemoryBrowserCoverage (line 833) | class TestMemoryBrowserCoverage: method _make_browser (line 836) | def _make_browser(self, **kwargs): method test_render_calls_all_phases (line 847) | def test_render_calls_all_phases(self): method test_render_content_dispatches_to_list_view (line 861) | def test_render_content_dispatches_to_list_view(self): method test_render_content_unknown_view (line 869) | def test_render_content_unknown_view(self): method test_render_list_view_actors (line 876) | def test_render_list_view_actors(self): method test_render_list_view_namespace_actors (line 885) | def test_render_list_view_namespace_actors(self): method test_render_list_view_sessions (line 893) | def test_render_list_view_sessions(self): method test_render_list_view_namespaces (line 903) | def test_render_list_view_namespaces(self): method test_render_list_view_records (line 916) | def test_render_list_view_records(self): method test_load_sessions_cache_hit (line 930) | def test_load_sessions_cache_hit(self): method test_load_events_cache_hit (line 939) | def test_load_events_cache_hit(self): method test_load_records_cache_hit (line 948) | def test_load_records_cache_hit(self): method test_load_view_unknown_view (line 957) | def test_load_view_unknown_view(self): method test_select_empty_items (line 964) | def test_select_empty_items(self): method test_select_unknown_view (line 970) | def test_select_unknown_view(self): method test_extract_role_non_dict_payload (line 977) | def test_extract_role_non_dict_payload(self): method test_extract_role_non_list_content (line 982) | def test_extract_role_non_list_content(self): method test_extract_role_non_dict_item (line 987) | def test_extract_role_non_dict_item(self): method test_extract_text_non_dict_payload (line 992) | def test_extract_text_non_dict_payload(self): method test_extract_text_non_list_content (line 997) | def test_extract_text_non_list_content(self): method test_render_controls_minimal (line 1002) | def test_render_controls_minimal(self): method test_load_namespaces_memory_already_cached (line 1011) | def test_load_namespaces_memory_already_cached(self): FILE: tests/cli/memory/test_commands.py function _mock_config (line 12) | def _mock_config(memory_id=None, region=None, config_exists=True, agent_... class TestShowCommand (line 22) | class TestShowCommand: method test_show_uses_config_memory_id (line 28) | def test_show_uses_config_memory_id(self, mock_config, mock_manager_cl... method test_show_explicit_memory_id_overrides_config (line 45) | def test_show_explicit_memory_id_overrides_config(self, mock_config, m... method test_show_no_memory_id_errors (line 60) | def test_show_no_memory_id_errors(self, mock_config): method test_show_with_verbose (line 72) | def test_show_with_verbose(self, mock_config, mock_manager_class, mock... method test_show_with_region (line 94) | def test_show_with_region(self, mock_config, mock_manager_class, mock_... class TestShowEventsCommand (line 111) | class TestShowEventsCommand: method test_show_events_default_shows_latest (line 118) | def test_show_events_default_shows_latest( method test_show_events_last_n (line 143) | def test_show_events_last_n(self, mock_collect, mock_config, mock_mana... method test_show_events_list_actors (line 163) | def test_show_events_list_actors(self, mock_config, mock_manager_class): method test_show_events_list_sessions_requires_actor (line 178) | def test_show_events_list_sessions_requires_actor(self, mock_config, m... method test_show_events_session_requires_actor (line 190) | def test_show_events_session_requires_actor(self, mock_config, mock_ma... method test_show_events_all_and_last_conflict (line 202) | def test_show_events_all_and_last_conflict(self, mock_config, mock_man... method test_show_events_all_displays_tree (line 215) | def test_show_events_all_displays_tree(self, mock_visualizer_class, mo... class TestShowRecordsCommand (line 228) | class TestShowRecordsCommand: method test_show_records_default_shows_latest (line 235) | def test_show_records_default_shows_latest( method test_show_records_last_n (line 259) | def test_show_records_last_n(self, mock_collect, mock_config, mock_man... method test_show_records_all_displays_tree (line 280) | def test_show_records_all_displays_tree(self, mock_config, mock_manage... method test_show_records_all_with_namespace_errors (line 294) | def test_show_records_all_with_namespace_errors(self, mock_config, moc... method test_show_records_namespace_drills_down (line 307) | def test_show_records_namespace_drills_down(self, mock_config, mock_ma... method test_show_records_query_requires_namespace (line 321) | def test_show_records_query_requires_namespace(self, mock_config, mock... method test_show_records_query_with_namespace (line 334) | def test_show_records_query_with_namespace(self, mock_config, mock_man... method test_show_records_all_and_last_conflict (line 351) | def test_show_records_all_and_last_conflict(self, mock_config, mock_ma... class TestConfigResolution (line 362) | class TestConfigResolution: method test_no_config_no_memory_id_errors (line 366) | def test_no_config_no_memory_id_errors(self, mock_config): method test_config_exists_but_no_memory_id_errors (line 377) | def test_config_exists_but_no_memory_id_errors(self, mock_config): method test_region_from_config (line 392) | def test_region_from_config(self, mock_collect, mock_config, mock_mana... class TestGetMemoryConfigFromFile (line 405) | class TestGetMemoryConfigFromFile: method test_no_config_file (line 409) | def test_no_config_file(self, mock_load): method test_config_without_memory (line 419) | def test_config_without_memory(self, mock_load): method test_config_with_memory (line 436) | def test_config_with_memory(self, mock_load): method test_config_exception (line 454) | def test_config_exception(self, mock_load): class TestShowEventsEdgeCases (line 467) | class TestShowEventsEdgeCases: method test_show_events_list_sessions (line 472) | def test_show_events_list_sessions(self, mock_config, mock_manager_cla... method test_show_events_no_events (line 489) | def test_show_events_no_events(self, mock_collect, mock_config, mock_m... method test_show_events_last_exceeds_count (line 504) | def test_show_events_last_exceeds_count(self, mock_collect, mock_confi... class TestShowRecordsEdgeCases (line 516) | class TestShowRecordsEdgeCases: method test_show_records_no_records (line 523) | def test_show_records_no_records(self, mock_collect, mock_config, mock... method test_show_records_last_exceeds_count (line 538) | def test_show_records_last_exceeds_count( method test_show_records_query_no_results (line 554) | def test_show_records_query_no_results(self, mock_config, mock_manager... class TestCollectAllEvents (line 567) | class TestCollectAllEvents: method test_collect_events_basic (line 570) | def test_collect_events_basic(self): method test_collect_events_skips_missing_actor_id (line 585) | def test_collect_events_skips_missing_actor_id(self): method test_collect_events_skips_missing_session_id (line 598) | def test_collect_events_skips_missing_session_id(self): class TestCollectAllRecords (line 612) | class TestCollectAllRecords: method test_collect_records_with_namespace (line 615) | def test_collect_records_with_namespace(self): method test_collect_records_all_namespaces (line 627) | def test_collect_records_all_namespaces(self): class TestCollectRecordsFromNamespaceTemplate (line 641) | class TestCollectRecordsFromNamespaceTemplate: method test_static_namespace (line 644) | def test_static_namespace(self): method test_actor_template (line 656) | def test_actor_template(self): method test_session_template (line 669) | def test_session_template(self): method test_template_error_handling (line 685) | def test_template_error_handling(self): class TestTryCollectRecords (line 698) | class TestTryCollectRecords: method test_successful_collection (line 701) | def test_successful_collection(self): method test_error_handling (line 714) | def test_error_handling(self): class TestResolveMemoryConfig (line 727) | class TestResolveMemoryConfig: method test_resolve_with_explicit_memory_id (line 732) | def test_resolve_with_explicit_memory_id(self, mock_session, mock_conf... method test_resolve_from_config (line 746) | def test_resolve_from_config(self, mock_session, mock_config): method test_resolve_region_from_boto (line 759) | def test_resolve_region_from_boto(self, mock_session_class, mock_config): method test_resolve_with_agent_name (line 774) | def test_resolve_with_agent_name(self, mock_session, mock_config): method test_resolve_config_region_not_overridden (line 787) | def test_resolve_config_region_not_overridden(self, mock_session, mock... method test_resolve_explicit_region_overrides_config (line 799) | def test_resolve_explicit_region_overrides_config(self, mock_session, ... method test_resolve_explicit_memory_id_overrides_config (line 811) | def test_resolve_explicit_memory_id_overrides_config(self, mock_sessio... class TestBrowseCommand (line 822) | class TestBrowseCommand: method test_browse_success (line 828) | def test_browse_success(self, mock_config, mock_manager_class, mock_br... method test_browse_auth_error (line 841) | def test_browse_auth_error(self, mock_config, mock_manager_class): method test_browse_passes_initial_memory (line 852) | def test_browse_passes_initial_memory(self, mock_config, mock_manager_... FILE: tests/cli/observability/test_commands.py class TestCreateObservabilityClient (line 13) | class TestCreateObservabilityClient: method test_returns_tuple_with_client_agent_id_endpoint (line 18) | def test_returns_tuple_with_client_agent_id_endpoint(self, mock_config... method test_creates_stateless_client_with_only_region (line 46) | def test_creates_stateless_client_with_only_region(self, mock_client_c... class TestObservabilityListCommand (line 59) | class TestObservabilityListCommand: method test_list_passes_agent_id_to_client_methods (line 64) | def test_list_passes_agent_id_to_client_methods(self, mock_config, moc... class TestStatelessClientPattern (line 90) | class TestStatelessClientPattern: method test_client_created_without_agent_id_parameter (line 94) | def test_client_created_without_agent_id_parameter(self, mock_client_c... class TestShowCommand (line 111) | class TestShowCommand: method test_show_with_trace_id (line 116) | def test_show_with_trace_id(self, mock_config, mock_client_class): method test_show_with_session_id (line 154) | def test_show_with_session_id(self, mock_config, mock_client_class): method test_show_with_conflicting_ids_fails (line 188) | def test_show_with_conflicting_ids_fails(self, mock_config, mock_clien... class TestDefaultTimeRange (line 207) | class TestDefaultTimeRange: method test_returns_milliseconds_timestamp (line 210) | def test_returns_milliseconds_timestamp(self): method test_respects_days_parameter (line 221) | def test_respects_days_parameter(self): class TestAgentConfigHelper (line 234) | class TestAgentConfigHelper: method test_returns_none_when_no_config_file (line 238) | def test_returns_none_when_no_config_file(self, mock_load): method test_extracts_agent_config_fields (line 249) | def test_extracts_agent_config_fields(self, mock_load): class TestShowCommandValidation (line 271) | class TestShowCommandValidation: method test_trace_id_with_all_flag_fails (line 276) | def test_trace_id_with_all_flag_fails(self, mock_config, mock_client_c... method test_trace_id_with_last_flag_fails (line 290) | def test_trace_id_with_last_flag_fails(self, mock_config, mock_client_... method test_all_and_last_together_fails (line 304) | def test_all_and_last_together_fails(self, mock_config, mock_client_cl... method test_show_with_all_flag (line 318) | def test_show_with_all_flag(self, mock_config, mock_client_class): method test_show_with_last_flag (line 358) | def test_show_with_last_flag(self, mock_config, mock_client_class): method test_show_with_errors_only_flag (line 387) | def test_show_with_errors_only_flag(self, mock_config, mock_client_cla... class TestShowCommandAutoDiscovery (line 414) | class TestShowCommandAutoDiscovery: method test_show_without_ids_uses_config_session (line 419) | def test_show_without_ids_uses_config_session(self, mock_config, mock_... method test_show_without_ids_fetches_latest_session (line 450) | def test_show_without_ids_fetches_latest_session(self, mock_config, mo... method test_show_without_ids_no_sessions_found (line 482) | def test_show_without_ids_no_sessions_found(self, mock_config, mock_cl... class TestListCommandValidation (line 497) | class TestListCommandValidation: method test_list_with_errors_filter (line 502) | def test_list_with_errors_filter(self, mock_config, mock_client_class): method test_list_auto_discovers_session (line 530) | def test_list_auto_discovers_session(self, mock_config, mock_client_cl... method test_list_no_sessions_found (line 561) | def test_list_no_sessions_found(self, mock_config, mock_client_class): class TestAgentConfigHelperErrorPaths (line 576) | class TestAgentConfigHelperErrorPaths: method test_returns_none_when_agent_id_missing (line 580) | def test_returns_none_when_agent_id_missing(self, mock_load): method test_returns_none_when_region_missing (line 598) | def test_returns_none_when_region_missing(self, mock_load): method test_returns_none_on_exception (line 616) | def test_returns_none_on_exception(self, mock_load): class TestShowCommandEmptyResults (line 631) | class TestShowCommandEmptyResults: method test_show_trace_with_no_spans (line 636) | def test_show_trace_with_no_spans(self, mock_config, mock_client_class): method test_show_session_with_no_spans (line 653) | def test_show_session_with_no_spans(self, mock_config, mock_client_cla... method test_list_with_no_spans (line 670) | def test_list_with_no_spans(self, mock_config, mock_client_class): class TestShowCommandWithOutput (line 686) | class TestShowCommandWithOutput: method test_show_with_output_json_export (line 692) | def test_show_with_output_json_export(self, mock_path, mock_config, mo... method test_show_output_handles_export_error (line 726) | def test_show_output_handles_export_error(self, mock_path, mock_config... class TestShowCommandRuntimeLogErrors (line 759) | class TestShowCommandRuntimeLogErrors: method test_show_trace_continues_when_runtime_logs_fail (line 764) | def test_show_trace_continues_when_runtime_logs_fail(self, mock_config... method test_show_session_continues_when_runtime_logs_fail (line 795) | def test_show_session_continues_when_runtime_logs_fail(self, mock_conf... method test_show_all_traces_continues_when_runtime_logs_fail (line 825) | def test_show_all_traces_continues_when_runtime_logs_fail(self, mock_c... method test_list_continues_when_runtime_logs_fail (line 855) | def test_list_continues_when_runtime_logs_fail(self, mock_config, mock... class TestShowSessionErrorFiltering (line 884) | class TestShowSessionErrorFiltering: method test_show_session_with_errors_only_no_errors_found (line 889) | def test_show_session_with_errors_only_no_errors_found(self, mock_conf... method test_list_with_errors_only_no_errors_found (line 920) | def test_list_with_errors_only_no_errors_found(self, mock_config, mock... FILE: tests/cli/policy/test_commands.py function mock_policy_client (line 15) | def mock_policy_client(): function test_create_policy_engine_basic (line 29) | def test_create_policy_engine_basic(mock_policy_client): function test_create_policy_engine_defaults (line 60) | def test_create_policy_engine_defaults(mock_policy_client): function test_create_policy_engine_with_encryption_key (line 70) | def test_create_policy_engine_with_encryption_key(mock_policy_client): function test_create_policy_engine_with_tags (line 99) | def test_create_policy_engine_with_tags(mock_policy_client): function test_create_policy_engine_with_encryption_and_tags (line 126) | def test_create_policy_engine_with_encryption_and_tags(mock_policy_client): function test_create_policy_engine_with_invalid_tags_json (line 161) | def test_create_policy_engine_with_invalid_tags_json(mock_policy_client): function test_get_policy_engine (line 178) | def test_get_policy_engine(mock_policy_client): function test_update_policy_engine (line 196) | def test_update_policy_engine(mock_policy_client): function test_list_policy_engines (line 217) | def test_list_policy_engines(mock_policy_client): function test_list_policy_engines_empty (line 235) | def test_list_policy_engines_empty(mock_policy_client): function test_list_policy_engines_with_pagination (line 245) | def test_list_policy_engines_with_pagination(mock_policy_client): function test_delete_policy_engine (line 259) | def test_delete_policy_engine(mock_policy_client): function test_policy_engine_api_error (line 271) | def test_policy_engine_api_error(mock_policy_client): function test_create_policy_basic (line 284) | def test_create_policy_basic(mock_policy_client): function test_create_policy_with_validation_mode (line 318) | def test_create_policy_with_validation_mode(mock_policy_client): function test_create_policy_with_description (line 344) | def test_create_policy_with_description(mock_policy_client): function test_create_policy_invalid_json (line 370) | def test_create_policy_invalid_json(mock_policy_client): function test_get_policy (line 389) | def test_get_policy(mock_policy_client): function test_update_policy (line 408) | def test_update_policy(mock_policy_client): function test_update_policy_invalid_json (line 433) | def test_update_policy_invalid_json(mock_policy_client): function test_list_policies (line 452) | def test_list_policies(mock_policy_client): function test_list_policies_empty (line 469) | def test_list_policies_empty(mock_policy_client): function test_list_policies_with_resource_scope (line 479) | def test_list_policies_with_resource_scope(mock_policy_client): function test_list_policies_with_pagination (line 494) | def test_list_policies_with_pagination(mock_policy_client): function test_delete_policy (line 513) | def test_delete_policy(mock_policy_client): function test_create_policy_from_generation_basic (line 528) | def test_create_policy_from_generation_basic(mock_policy_client): function test_create_policy_from_generation_with_description (line 563) | def test_create_policy_from_generation_with_description(mock_policy_clie... function test_create_policy_from_generation_with_validation_mode (line 594) | def test_create_policy_from_generation_with_validation_mode(mock_policy_... function test_create_policy_from_generation_with_all_params (line 624) | def test_create_policy_from_generation_with_all_params(mock_policy_client): function test_policy_api_error (line 666) | def test_policy_api_error(mock_policy_client): function test_start_policy_generation (line 678) | def test_start_policy_generation(mock_policy_client): function test_start_policy_generation_with_region (line 713) | def test_start_policy_generation_with_region(mock_policy_client): function test_get_policy_generation (line 740) | def test_get_policy_generation(mock_policy_client): function test_list_policy_generation_assets (line 758) | def test_list_policy_generation_assets(mock_policy_client): function test_list_policy_generation_assets_empty (line 782) | def test_list_policy_generation_assets_empty(mock_policy_client): function test_list_policy_generation_assets_with_pagination (line 798) | def test_list_policy_generation_assets_with_pagination(mock_policy_client): function test_list_policy_generations (line 829) | def test_list_policy_generations(mock_policy_client): function test_list_policy_generations_empty (line 846) | def test_list_policy_generations_empty(mock_policy_client): function test_list_policy_generations_with_pagination (line 856) | def test_list_policy_generations_with_pagination(mock_policy_client): function test_policy_generation_api_error (line 883) | def test_policy_generation_api_error(mock_policy_client): function test_create_policy_engine_with_all_optional_fields (line 897) | def test_create_policy_engine_with_all_optional_fields(mock_policy_client): function test_get_policy_engine_with_all_timestamps (line 915) | def test_get_policy_engine_with_all_timestamps(mock_policy_client): function test_create_policy_with_arn (line 934) | def test_create_policy_with_arn(mock_policy_client): function test_update_policy_with_updated_at (line 963) | def test_update_policy_with_updated_at(mock_policy_client): function test_list_policy_generation_assets_with_data (line 990) | def test_list_policy_generation_assets_with_data(mock_policy_client): function test_all_commands_accept_region_option (line 1018) | def test_all_commands_accept_region_option(mock_policy_client): FILE: tests/cli/runtime/test_commands.py class TestBedrockAgentCoreCLI (line 17) | class TestBedrockAgentCoreCLI: method setup_method (line 20) | def setup_method(self): method test_configure_command_basic (line 24) | def test_configure_command_basic(self, tmp_path): method test_configure_with_oauth (line 107) | def test_configure_with_oauth(self, tmp_path): method test_configure_with_code_build_execution_role (line 217) | def test_configure_with_code_build_execution_role(self, tmp_path): method test_configure_with_invalid_protocol (line 283) | def test_configure_with_invalid_protocol(self, tmp_path): method test_launch_command_local (line 307) | def test_launch_command_local(self, tmp_path): method test_configure_invalid_agent_name_special_chars (line 360) | def test_configure_invalid_agent_name_special_chars(self, tmp_path): method test_configure_no_entrypoint (line 408) | def test_configure_no_entrypoint(self, tmp_path): method test_configure_no_execution_role_interactive_prompt_fails (line 440) | def test_configure_no_execution_role_interactive_prompt_fails(self, tm... method test_configure_ecr_repository_specified (line 481) | def test_configure_ecr_repository_specified(self, tmp_path): method test_configure_json_decode_error_in_authorizer_config (line 565) | def test_configure_json_decode_error_in_authorizer_config(self, tmp_pa... method test_launch_command_cloud (line 610) | def test_launch_command_cloud(self, tmp_path): method test_configure_command_value_error (line 666) | def test_configure_command_value_error(self, tmp_path): method test_configure_command_file_not_found_error (line 691) | def test_configure_command_file_not_found_error(self, tmp_path): method test_configure_command_general_exception (line 724) | def test_configure_command_general_exception(self, tmp_path): method test_launch_command_value_error (line 801) | def test_launch_command_value_error(self, tmp_path): method test_launch_command_general_exception (line 839) | def test_launch_command_general_exception(self, tmp_path): method test_invoke_command_value_error_not_deployed (line 876) | def test_invoke_command_value_error_not_deployed(self, tmp_path): method test_invoke_command_value_error_general (line 908) | def test_invoke_command_value_error_general(self, tmp_path): method test_invoke_command_error_with_cloudwatch_logs (line 939) | def test_invoke_command_error_with_cloudwatch_logs(self, tmp_path): method test_invoke_command_general_exception (line 972) | def test_invoke_command_general_exception(self, tmp_path): method test_status_command_value_error (line 1003) | def test_status_command_value_error(self, tmp_path): method test_status_command_general_exception (line 1026) | def test_status_command_general_exception(self, tmp_path): method test_configure_set_default_file_not_found_error (line 1049) | def test_configure_set_default_file_not_found_error(self, tmp_path): method test_configure_set_default_value_error (line 1074) | def test_configure_set_default_value_error(self, tmp_path): method test_configure_list_file_not_found_error (line 1105) | def test_configure_list_file_not_found_error(self, tmp_path): method test_validate_requirements_file_error (line 1122) | def test_validate_requirements_file_error(self, tmp_path): method test_prompt_for_requirements_file_validation_error (line 1153) | def test_prompt_for_requirements_file_validation_error(self, tmp_path): method test_handle_requirements_file_display_none_return (line 1178) | def test_handle_requirements_file_display_none_return(self, tmp_path): method test_prompt_for_requirements_empty_response (line 1197) | def test_prompt_for_requirements_empty_response(self, tmp_path): method test_configure_no_agents_configured (line 1207) | def test_configure_no_agents_configured(self, tmp_path): method test_launch_deprecated_code_build_flag (line 1230) | def test_launch_deprecated_code_build_flag(self, tmp_path): method test_status_verbose_json_output (line 1258) | def test_status_verbose_json_output(self, tmp_path): method test_invoke_command_basic (line 1285) | def test_invoke_command_basic(self, tmp_path): method test_invoke_command_verbose_flag (line 1327) | def test_invoke_command_verbose_flag(self, tmp_path): method test_invoke_command_response_parsing (line 1365) | def test_invoke_command_response_parsing(self, tmp_path): method test_invoke_with_bearer_token_and_oauth_config (line 1432) | def test_invoke_with_bearer_token_and_oauth_config(self, tmp_path): method test_invoke_bearer_token_without_oauth_config (line 1476) | def test_invoke_bearer_token_without_oauth_config(self, tmp_path): method test_status_command (line 1520) | def test_status_command(self, tmp_path): method test_error_no_config_file (line 1609) | def test_error_no_config_file(self, tmp_path): method test_invoke_simple_text_payload (line 1626) | def test_invoke_simple_text_payload(self, tmp_path): method test_launch_command_mutually_exclusive_options (line 1667) | def test_launch_command_mutually_exclusive_options(self): method test_launch_command_local_build_success (line 1675) | def test_launch_command_local_build_success(self, tmp_path): method test_launch_command_codebuild_success (line 1727) | def test_launch_command_codebuild_success(self, tmp_path): method test_launch_help_text_updated (line 1782) | def test_launch_help_text_updated(self): method test_launch_missing_config (line 1804) | def test_launch_missing_config(self, tmp_path): method test_invoke_missing_config (line 1818) | def test_invoke_missing_config(self, tmp_path): method test_status_command_missing_fields (line 1830) | def test_status_command_missing_fields(self, tmp_path): method test_handle_requirements_file_display_with_provided_file (line 1900) | def test_handle_requirements_file_display_with_provided_file(self, tmp... method test_handle_requirements_file_display_auto_detect_found (line 1923) | def test_handle_requirements_file_display_auto_detect_found(self, tmp_... method test_handle_requirements_file_display_no_file_found (line 1962) | def test_handle_requirements_file_display_no_file_found(self, tmp_path): method test_configure_oauth (line 1993) | def test_configure_oauth(self, tmp_path): method test_configure_oauth_with_existing_values (line 2044) | def test_configure_oauth_with_existing_values(self, tmp_path): method test_configure_oauth_no_discovery_url_error (line 2120) | def test_configure_oauth_no_discovery_url_error(self, tmp_path): method test_configure_oauth_no_client_or_audience_error (line 2149) | def test_configure_oauth_no_client_or_audience_error(self, tmp_path): method test_configure_list_agents_success (line 2175) | def test_configure_list_agents_success(self, tmp_path): method test_configure_set_default_success (line 2233) | def test_configure_set_default_success(self, tmp_path): method test_validate_requirements_file_success (line 2269) | def test_validate_requirements_file_success(self, tmp_path): method test_prompt_for_requirements_file_success (line 2300) | def test_prompt_for_requirements_file_success(self, tmp_path): method test_launch_command_with_env_vars (line 2328) | def test_launch_command_with_env_vars(self, tmp_path): method test_invoke_with_oauth_and_env_bearer_token (line 2393) | def test_invoke_with_oauth_and_env_bearer_token(self, tmp_path): method test_launch_command_cloud_success (line 2426) | def test_launch_command_cloud_success(self, tmp_path): method test_status_command_missing_agent (line 2483) | def test_status_command_missing_agent(self, tmp_path): method test_status_command_no_agents_in_config (line 2504) | def test_status_command_no_agents_in_config(self, tmp_path): method test_status_command_log_info_failure (line 2525) | def test_status_command_log_info_failure(self, tmp_path): method test_status_command_malformed_response (line 2578) | def test_status_command_malformed_response(self, tmp_path): method test_status_command_with_specific_agent (line 2613) | def test_status_command_with_specific_agent(self, tmp_path): method test_status_command_endpoint_missing_optional_fields (line 2654) | def test_status_command_endpoint_missing_optional_fields(self, tmp_path): method test_invoke_command_unicode_payload (line 2698) | def test_invoke_command_unicode_payload(self, tmp_path): method test_invoke_command_unicode_response (line 2754) | def test_invoke_command_unicode_response(self, tmp_path): method test_invoke_command_mixed_unicode_ascii (line 2809) | def test_invoke_command_mixed_unicode_ascii(self, tmp_path): method test_destroy_command_dry_run (line 2869) | def test_destroy_command_dry_run(self, tmp_path): method test_destroy_command_force (line 2930) | def test_destroy_command_force(self, tmp_path): method test_destroy_command_undeployed_agent (line 2994) | def test_destroy_command_undeployed_agent(self, tmp_path): method test_destroy_command_specific_agent (line 3028) | def test_destroy_command_specific_agent(self, tmp_path): method test_destroy_command_nonexistent_agent (line 3090) | def test_destroy_command_nonexistent_agent(self, tmp_path): method test_destroy_command_no_config (line 3124) | def test_destroy_command_no_config(self, tmp_path): method test_parse_custom_headers_valid_single_header (line 3138) | def test_parse_custom_headers_valid_single_header(self): method test_parse_custom_headers_valid_multiple_headers (line 3147) | def test_parse_custom_headers_valid_multiple_headers(self): method test_parse_custom_headers_already_prefixed (line 3160) | def test_parse_custom_headers_already_prefixed(self): method test_parse_custom_headers_with_spaces_and_special_chars (line 3172) | def test_parse_custom_headers_with_spaces_and_special_chars(self): method test_parse_custom_headers_empty_string (line 3184) | def test_parse_custom_headers_empty_string(self): method test_parse_custom_headers_invalid_format_no_colon (line 3194) | def test_parse_custom_headers_invalid_format_no_colon(self): method test_parse_custom_headers_invalid_format_empty_name (line 3201) | def test_parse_custom_headers_invalid_format_empty_name(self): method test_parse_custom_headers_mixed_valid_invalid (line 3208) | def test_parse_custom_headers_mixed_valid_invalid(self): method test_invoke_with_custom_headers_success (line 3217) | def test_invoke_with_custom_headers_success(self, tmp_path): method test_invoke_with_custom_headers_and_bearer_token (line 3266) | def test_invoke_with_custom_headers_and_bearer_token(self, tmp_path): method test_invoke_with_custom_headers_and_session_id (line 3305) | def test_invoke_with_custom_headers_and_session_id(self, tmp_path): method test_invoke_with_invalid_headers_format (line 3363) | def test_invoke_with_invalid_headers_format(self, tmp_path): method test_invoke_with_empty_headers (line 3390) | def test_invoke_with_empty_headers(self, tmp_path): method test_invoke_with_headers_local_mode (line 3432) | def test_invoke_with_headers_local_mode(self, tmp_path): method test_configure_with_vpc_flags (line 3481) | def test_configure_with_vpc_flags(self, tmp_path): method test_deploy_with_custom_image_tag (line 3570) | def test_deploy_with_custom_image_tag(self, tmp_path): method test_deploy_without_image_tag (line 3612) | def test_deploy_without_image_tag(self, tmp_path): class TestCommandsAdditionalCoverage (line 3654) | class TestCommandsAdditionalCoverage: method setup_method (line 3657) | def setup_method(self): method test_configure_idle_timeout_greater_than_max_lifetime_error (line 3663) | def test_configure_idle_timeout_greater_than_max_lifetime_error(self, ... method test_configure_with_request_header_allowlist_flag (line 3703) | def test_configure_with_request_header_allowlist_flag(self, tmp_path): method test_configure_vpc_without_flag_but_with_resources_error (line 3779) | def test_configure_vpc_without_flag_but_with_resources_error(self, tmp... method test_configure_vpc_invalid_subnet_format (line 3814) | def test_configure_vpc_invalid_subnet_format(self, tmp_path): method test_configure_vpc_invalid_security_group_format (line 3852) | def test_configure_vpc_invalid_security_group_format(self, tmp_path): method test_status_displays_vpc_info (line 3890) | def test_status_displays_vpc_info(self, tmp_path): method test_configure_with_disable_memory_flag (line 3952) | def test_configure_with_disable_memory_flag(self, tmp_path): method test_stop_session_command_success (line 4025) | def test_stop_session_command_success(self, tmp_path): method test_stop_session_command_no_session_id_error (line 4074) | def test_stop_session_command_no_session_id_error(self, tmp_path): method test_stop_session_command_value_error (line 4107) | def test_stop_session_command_value_error(self, tmp_path): method test_stop_session_command_no_config (line 4134) | def test_stop_session_command_no_config(self, tmp_path): method test_status_command_with_memory_creating_state (line 4149) | def test_status_command_with_memory_creating_state(self, tmp_path): method test_status_command_with_lifecycle_settings (line 4216) | def test_status_command_with_lifecycle_settings(self, tmp_path): method test_status_displays_public_network_info (line 4284) | def test_status_displays_public_network_info(self, tmp_path): method test_status_command_not_deployed (line 4348) | def test_status_command_not_deployed(self, tmp_path): method test_destroy_command_with_errors (line 4393) | def test_destroy_command_with_errors(self, tmp_path): method test_destroy_command_runtime_error (line 4445) | def test_destroy_command_runtime_error(self, tmp_path): method test_destroy_command_with_delete_ecr_repo_flag (line 4486) | def test_destroy_command_with_delete_ecr_repo_flag(self, tmp_path): method test_launch_command_auto_update_on_conflict_flag (line 4542) | def test_launch_command_auto_update_on_conflict_flag(self, tmp_path): method test_launch_command_invalid_env_var_format (line 4584) | def test_launch_command_invalid_env_var_format(self, tmp_path): method test_invoke_dev_mode_basic (line 4622) | def test_invoke_dev_mode_basic(self): method test_invoke_dev_mode_with_session_id (line 4652) | def test_invoke_dev_mode_with_session_id(self): method test_invoke_dev_mode_connection_error (line 4673) | def test_invoke_dev_mode_connection_error(self): FILE: tests/cli/runtime/test_configuration_manager.py class TestConfigurationManager (line 10) | class TestConfigurationManager: method test_prompt_execution_role_with_user_input (line 13) | def test_prompt_execution_role_with_user_input(self, tmp_path): method test_prompt_execution_role_with_existing_config (line 36) | def test_prompt_execution_role_with_existing_config(self, tmp_path): method test_prompt_execution_role_existing_config_overridden (line 69) | def test_prompt_execution_role_existing_config_overridden(self, tmp_pa... method test_prompt_request_header_allowlist_no_configuration (line 102) | def test_prompt_request_header_allowlist_no_configuration(self, tmp_pa... method test_prompt_request_header_allowlist_with_configuration (line 123) | def test_prompt_request_header_allowlist_with_configuration(self, tmp_... method test_prompt_request_header_allowlist_with_existing_config (line 147) | def test_prompt_request_header_allowlist_with_existing_config(self, tm... method test_prompt_request_header_allowlist_non_interactive (line 183) | def test_prompt_request_header_allowlist_non_interactive(self, tmp_path): method test_configure_request_header_allowlist_basic (line 196) | def test_configure_request_header_allowlist_basic(self, tmp_path): method test_configure_request_header_allowlist_with_existing_headers (line 217) | def test_configure_request_header_allowlist_with_existing_headers(self... method test_configure_request_header_allowlist_with_whitespace (line 241) | def test_configure_request_header_allowlist_with_whitespace(self, tmp_... method test_configure_request_header_allowlist_empty_input_error (line 261) | def test_configure_request_header_allowlist_empty_input_error(self, tm... method test_configure_request_header_allowlist_only_commas_error (line 288) | def test_configure_request_header_allowlist_only_commas_error(self, tm... method test_configure_request_header_allowlist_default_headers (line 313) | def test_configure_request_header_allowlist_default_headers(self, tmp_... method test_prompt_memory_selection_create_new_stm_only (line 336) | def test_prompt_memory_selection_create_new_stm_only(self, tmp_path): method test_prompt_memory_selection_create_new_stm_and_ltm (line 360) | def test_prompt_memory_selection_create_new_stm_and_ltm(self, tmp_path): method test_init_with_non_interactive_mode (line 385) | def test_init_with_non_interactive_mode(self, tmp_path): method test_prompt_execution_role_non_interactive (line 392) | def test_prompt_execution_role_non_interactive(self, tmp_path): method test_prompt_ecr_repository_non_interactive (line 404) | def test_prompt_ecr_repository_non_interactive(self, tmp_path): method test_prompt_ecr_repository_with_user_input (line 417) | def test_prompt_ecr_repository_with_user_input(self, tmp_path): method test_prompt_oauth_config_non_interactive (line 441) | def test_prompt_oauth_config_non_interactive(self, tmp_path): method test_prompt_oauth_config_with_no (line 453) | def test_prompt_oauth_config_with_no(self, tmp_path): method test_configure_oauth_basic (line 474) | def test_configure_oauth_basic(self, tmp_path): method test_prompt_memory_type_yes_both (line 519) | def test_prompt_memory_type_yes_both(self, tmp_path): method test_prompt_memory_type_yes_stm_only (line 541) | def test_prompt_memory_type_yes_stm_only(self, tmp_path): method test_prompt_memory_type_no (line 563) | def test_prompt_memory_type_no(self, tmp_path): method test_prompt_memory_selection_with_existing_memories (line 585) | def test_prompt_memory_selection_with_existing_memories(self, tmp_path): method test_prompt_memory_selection_skip_option (line 620) | def test_prompt_memory_selection_skip_option(self, tmp_path): FILE: tests/cli/runtime/test_configure_impl.py class TestConfigureImplExistingCreateAgent (line 20) | class TestConfigureImplExistingCreateAgent: method test_detects_existing_create_flow_agent (line 23) | def test_detects_existing_create_flow_agent( method test_existing_create_agent_skips_entrypoint_prompt (line 107) | def test_existing_create_agent_skips_entrypoint_prompt( method test_existing_create_agent_blocks_deployment_type_change (line 188) | def test_existing_create_agent_blocks_deployment_type_change( class TestConfigureImplVPCValidation (line 265) | class TestConfigureImplVPCValidation: method test_vpc_requires_subnets_and_security_groups (line 268) | def test_vpc_requires_subnets_and_security_groups(self, tmp_path): method test_vpc_validates_subnet_format (line 290) | def test_vpc_validates_subnet_format(self, tmp_path): method test_vpc_validates_security_group_format (line 312) | def test_vpc_validates_security_group_format(self, tmp_path): class TestConfigureImplProtocolValidation (line 335) | class TestConfigureImplProtocolValidation: method test_invalid_protocol_rejected (line 338) | def test_invalid_protocol_rejected(self, tmp_path): class TestConfigureImplLifecycleValidation (line 359) | class TestConfigureImplLifecycleValidation: method test_idle_timeout_must_be_less_than_max_lifetime (line 362) | def test_idle_timeout_must_be_less_than_max_lifetime(self, tmp_path): class TestConfigureImplAuthorizerConfig (line 384) | class TestConfigureImplAuthorizerConfig: method test_invalid_authorizer_json_rejected (line 387) | def test_invalid_authorizer_json_rejected(self, tmp_path, mock_boto3_c... class TestConfigureImplRequestHeaderAllowlist (line 410) | class TestConfigureImplRequestHeaderAllowlist: method test_empty_request_header_allowlist_uses_default (line 413) | def test_empty_request_header_allowlist_uses_default( class TestConfigureImplIACProjectBlocking (line 482) | class TestConfigureImplIACProjectBlocking: method test_blocks_iac_created_projects (line 485) | def test_blocks_iac_created_projects(self, tmp_path, mock_boto3_clients): class TestConfigureImplBasicFlow (line 522) | class TestConfigureImplBasicFlow: method test_configure_with_basic_options (line 525) | def test_configure_with_basic_options( method test_configure_with_memory_disabled (line 587) | def test_configure_with_memory_disabled( method test_configure_with_request_headers (line 656) | def test_configure_with_request_headers( method test_configure_with_oauth_authorizer (line 727) | def test_configure_with_oauth_authorizer( class TestConfigureImplDeploymentType (line 806) | class TestConfigureImplDeploymentType: method test_configure_with_direct_code_deploy (line 809) | def test_configure_with_direct_code_deploy( method test_configure_with_invalid_deployment_type (line 880) | def test_configure_with_invalid_deployment_type(self, tmp_path, mock_b... class TestConfigureImplCreateMode (line 903) | class TestConfigureImplCreateMode: method test_create_mode_uses_container_deployment (line 906) | def test_create_mode_uses_container_deployment( class TestConfigureImplSuccessPanelNoDuplicateECR (line 969) | class TestConfigureImplSuccessPanelNoDuplicateECR: method test_ecr_repository_appears_once_in_container_success_panel (line 972) | def test_ecr_repository_appears_once_in_container_success_panel( method test_no_ecr_repository_in_direct_code_deploy_success_panel (line 1051) | def test_no_ecr_repository_in_direct_code_deploy_success_panel( FILE: tests/cli/runtime/test_dev_command.py class TestGetModulePathAndAgentName (line 27) | class TestGetModulePathAndAgentName: method test_no_config_no_default_entrypoint_fails (line 30) | def test_no_config_no_default_entrypoint_fails(self, tmp_path): method test_with_valid_config (line 37) | def test_with_valid_config(self, tmp_path): method test_with_default_entrypoint_no_config (line 69) | def test_with_default_entrypoint_no_config(self, tmp_path): method test_config_without_entrypoint (line 89) | def test_config_without_entrypoint(self, tmp_path): method test_config_load_error_with_default_entrypoint (line 117) | def test_config_load_error_with_default_entrypoint(self, tmp_path): method test_config_load_error_without_default_entrypoint (line 139) | def test_config_load_error_without_default_entrypoint(self, tmp_path): class TestGetModulePathFromConfig (line 155) | class TestGetModulePathFromConfig: method test_file_entrypoint (line 158) | def test_file_entrypoint(self, tmp_path): method test_directory_entrypoint (line 174) | def test_directory_entrypoint(self, tmp_path): method test_nested_entrypoint (line 189) | def test_nested_entrypoint(self, tmp_path): method test_absolute_path_outside_project (line 205) | def test_absolute_path_outside_project(self, tmp_path): class TestSetupDevEnvironment (line 216) | class TestSetupDevEnvironment: method test_no_envs_default_port (line 219) | def test_no_envs_default_port(self, tmp_path): method test_custom_port (line 232) | def test_custom_port(self, tmp_path): method test_port_in_use_fallback (line 244) | def test_port_in_use_fallback(self, tmp_path): method test_custom_env_vars (line 256) | def test_custom_env_vars(self, tmp_path): method test_invalid_env_var_format (line 268) | def test_invalid_env_var_format(self, tmp_path): method test_port_from_env_var_string (line 274) | def test_port_from_env_var_string(self, tmp_path): method test_user_env_vars_override_config_env_vars (line 285) | def test_user_env_vars_override_config_env_vars(self, tmp_path): method test_user_env_vars_partial_override (line 307) | def test_user_env_vars_partial_override(self, tmp_path): class TestFindAvailablePort (line 327) | class TestFindAvailablePort: method test_first_port_available (line 330) | def test_first_port_available(self): method test_first_port_in_use (line 339) | def test_first_port_in_use(self): method test_no_available_port (line 357) | def test_no_available_port(self): class TestCleanupProcess (line 368) | class TestCleanupProcess: method test_cleanup_none_process (line 371) | def test_cleanup_none_process(self): method test_cleanup_terminates_process (line 376) | def test_cleanup_terminates_process(self): method test_cleanup_kills_on_timeout (line 386) | def test_cleanup_kills_on_timeout(self): class TestDevCommand (line 397) | class TestDevCommand: method test_dev_starts_server (line 400) | def test_dev_starts_server(self, tmp_path): method test_dev_handles_keyboard_interrupt (line 452) | def test_dev_handles_keyboard_interrupt(self, tmp_path): method test_dev_handles_exception (line 499) | def test_dev_handles_exception(self, tmp_path): method test_dev_with_custom_port (line 547) | def test_dev_with_custom_port(self, tmp_path): method test_dev_with_env_vars (line 595) | def test_dev_with_env_vars(self, tmp_path): class TestTypeScriptHelpers (line 646) | class TestTypeScriptHelpers: method test_get_language_from_config (line 649) | def test_get_language_from_config(self, tmp_path): method test_get_language_no_config (line 670) | def test_get_language_no_config(self, tmp_path): method test_has_dev_script_true (line 688) | def test_has_dev_script_true(self, tmp_path): method test_has_dev_script_false (line 698) | def test_has_dev_script_false(self, tmp_path): method test_has_dev_script_no_package_json (line 708) | def test_has_dev_script_no_package_json(self, tmp_path): method test_build_typescript_command_with_dev_script (line 715) | def test_build_typescript_command_with_dev_script(self, tmp_path): method test_build_typescript_command_fallback (line 731) | def test_build_typescript_command_fallback(self, tmp_path): method test_build_typescript_command_with_config_entrypoint (line 745) | def test_build_typescript_command_with_config_entrypoint(self, tmp_path): FILE: tests/cli/runtime/test_dev_command_additions.py class TestGetEnvVars (line 22) | class TestGetEnvVars: method test_no_config_file_returns_empty (line 25) | def test_no_config_file_returns_empty(self, tmp_path): method test_config_with_memory_id_and_region (line 34) | def test_config_with_memory_id_and_region(self, tmp_path): method test_config_with_only_aws_region (line 58) | def test_config_with_only_aws_region(self, tmp_path): method test_config_with_only_memory_id (line 79) | def test_config_with_only_memory_id(self, tmp_path): method test_config_without_memory_or_region (line 103) | def test_config_without_memory_or_region(self, tmp_path): method test_invalid_config_returns_empty_with_warning (line 123) | def test_invalid_config_returns_empty_with_warning(self, tmp_path): method test_config_load_exception_handling (line 136) | def test_config_load_exception_handling(self, tmp_path): class TestEnsureConfig (line 149) | class TestEnsureConfig: method test_both_config_and_entrypoint_exist (line 152) | def test_both_config_and_entrypoint_exist(self, tmp_path): method test_only_config_exists (line 171) | def test_only_config_exists(self, tmp_path): method test_only_entrypoint_exists (line 186) | def test_only_entrypoint_exists(self, tmp_path): method test_neither_exists_raises_error (line 205) | def test_neither_exists_raises_error(self, tmp_path): class TestEdgeCases (line 219) | class TestEdgeCases: method test_config_with_empty_memory_id (line 222) | def test_config_with_empty_memory_id(self, tmp_path): method test_config_with_empty_region (line 246) | def test_config_with_empty_region(self, tmp_path): method test_config_without_memory_config (line 267) | def test_config_without_memory_config(self, tmp_path): FILE: tests/cli/test_cli_ui.py class TestOptionState (line 19) | class TestOptionState: method test_init_and_properties (line 22) | def test_init_and_properties(self): method test_empty_init (line 33) | def test_empty_init(self): class TestFragments (line 40) | class TestFragments: method test_build_option_fragments_normal (line 43) | def test_build_option_fragments_normal(self): method test_build_option_fragments_finalized (line 65) | def test_build_option_fragments_finalized(self): class TestInteractiveComponents (line 79) | class TestInteractiveComponents: method mock_key_bindings (line 83) | def mock_key_bindings(self): method test_select_one_navigation (line 102) | def test_select_one_navigation(self, mock_app_cls, mock_key_bindings): method test_ask_text_simple (line 161) | def test_ask_text_simple( method test_ask_text_validation_success (line 187) | def test_ask_text_validation_success( method test_ask_text_validation_fail (line 217) | def test_ask_text_validation_fail( class TestOutputHelpers (line 243) | class TestOutputHelpers: method test_intro_animate_once (line 248) | def test_intro_animate_once(self, mock_sleep, mock_console): method test_sandwich_text_ui (line 255) | def test_sandwich_text_ui(self, mock_sleep, mock_console): method test_show_invalid_aws_creds (line 270) | def test_show_invalid_aws_creds(self, mock_sandwich): method test_show_invalid_aws_creds_with_header (line 284) | def test_show_invalid_aws_creds_with_header(self, mock_sandwich): FILE: tests/cli/test_common.py class TestCLICommon (line 7) | class TestCLICommon: method test_prompt_with_default_with_input (line 8) | def test_prompt_with_default_with_input(self): method test_prompt_with_default_empty_input (line 16) | def test_prompt_with_default_empty_input(self): method test_print_success (line 25) | def test_print_success(self, mock_console): method test_assert_valid_aws_creds_or_exit_failure (line 32) | def test_assert_valid_aws_creds_or_exit_failure(self): FILE: tests/client/test_evaluation_client.py class TestInitialization (line 20) | class TestInitialization: method test_init_with_region (line 23) | def test_init_with_region(self): method test_init_without_region (line 33) | def test_init_without_region(self, mock_session): method test_init_defaults_to_us_east_1 (line 44) | def test_init_defaults_to_us_east_1(self, mock_session): method test_init_with_endpoint_url (line 54) | def test_init_with_endpoint_url(self): class TestFromConfig (line 67) | class TestFromConfig: method test_from_config_returns_tuple (line 71) | def test_from_config_returns_tuple(self, mock_load_config, tmp_path): method test_from_config_no_file (line 95) | def test_from_config_no_file(self, mock_load_config, tmp_path): class TestGetLatestSession (line 109) | class TestGetLatestSession: method test_get_latest_session_requires_agent_id (line 113) | def test_get_latest_session_requires_agent_id(self, mock_init): method test_get_latest_session_success (line 124) | def test_get_latest_session_success(self, mock_init): method test_get_latest_session_no_sessions (line 140) | def test_get_latest_session_no_sessions(self, mock_init): method test_get_latest_session_error_handling (line 156) | def test_get_latest_session_error_handling(self, mock_init): class TestRun (line 176) | class TestRun: method test_run_requires_agent_id (line 180) | def test_run_requires_agent_id(self, mock_init): method test_run_with_session_id (line 190) | def test_run_with_session_id(self, mock_init): method test_run_auto_fetch_session (line 212) | def test_run_auto_fetch_session(self, mock_init): method test_run_fails_when_no_session_found (line 237) | def test_run_fails_when_no_session_found(self, mock_init): class TestEvaluatorManagement (line 253) | class TestEvaluatorManagement: method test_list_evaluators (line 256) | def test_list_evaluators(self): method test_get_evaluator (line 268) | def test_get_evaluator(self): method test_create_evaluator (line 281) | def test_create_evaluator(self, mock_processor): method test_duplicate_evaluator (line 296) | def test_duplicate_evaluator(self, mock_processor): method test_update_evaluator (line 310) | def test_update_evaluator(self, mock_processor): method test_delete_evaluator (line 321) | def test_delete_evaluator(self, mock_processor): class TestOnlineEvaluation (line 336) | class TestOnlineEvaluation: method test_create_online_config (line 340) | def test_create_online_config(self, mock_processor): method test_create_online_config_requires_agent_id (line 354) | def test_create_online_config_requires_agent_id(self, mock_processor): method test_get_online_config (line 362) | def test_get_online_config(self, mock_processor): method test_list_online_configs (line 373) | def test_list_online_configs(self, mock_processor): method test_update_online_config (line 384) | def test_update_online_config(self, mock_processor): method test_delete_online_config (line 395) | def test_delete_online_config(self, mock_processor): FILE: tests/client/test_memory.py class TestResolveMemoryConfig (line 10) | class TestResolveMemoryConfig: method test_resolve_with_memory_id (line 16) | def test_resolve_with_memory_id(self, mock_get_config, mock_session, m... method test_resolve_from_config (line 29) | def test_resolve_from_config(self, mock_get_config, mock_session, mock... method test_resolve_region_from_session (line 43) | def test_resolve_region_from_session(self, mock_get_config, mock_sessi... method test_resolve_no_memory_id_raises (line 59) | def test_resolve_no_memory_id_raises(self, mock_get_config, mock_sessi... method test_resolve_config_without_region (line 71) | def test_resolve_config_without_region(self, mock_get_config, mock_ses... method test_resolve_config_with_region_already_set (line 88) | def test_resolve_config_with_region_already_set(self, mock_get_config,... class TestMemoryInit (line 100) | class TestMemoryInit: method test_init_with_memory_id (line 104) | def test_init_with_memory_id(self, mock_resolve): method test_init_with_agent_name (line 118) | def test_init_with_agent_name(self, mock_resolve): class TestMemoryShow (line 130) | class TestMemoryShow: method test_show_returns_memory_data (line 134) | def test_show_returns_memory_data(self, mock_resolve): method test_show_with_data_attribute (line 153) | def test_show_with_data_attribute(self, mock_resolve): class TestMemoryShowEvents (line 172) | class TestMemoryShowEvents: method test_show_events_default_returns_latest (line 177) | def test_show_events_default_returns_latest(self, mock_collect, mock_r... method test_show_events_no_events (line 198) | def test_show_events_no_events(self, mock_collect, mock_resolve): method test_show_events_last_exceeds_count (line 213) | def test_show_events_last_exceeds_count(self, mock_collect, mock_resol... method test_show_events_list_actors (line 229) | def test_show_events_list_actors(self, mock_resolve): method test_show_events_list_sessions (line 244) | def test_show_events_list_sessions(self, mock_resolve): method test_show_events_list_sessions_requires_actor (line 259) | def test_show_events_list_sessions_requires_actor(self, mock_resolve): method test_show_events_all (line 272) | def test_show_events_all(self, mock_collect, mock_resolve): class TestMemoryShowRecords (line 289) | class TestMemoryShowRecords: method test_show_records_default_returns_latest (line 294) | def test_show_records_default_returns_latest(self, mock_collect, mock_... method test_show_records_no_records (line 315) | def test_show_records_no_records(self, mock_collect, mock_resolve): method test_show_records_last_exceeds_count (line 330) | def test_show_records_last_exceeds_count(self, mock_collect, mock_reso... method test_show_records_all (line 347) | def test_show_records_all(self, mock_collect, mock_resolve): method test_show_records_all_with_namespace_raises (line 364) | def test_show_records_all_with_namespace_raises(self, mock_resolve): method test_show_records_namespace_only (line 376) | def test_show_records_namespace_only(self, mock_resolve): method test_show_records_query_requires_namespace (line 394) | def test_show_records_query_requires_namespace(self, mock_resolve): method test_show_records_with_query (line 406) | def test_show_records_with_query(self, mock_resolve): method test_show_records_query_no_results (line 424) | def test_show_records_query_no_results(self, mock_resolve): FILE: tests/client/test_observability.py class TestObservabilityInit (line 11) | class TestObservabilityInit: method test_init_with_agent_id (line 15) | def test_init_with_agent_id(self, mock_create): method test_init_with_agent_name (line 32) | def test_init_with_agent_name(self, mock_create): method test_init_creates_visualizer (line 46) | def test_init_creates_visualizer(self, mock_create): class TestObservabilityList (line 58) | class TestObservabilityList: method test_list_with_session_id (line 63) | def test_list_with_session_id(self, mock_display, mock_create): method test_list_auto_discovers_session (line 93) | def test_list_auto_discovers_session(self, mock_create): method test_list_no_sessions_found (line 109) | def test_list_no_sessions_found(self, mock_create): method test_list_filters_errors (line 125) | def test_list_filters_errors(self, mock_display, mock_create): class TestObservabilityShow (line 151) | class TestObservabilityShow: method test_show_with_trace_id (line 156) | def test_show_with_trace_id(self, mock_show_trace, mock_create): method test_show_with_session_all (line 184) | def test_show_with_session_all(self, mock_show_session, mock_create): method test_show_validation_both_ids (line 210) | def test_show_validation_both_ids(self, mock_create): method test_show_validation_trace_with_all (line 222) | def test_show_validation_trace_with_all(self, mock_create): method test_show_validation_all_with_last (line 234) | def test_show_validation_all_with_last(self, mock_create): method test_show_with_last_flag (line 247) | def test_show_with_last_flag(self, mock_show_session, mock_create): FILE: tests/conftest.py function mock_boto3_clients (line 22) | def mock_boto3_clients(monkeypatch): function mock_subprocess (line 108) | def mock_subprocess(monkeypatch): function mock_bedrock_agentcore_app (line 126) | def mock_bedrock_agentcore_app(): function no_sleep (line 138) | def no_sleep(monkeypatch): function mock_container_runtime (line 144) | def mock_container_runtime(monkeypatch): function sample_project_context (line 173) | def sample_project_context(tmp_path): function sample_agent_config (line 209) | def sample_agent_config(): function temp_source_structure (line 234) | def temp_source_structure(tmp_path): FILE: tests/create/features/test_iac_features.py function create_monorepo_context (line 17) | def create_monorepo_context(tmp_path, iac_provider): class TestCDKFeature (line 54) | class TestCDKFeature: method test_feature_dir_name (line 57) | def test_feature_dir_name(self): method test_render_common_dir_enabled (line 61) | def test_render_common_dir_enabled(self): method test_before_apply_creates_cdk_directory (line 65) | def test_before_apply_creates_cdk_directory(self, tmp_path): method test_before_apply_sets_iac_dir_on_context (line 76) | def test_before_apply_sets_iac_dir_on_context(self, tmp_path): method test_before_apply_fails_if_dir_exists (line 87) | def test_before_apply_fails_if_dir_exists(self, tmp_path): class TestTerraformFeature (line 99) | class TestTerraformFeature: method test_feature_dir_name (line 102) | def test_feature_dir_name(self): method test_before_apply_creates_terraform_directory (line 106) | def test_before_apply_creates_terraform_directory(self, tmp_path): method test_before_apply_sets_iac_dir_on_context (line 117) | def test_before_apply_sets_iac_dir_on_context(self, tmp_path): method test_before_apply_fails_if_dir_exists (line 128) | def test_before_apply_fails_if_dir_exists(self, tmp_path): FILE: tests/create/features/test_sdk_features.py function create_context (line 19) | def create_context(tmp_path, sdk_provider, model_provider, template_dir_... class TestStrandsFeature (line 43) | class TestStrandsFeature: method test_feature_dir_name (line 46) | def test_feature_dir_name(self): method test_monorepo_dependencies (line 50) | def test_monorepo_dependencies(self, tmp_path): method test_runtime_only_bedrock_dependencies (line 59) | def test_runtime_only_bedrock_dependencies(self, tmp_path): method test_runtime_only_openai_dependencies (line 69) | def test_runtime_only_openai_dependencies(self, tmp_path): method test_runtime_only_anthropic_dependencies (line 79) | def test_runtime_only_anthropic_dependencies(self, tmp_path): method test_runtime_only_gemini_dependencies (line 89) | def test_runtime_only_gemini_dependencies(self, tmp_path): class TestCrewAIFeature (line 100) | class TestCrewAIFeature: method test_feature_dir_name (line 103) | def test_feature_dir_name(self): method test_monorepo_dependencies (line 107) | def test_monorepo_dependencies(self, tmp_path): method test_runtime_only_bedrock_dependencies (line 117) | def test_runtime_only_bedrock_dependencies(self, tmp_path): method test_runtime_only_openai_dependencies (line 127) | def test_runtime_only_openai_dependencies(self, tmp_path): method test_runtime_only_anthropic_dependencies (line 137) | def test_runtime_only_anthropic_dependencies(self, tmp_path): method test_runtime_only_gemini_dependencies (line 147) | def test_runtime_only_gemini_dependencies(self, tmp_path): class TestLangChainLangGraphFeature (line 158) | class TestLangChainLangGraphFeature: method test_feature_dir_name (line 161) | def test_feature_dir_name(self): method test_monorepo_dependencies (line 165) | def test_monorepo_dependencies(self, tmp_path): method test_runtime_only_bedrock_dependencies (line 177) | def test_runtime_only_bedrock_dependencies(self, tmp_path): method test_runtime_only_openai_dependencies (line 188) | def test_runtime_only_openai_dependencies(self, tmp_path): method test_runtime_only_anthropic_dependencies (line 199) | def test_runtime_only_anthropic_dependencies(self, tmp_path): method test_runtime_only_gemini_dependencies (line 210) | def test_runtime_only_gemini_dependencies(self, tmp_path): class TestOpenAIAgentsFeature (line 222) | class TestOpenAIAgentsFeature: method test_feature_dir_name (line 225) | def test_feature_dir_name(self): method test_default_dependencies (line 229) | def test_default_dependencies(self): method test_runtime_only_sets_model_provider_name (line 233) | def test_runtime_only_sets_model_provider_name(self, tmp_path): method test_monorepo_no_model_provider_name (line 244) | def test_monorepo_no_model_provider_name(self, tmp_path): class TestGoogleADKFeature (line 253) | class TestGoogleADKFeature: method test_feature_dir_name (line 256) | def test_feature_dir_name(self): method test_default_dependencies (line 260) | def test_default_dependencies(self): method test_runtime_only_sets_model_provider_name (line 264) | def test_runtime_only_sets_model_provider_name(self, tmp_path): method test_monorepo_no_model_provider_name (line 273) | def test_monorepo_no_model_provider_name(self, tmp_path): class TestAutogenFeature (line 282) | class TestAutogenFeature: method test_feature_dir_name (line 285) | def test_feature_dir_name(self): method test_monorepo_dependencies (line 289) | def test_monorepo_dependencies(self, tmp_path): method test_runtime_only_bedrock_dependencies (line 299) | def test_runtime_only_bedrock_dependencies(self, tmp_path): method test_runtime_only_openai_dependencies (line 309) | def test_runtime_only_openai_dependencies(self, tmp_path): method test_runtime_only_anthropic_dependencies (line 319) | def test_runtime_only_anthropic_dependencies(self, tmp_path): method test_runtime_only_gemini_dependencies (line 329) | def test_runtime_only_gemini_dependencies(self, tmp_path): FILE: tests/create/test_baseline_feature.py class TestBaselineFeature (line 13) | class TestBaselineFeature: method _create_context (line 16) | def _create_context(self, tmp_path, template_dir_selection, model_prov... method test_monorepo_dependencies (line 38) | def test_monorepo_dependencies(self, tmp_path): method test_runtime_only_dependencies (line 51) | def test_runtime_only_dependencies(self, tmp_path): method test_before_apply_does_not_add_dotenv_for_monorepo (line 65) | def test_before_apply_does_not_add_dotenv_for_monorepo(self, tmp_path): method test_before_apply_no_dotenv_for_bedrock (line 78) | def test_before_apply_no_dotenv_for_bedrock(self, tmp_path): method test_before_apply_adds_dotenv_for_anthropic_runtime (line 92) | def test_before_apply_adds_dotenv_for_anthropic_runtime(self, tmp_path): method test_template_override_dir_is_set (line 100) | def test_template_override_dir_is_set(self, tmp_path): method test_after_apply_does_nothing (line 108) | def test_after_apply_does_nothing(self, tmp_path): FILE: tests/create/test_constants.py class TestTemplateDirSelection (line 15) | class TestTemplateDirSelection: method test_monorepo_value (line 18) | def test_monorepo_value(self): method test_common_value (line 22) | def test_common_value(self): method test_runtime_only_value (line 26) | def test_runtime_only_value(self): class TestDeploymentType (line 31) | class TestDeploymentType: method test_container_value (line 34) | def test_container_value(self): method test_direct_code_deploy_value (line 38) | def test_direct_code_deploy_value(self): class TestRuntimeProtocol (line 43) | class TestRuntimeProtocol: method test_http_value (line 46) | def test_http_value(self): method test_mcp_value (line 50) | def test_mcp_value(self): method test_a2a_value (line 54) | def test_a2a_value(self): method test_agui_value (line 58) | def test_agui_value(self): class TestIACProvider (line 63) | class TestIACProvider: method test_cdk_value (line 66) | def test_cdk_value(self): method test_terraform_value (line 70) | def test_terraform_value(self): method test_get_iac_as_list_returns_correct_order (line 74) | def test_get_iac_as_list_returns_correct_order(self): method test_get_iac_as_list_returns_list (line 79) | def test_get_iac_as_list_returns_list(self): class TestSDKProvider (line 85) | class TestSDKProvider: method test_strands_value (line 88) | def test_strands_value(self): method test_langchain_value (line 92) | def test_langchain_value(self): method test_google_adk_value (line 96) | def test_google_adk_value(self): method test_openai_agents_value (line 100) | def test_openai_agents_value(self): method test_autogen_value (line 104) | def test_autogen_value(self): method test_crewai_value (line 108) | def test_crewai_value(self): method test_get_sdk_display_names_as_list_returns_correct_order (line 112) | def test_get_sdk_display_names_as_list_returns_correct_order(self): method test_get_sdk_display_names_as_list_length (line 125) | def test_get_sdk_display_names_as_list_length(self): method test_get_id_from_display_strands (line 130) | def test_get_id_from_display_strands(self): method test_get_id_from_display_crewai (line 135) | def test_get_id_from_display_crewai(self): method test_get_id_from_display_google_adk (line 140) | def test_get_id_from_display_google_adk(self): method test_get_id_from_display_langchain_langgraph (line 145) | def test_get_id_from_display_langchain_langgraph(self): method test_get_id_from_display_autogen (line 150) | def test_get_id_from_display_autogen(self): method test_get_id_from_display_openai (line 155) | def test_get_id_from_display_openai(self): method test_get_id_from_display_unknown_raises_error (line 160) | def test_get_id_from_display_unknown_raises_error(self): method test_resolve_to_internal_id_with_internal_id (line 165) | def test_resolve_to_internal_id_with_internal_id(self): method test_resolve_to_internal_id_with_display_name (line 171) | def test_resolve_to_internal_id_with_display_name(self): method test_resolve_to_internal_id_unknown_raises_error (line 176) | def test_resolve_to_internal_id_unknown_raises_error(self): class TestModelProvider (line 182) | class TestModelProvider: method test_openai_value (line 185) | def test_openai_value(self): method test_bedrock_value (line 189) | def test_bedrock_value(self): method test_anthropic_value (line 193) | def test_anthropic_value(self): method test_gemini_value (line 197) | def test_gemini_value(self): method test_requires_api_key_set (line 201) | def test_requires_api_key_set(self): method test_bedrock_not_in_requires_api_key (line 206) | def test_bedrock_not_in_requires_api_key(self): method test_sdk_compatibility_openai_agents (line 210) | def test_sdk_compatibility_openai_agents(self): method test_sdk_compatibility_google_adk (line 215) | def test_sdk_compatibility_google_adk(self): method test_sdk_compatibility_strands (line 220) | def test_sdk_compatibility_strands(self): method test_sdk_compatibility_crewai (line 231) | def test_sdk_compatibility_crewai(self): method test_get_providers_list_no_filter (line 242) | def test_get_providers_list_no_filter(self): method test_get_providers_list_strands (line 248) | def test_get_providers_list_strands(self): method test_get_providers_list_openai_agents (line 254) | def test_get_providers_list_openai_agents(self): method test_get_providers_list_google_adk (line 259) | def test_get_providers_list_google_adk(self): method test_get_providers_list_with_display_name (line 264) | def test_get_providers_list_with_display_name(self): method test_get_providers_list_unknown_sdk_returns_all (line 270) | def test_get_providers_list_unknown_sdk_returns_all(self): method test_get_provider_display_names_as_list_no_filter (line 276) | def test_get_provider_display_names_as_list_no_filter(self): method test_get_provider_display_names_as_list_openai_agents (line 282) | def test_get_provider_display_names_as_list_openai_agents(self): method test_get_provider_display_names_as_list_google_adk (line 287) | def test_get_provider_display_names_as_list_google_adk(self): method test_get_id_from_display_bedrock (line 292) | def test_get_id_from_display_bedrock(self): method test_get_id_from_display_anthropic (line 297) | def test_get_id_from_display_anthropic(self): method test_get_id_from_display_gemini (line 302) | def test_get_id_from_display_gemini(self): method test_get_id_from_display_openai (line 307) | def test_get_id_from_display_openai(self): method test_get_id_from_display_unknown_raises_error (line 312) | def test_get_id_from_display_unknown_raises_error(self): FILE: tests/create/test_generate.py class TestGenerateProject (line 19) | class TestGenerateProject: method test_runtime_only_mode_creates_directories (line 27) | def test_runtime_only_mode_creates_directories( method test_runtime_only_calls_write_yaml (line 54) | def test_runtime_only_calls_write_yaml( method test_runtime_only_writes_env_for_non_bedrock (line 79) | def test_runtime_only_writes_env_for_non_bedrock( method test_runtime_only_skips_env_for_bedrock (line 107) | def test_runtime_only_skips_env_for_bedrock( method test_monorepo_mode_creates_directories (line 132) | def test_monorepo_mode_creates_directories( method test_monorepo_mode_calls_iac_generation (line 159) | def test_monorepo_mode_calls_iac_generation( method test_venv_creation_called_when_enabled (line 184) | def test_venv_creation_called_when_enabled( method test_venv_creation_skipped_when_disabled (line 209) | def test_venv_creation_skipped_when_disabled( method test_emit_success_message_called (line 234) | def test_emit_success_message_called( class TestApplyBaselineAndSdkFeatures (line 255) | class TestApplyBaselineAndSdkFeatures: method _create_context (line 258) | def _create_context(self, tmp_path, sdk_provider="Strands", model_prov... method test_collects_baseline_dependencies (line 281) | def test_collects_baseline_dependencies(self, tmp_path): method test_collects_sdk_dependencies (line 295) | def test_collects_sdk_dependencies(self, tmp_path): method test_dependencies_are_sorted (line 316) | def test_dependencies_are_sorted(self, tmp_path): method test_applies_baseline_feature (line 330) | def test_applies_baseline_feature(self, tmp_path): method test_applies_sdk_feature_when_present (line 343) | def test_applies_sdk_feature_when_present(self, tmp_path): method test_no_sdk_feature_when_none (line 363) | def test_no_sdk_feature_when_none(self, tmp_path): method test_bedrock_model_provider_adds_boto3_and_botocore (line 382) | def test_bedrock_model_provider_adds_boto3_and_botocore(self, tmp_path): method test_non_bedrock_model_provider_does_not_add_boto3 (line 403) | def test_non_bedrock_model_provider_does_not_add_boto3(self, tmp_path): method test_bedrock_deps_included_without_sdk_provider (line 427) | def test_bedrock_deps_included_without_sdk_provider(self, tmp_path): FILE: tests/create/test_helper/create_scenarios.py class ScenarioConfig (line 11) | class ScenarioConfig: FILE: tests/create/test_helper/run_create_with_config.py function run_create_with_config (line 18) | def run_create_with_config(tmp_path, monkeypatch, scenario, iac: Optiona... FILE: tests/create/test_helper/syrupy_util.py function _is_allowed (line 21) | def _is_allowed(p: Path, root: Path) -> bool: function snapshot_dir_tree (line 35) | def snapshot_dir_tree(path: Path) -> dict: function _sanitize (line 55) | def _sanitize(text: str, project_root: Path) -> str: FILE: tests/create/test_memory.py class TestPromptMemory (line 23) | class TestPromptMemory: method test_returns_stm_only_when_selected (line 27) | def test_returns_stm_only_when_selected(self, mock_select_one): method test_returns_stm_and_ltm_when_selected (line 40) | def test_returns_stm_and_ltm_when_selected(self, mock_select_one): method test_returns_no_memory_when_selected (line 49) | def test_returns_no_memory_when_selected(self, mock_select_one): method test_raises_error_on_unknown_selection (line 58) | def test_raises_error_on_unknown_selection(self, mock_select_one): class TestHandleBasicRuntimeFlowMemory (line 66) | class TestHandleBasicRuntimeFlowMemory: method test_prompts_memory_for_strands_interactive (line 72) | def test_prompts_memory_for_strands_interactive(self, mock_sdk, mock_m... method test_default_no_memory_for_strands_non_interactive (line 89) | def test_default_no_memory_for_strands_non_interactive(self, mock_sdk,... method test_memory_stm_only_in_non_interactive_mode (line 104) | def test_memory_stm_only_in_non_interactive_mode(self, mock_model_prov... method test_memory_stm_and_ltm_in_non_interactive_mode (line 121) | def test_memory_stm_and_ltm_in_non_interactive_mode(self, mock_model_p... method test_memory_no_memory_in_non_interactive_mode (line 138) | def test_memory_no_memory_in_non_interactive_mode(self, mock_model_pro... method test_memory_flag_rejected_for_non_strands_sdk (line 154) | def test_memory_flag_rejected_for_non_strands_sdk(self, mock_model_pro... method test_memory_flag_overrides_interactive_prompt (line 169) | def test_memory_flag_overrides_interactive_prompt(self, mock_model_pro... method test_no_memory_prompt_for_non_strands_sdk (line 187) | def test_no_memory_prompt_for_non_strands_sdk(self, mock_sdk, mock_mod... method test_memory_prompted_when_sdk_provided_as_strands_interactive (line 202) | def test_memory_prompted_when_sdk_provided_as_strands_interactive(self... class TestGenerateProjectMemory (line 216) | class TestGenerateProjectMemory: method test_stm_and_ltm_sets_correct_context_fields (line 223) | def test_stm_and_ltm_sets_correct_context_fields( method test_stm_only_sets_correct_context_fields (line 256) | def test_stm_only_sets_correct_context_fields( method test_no_memory_disables_context_fields (line 289) | def test_no_memory_disables_context_fields( class TestWriteMinimalCreateRuntimeYamlMemory (line 317) | class TestWriteMinimalCreateRuntimeYamlMemory: method _create_runtime_context (line 320) | def _create_runtime_context(self, tmp_path, memory_enabled=False, memo... method test_memory_config_included_when_enabled_with_ltm (line 347) | def test_memory_config_included_when_enabled_with_ltm(self, tmp_path): method test_memory_config_included_when_enabled_stm_only (line 361) | def test_memory_config_included_when_enabled_stm_only(self, tmp_path): method test_memory_config_not_included_when_disabled (line 375) | def test_memory_config_not_included_when_disabled(self, tmp_path): FILE: tests/create/test_monorepo_snapshots.py function test_monorepo_snapshots (line 36) | def test_monorepo_snapshots(sdk_provider, iac_provider, tmp_path, monkey... FILE: tests/create/test_monorepo_snapshots_with_config.py function test_cdk_snapshots (line 14) | def test_cdk_snapshots(snapshot, tmp_path, monkeypatch, scenario): function test_terraform_snapshots (line 23) | def test_terraform_snapshots(snapshot, tmp_path, monkeypatch, scenario): FILE: tests/create/test_resolve.py function create_project_context (line 27) | def create_project_context(tmp_path, iac_provider=IACProvider.CDK): function create_agent_config (line 62) | def create_agent_config( class TestResolveAgentConfigWithProjectContext (line 110) | class TestResolveAgentConfigWithProjectContext: method test_sets_agent_name (line 113) | def test_sets_agent_name(self, tmp_path): method test_sets_runtime_protocol (line 122) | def test_sets_runtime_protocol(self, tmp_path): method test_memory_enabled (line 131) | def test_memory_enabled(self, tmp_path): method test_memory_event_expiry_days (line 140) | def test_memory_event_expiry_days(self, tmp_path): method test_memory_is_long_term (line 149) | def test_memory_is_long_term(self, tmp_path): method test_memory_name_set_when_provided (line 158) | def test_memory_name_set_when_provided(self, tmp_path): method test_memory_name_not_set_when_none (line 167) | def test_memory_name_not_set_when_none(self, tmp_path): method test_custom_authorizer_enabled (line 178) | def test_custom_authorizer_enabled(self, tmp_path): method test_custom_authorizer_without_audience (line 197) | def test_custom_authorizer_without_audience(self, tmp_path): method test_vpc_enabled_when_vpc_mode (line 213) | def test_vpc_enabled_when_vpc_mode(self, tmp_path): method test_vpc_not_enabled_when_public (line 231) | def test_vpc_not_enabled_when_public(self, tmp_path): method test_request_header_allowlist_for_terraform (line 240) | def test_request_header_allowlist_for_terraform(self, tmp_path): method test_request_header_allowlist_warns_for_cdk (line 250) | def test_request_header_allowlist_warns_for_cdk(self, tmp_path): method test_observability_enabled (line 261) | def test_observability_enabled(self, tmp_path): method test_observability_disabled (line 270) | def test_observability_disabled(self, tmp_path): method test_invalid_entrypoint_errors (line 279) | def test_invalid_entrypoint_errors(self, tmp_path): method test_non_http_protocol_errors (line 289) | def test_non_http_protocol_errors(self, tmp_path): FILE: tests/create/test_runtime_snapshots.py function test_runtime_only_snapshots (line 42) | def test_runtime_only_snapshots(sdk_provider, model_provider, tmp_path, ... FILE: tests/create/test_util_dotenv.py class TestWriteEnvFileDirectly (line 7) | class TestWriteEnvFileDirectly: method test_creates_env_file_for_openai (line 10) | def test_creates_env_file_for_openai(self, tmp_path): method test_creates_env_file_for_anthropic (line 19) | def test_creates_env_file_for_anthropic(self, tmp_path): method test_creates_env_file_for_gemini (line 28) | def test_creates_env_file_for_gemini(self, tmp_path): method test_skips_env_file_for_bedrock (line 37) | def test_skips_env_file_for_bedrock(self, tmp_path): method test_empty_api_key_writes_empty_string (line 44) | def test_empty_api_key_writes_empty_string(self, tmp_path): method test_empty_string_api_key_writes_empty_string (line 53) | def test_empty_string_api_key_writes_empty_string(self, tmp_path): method test_env_file_has_newline (line 61) | def test_env_file_has_newline(self, tmp_path): method test_overwrites_existing_env_file (line 69) | def test_overwrites_existing_env_file(self, tmp_path): method test_api_key_case_sensitivity (line 80) | def test_api_key_case_sensitivity(self, tmp_path): FILE: tests/create/test_util_subprocess.py class TestHasUv (line 16) | class TestHasUv: method test_has_uv_when_installed (line 19) | def test_has_uv_when_installed(self): method test_has_uv_when_not_installed (line 24) | def test_has_uv_when_not_installed(self): class TestHasGit (line 30) | class TestHasGit: method test_has_git_when_installed (line 33) | def test_has_git_when_installed(self): method test_has_git_when_not_installed (line 38) | def test_has_git_when_not_installed(self): class TestCreateAndInitVenv (line 44) | class TestCreateAndInitVenv: method _create_context (line 47) | def _create_context(self, tmp_path): method test_skips_when_no_pyproject (line 70) | def test_skips_when_no_pyproject(self, tmp_path): method test_skips_when_no_uv (line 80) | def test_skips_when_no_uv(self, tmp_path): method test_creates_venv_and_syncs (line 93) | def test_creates_venv_and_syncs(self, tmp_path): method test_passes_correct_cwd (line 111) | def test_passes_correct_cwd(self, tmp_path): class TestInitGitProject (line 128) | class TestInitGitProject: method _create_context (line 131) | def _create_context(self, tmp_path): method test_initializes_git_repo (line 155) | def test_initializes_git_repo(self, mock_run, mock_has_git, tmp_path): method test_skips_if_git_dir_exists (line 179) | def test_skips_if_git_dir_exists(self, mock_run, mock_has_git, tmp_path): method test_skips_if_git_not_installed (line 195) | def test_skips_if_git_not_installed(self, mock_run, mock_has_git, tmp_... FILE: tests/create/test_util_yaml.py class TestWriteMinimalCreateWithIacProjectYaml (line 19) | class TestWriteMinimalCreateWithIacProjectYaml: method _create_iac_context (line 22) | def _create_iac_context(self, tmp_path): method test_yaml_file_created (line 45) | def test_yaml_file_created(self, tmp_path): method test_yaml_includes_agent_name (line 54) | def test_yaml_includes_agent_name(self, tmp_path): method test_yaml_includes_entrypoint (line 67) | def test_yaml_includes_entrypoint(self, tmp_path): method test_yaml_includes_deployment_type (line 79) | def test_yaml_includes_deployment_type(self, tmp_path): method test_yaml_sets_create_flag (line 91) | def test_yaml_sets_create_flag(self, tmp_path): method test_yaml_includes_source_path (line 102) | def test_yaml_includes_source_path(self, tmp_path): method test_yaml_includes_aws_section (line 114) | def test_yaml_includes_aws_section(self, tmp_path): method test_yaml_includes_bedrock_agentcore_section (line 127) | def test_yaml_includes_bedrock_agentcore_section(self, tmp_path): class TestWriteMinimalCreateRuntimeYaml (line 142) | class TestWriteMinimalCreateRuntimeYaml: method _create_runtime_context (line 145) | def _create_runtime_context(self, tmp_path, model_provider=ModelProvid... method test_yaml_file_created (line 171) | def test_yaml_file_created(self, tmp_path): method test_yaml_includes_agent_name (line 180) | def test_yaml_includes_agent_name(self, tmp_path): method test_yaml_includes_api_key_env_var_for_openai (line 192) | def test_yaml_includes_api_key_env_var_for_openai(self, tmp_path): method test_yaml_no_api_key_env_var_for_bedrock (line 204) | def test_yaml_no_api_key_env_var_for_bedrock(self, tmp_path): method test_yaml_memory_works_stm (line 217) | def test_yaml_memory_works_stm(self, tmp_path): method test_yaml_memory_works_ltm (line 230) | def test_yaml_memory_works_ltm(self, tmp_path): method test_yaml_includes_aws_auto_create_settings (line 243) | def test_yaml_includes_aws_auto_create_settings(self, tmp_path): FILE: tests/notebook/runtime/test_bedrock_agentcore.py class TestBedrockAgentCoreNotebook (line 11) | class TestBedrockAgentCoreNotebook: method test_bedrock_agentcore_initialization (line 14) | def test_bedrock_agentcore_initialization(self): method test_configure_success (line 19) | def test_configure_success(self, mock_bedrock_agentcore_app, mock_boto... method test_configure_with_requirements_generation (line 60) | def test_configure_with_requirements_generation(self, tmp_path): method test_configure_with_code_build_execution_role (line 91) | def test_configure_with_code_build_execution_role(self, tmp_path): method test_launch_without_config (line 119) | def test_launch_without_config(self): method test_launch_local (line 126) | def test_launch_local(self, tmp_path): method test_launch_local_build (line 170) | def test_launch_local_build(self, tmp_path): method test_launch_mutually_exclusive_flags (line 211) | def test_launch_mutually_exclusive_flags(self, tmp_path): method test_launch_cloud (line 233) | def test_launch_cloud(self, tmp_path): method test_launch_with_auto_update_on_conflict (line 273) | def test_launch_with_auto_update_on_conflict(self, tmp_path): method test_configure_with_disable_otel (line 314) | def test_configure_with_disable_otel(self, tmp_path): method test_configure_default_otel (line 342) | def test_configure_default_otel(self, tmp_path): method test_invoke_without_config (line 370) | def test_invoke_without_config(self): method test_invoke_success (line 377) | def test_invoke_success(self, tmp_path): method test_invoke_with_bearer_token (line 419) | def test_invoke_with_bearer_token(self, tmp_path): method test_status_without_config (line 460) | def test_status_without_config(self): method test_status_success (line 467) | def test_status_success(self, tmp_path): method test_invoke_unicode_payload (line 492) | def test_invoke_unicode_payload(self, tmp_path): method test_invoke_unicode_response (line 541) | def test_invoke_unicode_response(self, tmp_path): method test_invoke_unicode_mixed_content (line 587) | def test_invoke_unicode_mixed_content(self, tmp_path): method test_invoke_unicode_edge_cases (line 649) | def test_invoke_unicode_edge_cases(self, tmp_path): method test_help_deployment_modes (line 714) | def test_help_deployment_modes(self, capsys): method test_launch_docker_error_local_mode (line 730) | def test_launch_docker_error_local_mode(self, tmp_path): method test_destroy_without_config (line 750) | def test_destroy_without_config(self): method test_destroy_with_parameters (line 767) | def test_destroy_with_parameters( method test_destroy_success (line 816) | def test_destroy_success(self, tmp_path): method test_destroy_dry_run (line 856) | def test_destroy_dry_run(self, tmp_path): method test_destroy_always_forces_in_notebook (line 894) | def test_destroy_always_forces_in_notebook(self, tmp_path): method test_destroy_with_delete_ecr_repo (line 928) | def test_destroy_with_delete_ecr_repo(self, tmp_path): method test_destroy_combined_parameters (line 962) | def test_destroy_combined_parameters(self, tmp_path): method test_destroy_with_warnings_and_errors (line 1004) | def test_destroy_with_warnings_and_errors(self, tmp_path, warnings, er... method test_destroy_operation_exception (line 1047) | def test_destroy_operation_exception(self, tmp_path): method test_destroy_logging_output (line 1071) | def test_destroy_logging_output(self, tmp_path, caplog): method test_destroy_dry_run_logging (line 1103) | def test_destroy_dry_run_logging(self, tmp_path, caplog): method test_destroy_with_delete_ecr_repo_logging (line 1134) | def test_destroy_with_delete_ecr_repo_logging(self, tmp_path, caplog): method test_configure_with_vpc_parameters (line 1164) | def test_configure_with_vpc_parameters(self, tmp_path): method test_configure_vpc_validation_errors (line 1201) | def test_configure_vpc_validation_errors(self, tmp_path): method test_configure_vpc_subnet_format_validation_notebook (line 1228) | def test_configure_vpc_subnet_format_validation_notebook(self, tmp_path): method test_configure_vpc_security_group_format_validation_notebook (line 1255) | def test_configure_vpc_security_group_format_validation_notebook(self,... method test_configure_vpc_resources_without_flag_error (line 1282) | def test_configure_vpc_resources_without_flag_error(self, tmp_path): method test_help_vpc_networking (line 1298) | def test_help_vpc_networking(self, capsys): FILE: tests/notebook/runtime/test_bedrock_agentcore_code_zip.py class TestBedrockAgentCoreCodeZip (line 10) | class TestBedrockAgentCoreCodeZip: method test_configure_direct_code_deploy_success (line 13) | def test_configure_direct_code_deploy_success(self, mock_bedrock_agent... method test_configure_direct_code_deploy_with_requirements (line 48) | def test_configure_direct_code_deploy_with_requirements( method test_configure_direct_code_deploy_missing_runtime_type (line 80) | def test_configure_direct_code_deploy_missing_runtime_type( method test_launch_direct_code_deploy_local_mode (line 97) | def test_launch_direct_code_deploy_local_mode(self, mock_bedrock_agent... FILE: tests/operations/evaluation/test_control_plane_client.py function mock_boto_client (line 24) | def mock_boto_client(): function valid_config (line 30) | def valid_config(): function evaluator_list_response (line 38) | def evaluator_list_response(): function evaluator_details_response (line 61) | def evaluator_details_response(): class TestInitialization (line 80) | class TestInitialization: method test_init_basic (line 84) | def test_init_basic(self, mock_boto3_client): method test_init_with_custom_endpoint (line 107) | def test_init_with_custom_endpoint(self, mock_boto3_client): method test_init_with_env_var (line 119) | def test_init_with_env_var(self, mock_boto3_client): method test_init_with_mock_client (line 125) | def test_init_with_mock_client(self, mock_boto_client): method test_init_various_regions (line 141) | def test_init_various_regions(self, mock_boto3_client, region): class TestListEvaluators (line 155) | class TestListEvaluators: method test_list_evaluators_default (line 158) | def test_list_evaluators_default(self, mock_boto_client, evaluator_lis... method test_list_evaluators_custom_max (line 170) | def test_list_evaluators_custom_max(self, mock_boto_client, max_results): method test_list_evaluators_empty_result (line 179) | def test_list_evaluators_empty_result(self, mock_boto_client): method test_list_evaluators_with_builtin_and_custom (line 188) | def test_list_evaluators_with_builtin_and_custom(self, mock_boto_clien... class TestGetEvaluator (line 212) | class TestGetEvaluator: method test_get_evaluator_success (line 215) | def test_get_evaluator_success(self, mock_boto_client, evaluator_detai... method test_get_evaluator_various_ids (line 237) | def test_get_evaluator_various_ids(self, mock_boto_client, evaluator_id): method test_get_evaluator_includes_config (line 247) | def test_get_evaluator_includes_config(self, mock_boto_client, evaluat... class TestCreateEvaluator (line 265) | class TestCreateEvaluator: method test_create_evaluator_minimal (line 268) | def test_create_evaluator_minimal(self, mock_boto_client, valid_config): method test_create_evaluator_with_levels (line 288) | def test_create_evaluator_with_levels(self, mock_boto_client, valid_co... method test_create_evaluator_with_description (line 298) | def test_create_evaluator_with_description(self, mock_boto_client, val... method test_create_evaluator_without_description (line 309) | def test_create_evaluator_without_description(self, mock_boto_client, ... method test_create_evaluator_empty_string_description (line 319) | def test_create_evaluator_empty_string_description(self, mock_boto_cli... class TestUpdateEvaluator (line 336) | class TestUpdateEvaluator: method test_update_evaluator_description_only (line 339) | def test_update_evaluator_description_only(self, mock_boto_client, eva... method test_update_evaluator_config_only (line 355) | def test_update_evaluator_config_only(self, mock_boto_client, valid_co... method test_update_evaluator_both_fields (line 369) | def test_update_evaluator_both_fields(self, mock_boto_client, valid_co... method test_update_evaluator_description_no_existing_config (line 383) | def test_update_evaluator_description_no_existing_config(self, mock_bo... method test_update_evaluator_neither_field (line 400) | def test_update_evaluator_neither_field(self, mock_boto_client): class TestDeleteEvaluator (line 420) | class TestDeleteEvaluator: method test_delete_evaluator_success (line 423) | def test_delete_evaluator_success(self, mock_boto_client): method test_delete_evaluator_various_ids (line 441) | def test_delete_evaluator_various_ids(self, mock_boto_client, evaluato... FILE: tests/operations/evaluation/test_create_role.py class TestGenerateDeterministicSuffix (line 19) | class TestGenerateDeterministicSuffix: method test_generates_consistent_suffix (line 22) | def test_generates_consistent_suffix(self): method test_different_inputs_generate_different_suffixes (line 30) | def test_different_inputs_generate_different_suffixes(self): method test_generates_lowercase (line 37) | def test_generates_lowercase(self): method test_custom_length (line 43) | def test_custom_length(self): class TestGetOrCreateEvaluationExecutionRole (line 55) | class TestGetOrCreateEvaluationExecutionRole: method test_creates_new_role_when_not_exists (line 59) | def test_creates_new_role_when_not_exists(self, mock_sleep): method test_reuses_existing_role (line 81) | def test_reuses_existing_role(self): method test_uses_custom_role_name (line 101) | def test_uses_custom_role_name(self, mock_sleep): method test_generates_role_name_from_config (line 125) | def test_generates_role_name_from_config(self, mock_sleep): method test_attaches_trust_policy_with_correct_principals (line 146) | def test_attaches_trust_policy_with_correct_principals(self, mock_sleep): method test_attaches_execution_permissions (line 169) | def test_attaches_execution_permissions(self, mock_sleep): method test_handles_entity_already_exists_race_condition (line 197) | def test_handles_entity_already_exists_race_condition(self, mock_sleep): method test_handles_entity_already_exists_but_get_fails (line 222) | def test_handles_entity_already_exists_but_get_fails(self): method test_handles_access_denied_error (line 243) | def test_handles_access_denied_error(self): method test_handles_limit_exceeded_error (line 260) | def test_handles_limit_exceeded_error(self): method test_handles_other_create_error (line 277) | def test_handles_other_create_error(self): method test_handles_other_get_role_error (line 294) | def test_handles_other_get_role_error(self): class TestAttachInlinePolicy (line 314) | class TestAttachInlinePolicy: method test_attaches_policy_successfully (line 317) | def test_attaches_policy_successfully(self): method test_handles_malformed_policy_error (line 330) | def test_handles_malformed_policy_error(self): method test_handles_limit_exceeded_error (line 343) | def test_handles_limit_exceeded_error(self): method test_handles_other_error (line 356) | def test_handles_other_error(self): FILE: tests/operations/evaluation/test_data_plane_client.py function mock_boto_client (line 25) | def mock_boto_client(): function sample_spans (line 31) | def sample_spans(): function evaluation_api_response (line 51) | def evaluation_api_response(): class TestInitialization (line 75) | class TestInitialization: method test_init_basic (line 79) | def test_init_basic(self, mock_boto3_client): method test_init_with_custom_endpoint (line 88) | def test_init_with_custom_endpoint(self, mock_boto3_client): method test_init_with_env_var (line 100) | def test_init_with_env_var(self, mock_boto3_client): method test_init_with_mock_client (line 106) | def test_init_with_mock_client(self, mock_boto_client): method test_init_configures_retry (line 113) | def test_init_configures_retry(self, mock_boto3_client): method test_init_various_regions (line 132) | def test_init_various_regions(self, mock_boto3_client, region): class TestEvaluate (line 144) | class TestEvaluate: method test_evaluate_success (line 147) | def test_evaluate_success(self, mock_boto_client, sample_spans, evalua... method test_evaluate_call_structure (line 158) | def test_evaluate_call_structure(self, mock_boto_client, sample_spans): method test_evaluate_without_target (line 172) | def test_evaluate_without_target(self, mock_boto_client, sample_spans): method test_evaluate_with_target (line 191) | def test_evaluate_with_target(self, mock_boto_client, sample_spans, ta... method test_evaluate_various_evaluator_ids (line 210) | def test_evaluate_various_evaluator_ids(self, mock_boto_client, sample... method test_evaluate_empty_spans (line 220) | def test_evaluate_empty_spans(self, mock_boto_client): method test_evaluate_with_evaluation_reference_inputs (line 230) | def test_evaluate_with_evaluation_reference_inputs(self, mock_boto_cli... method test_evaluate_multiple_results (line 252) | def test_evaluate_multiple_results(self, mock_boto_client, sample_spans): class TestErrorHandling (line 285) | class TestErrorHandling: method test_evaluate_client_error (line 297) | def test_evaluate_client_error(self, mock_boto_client, sample_spans, e... method test_evaluate_error_includes_request_id (line 308) | def test_evaluate_error_includes_request_id(self, mock_boto_client, sa... method test_evaluate_error_missing_metadata (line 325) | def test_evaluate_error_missing_metadata(self, mock_boto_client, sampl... method test_evaluate_generic_exception (line 335) | def test_evaluate_generic_exception(self, mock_boto_client, sample_spa... class TestResponseHandling (line 350) | class TestResponseHandling: method test_evaluate_empty_results (line 353) | def test_evaluate_empty_results(self, mock_boto_client, sample_spans): method test_evaluate_preserves_response_metadata (line 362) | def test_evaluate_preserves_response_metadata(self, mock_boto_client, ... method test_evaluate_result_structure (line 372) | def test_evaluate_result_structure(self, mock_boto_client, sample_span... class TestIntegration (line 392) | class TestIntegration: method test_evaluate_full_workflow (line 395) | def test_evaluate_full_workflow(self, mock_boto_client, sample_spans, ... method test_evaluate_with_retry_success (line 417) | def test_evaluate_with_retry_success(self, mock_boto_client, sample_sp... FILE: tests/operations/evaluation/test_evaluator_processor.py function mock_client (line 33) | def mock_client(): function valid_config (line 39) | def valid_config(): function evaluator_details (line 50) | def evaluator_details(): class TestFilteringAndValidation (line 69) | class TestFilteringAndValidation: method test_filter_custom_evaluators (line 92) | def test_filter_custom_evaluators(self, evaluators, expected_count): method test_is_builtin_evaluator (line 111) | def test_is_builtin_evaluator(self, evaluator_id, expected): method test_validate_evaluator_config_valid (line 117) | def test_validate_evaluator_config_valid(self, valid_config): method test_validate_evaluator_config_invalid (line 131) | def test_validate_evaluator_config_invalid(self, invalid_config): class TestEvaluatorRetrieval (line 142) | class TestEvaluatorRetrieval: method test_get_evaluator_for_duplication_success (line 145) | def test_get_evaluator_for_duplication_success(self, mock_client, eval... method test_get_evaluator_for_duplication_builtin_fails (line 156) | def test_get_evaluator_for_duplication_builtin_fails(self, mock_client): method test_get_evaluator_for_duplication_invalid_config (line 164) | def test_get_evaluator_for_duplication_invalid_config(self, mock_client): method test_get_evaluator_for_duplication_missing_fields (line 184) | def test_get_evaluator_for_duplication_missing_fields( class TestEvaluatorCreation (line 206) | class TestEvaluatorCreation: method test_create_evaluator_basic (line 209) | def test_create_evaluator_basic(self, mock_client, valid_config): method test_create_evaluator_with_levels (line 224) | def test_create_evaluator_with_levels(self, mock_client, valid_config,... method test_create_evaluator_with_description (line 233) | def test_create_evaluator_with_description(self, mock_client, valid_co... method test_create_evaluator_invalid_config (line 242) | def test_create_evaluator_invalid_config(self, mock_client): method test_duplicate_evaluator_success (line 252) | def test_duplicate_evaluator_success(self, mock_client, evaluator_deta... method test_duplicate_evaluator_with_new_description (line 267) | def test_duplicate_evaluator_with_new_description(self, mock_client, e... method test_duplicate_evaluator_uses_source_description (line 279) | def test_duplicate_evaluator_uses_source_description(self, mock_client... method test_duplicate_evaluator_builtin_fails (line 289) | def test_duplicate_evaluator_builtin_fails(self, mock_client): class TestEvaluatorUpdate (line 300) | class TestEvaluatorUpdate: method test_update_evaluator_description_only (line 303) | def test_update_evaluator_description_only(self, mock_client): method test_update_evaluator_config_only (line 314) | def test_update_evaluator_config_only(self, mock_client, valid_config): method test_update_evaluator_both_fields (line 324) | def test_update_evaluator_both_fields(self, mock_client, valid_config): method test_update_evaluator_builtin_fails (line 334) | def test_update_evaluator_builtin_fails(self, mock_client, valid_config): method test_update_evaluator_no_changes_fails (line 341) | def test_update_evaluator_no_changes_fails(self, mock_client): method test_update_evaluator_invalid_config (line 348) | def test_update_evaluator_invalid_config(self, mock_client): method test_update_evaluator_instructions (line 357) | def test_update_evaluator_instructions(self, mock_client, evaluator_de... method test_update_evaluator_instructions_strips_whitespace (line 374) | def test_update_evaluator_instructions_strips_whitespace(self, mock_cl... method test_update_evaluator_instructions_invalid_config (line 387) | def test_update_evaluator_instructions_invalid_config(self, mock_client): class TestEvaluatorDeletion (line 404) | class TestEvaluatorDeletion: method test_delete_evaluator_success (line 407) | def test_delete_evaluator_success(self, mock_client): method test_delete_evaluator_builtin_fails (line 424) | def test_delete_evaluator_builtin_fails(self, mock_client, builtin_id): class TestListAndQuery (line 437) | class TestListAndQuery: method test_list_evaluators_default (line 440) | def test_list_evaluators_default(self, mock_client): method test_list_evaluators_custom_max (line 452) | def test_list_evaluators_custom_max(self, mock_client, max_results): method test_get_evaluator (line 460) | def test_get_evaluator(self, mock_client, evaluator_details): method test_get_evaluator_various_ids (line 478) | def test_get_evaluator_various_ids(self, mock_client, evaluator_id): FILE: tests/operations/evaluation/test_models.py function sample_spans (line 21) | def sample_spans(): function sample_api_response (line 40) | def sample_api_response(): class TestEvaluationRequest (line 59) | class TestEvaluationRequest: method test_init_basic (line 62) | def test_init_basic(self, sample_spans): method test_init_with_target (line 70) | def test_init_with_target(self, sample_spans): method test_to_api_request_without_target (line 87) | def test_to_api_request_without_target(self, evaluator_id, expected_id... method test_to_api_request_with_target (line 106) | def test_to_api_request_with_target(self, target, sample_spans): method test_to_api_request_empty_spans (line 117) | def test_to_api_request_empty_spans(self): method test_to_api_request_with_evaluation_reference_inputs (line 125) | def test_to_api_request_with_evaluation_reference_inputs(self, sample_... method test_to_api_request_without_reference_inputs (line 149) | def test_to_api_request_without_reference_inputs(self, sample_spans): class TestReferenceInputs (line 166) | class TestReferenceInputs: method test_defaults (line 169) | def test_defaults(self): method test_to_api_dict_all_fields (line 177) | def test_to_api_dict_all_fields(self): method test_to_api_dict_partial (line 200) | def test_to_api_dict_partial(self): method test_to_api_dict_empty (line 214) | def test_to_api_dict_empty(self): method test_expected_response_str_skipped (line 222) | def test_expected_response_str_skipped(self): method test_expected_response_dict (line 230) | def test_expected_response_dict(self): method test_expected_response_dict_multiple_traces (line 240) | def test_expected_response_dict_multiple_traces(self): class TestEvaluationResult (line 263) | class TestEvaluationResult: method test_init_basic (line 266) | def test_init_basic(self): method test_init_with_all_fields (line 282) | def test_init_with_all_fields(self): method test_from_api_response (line 344) | def test_from_api_response(self, api_response, expected_id, expected_v... method test_from_api_response_with_token_usage (line 352) | def test_from_api_response_with_token_usage(self, sample_api_response): method test_from_api_response_missing_fields (line 361) | def test_from_api_response_missing_fields(self): method test_from_api_response_with_error (line 377) | def test_from_api_response_with_error(self): method test_has_error (line 402) | def test_has_error(self, error_value, expected): class TestEvaluationResults (line 421) | class TestEvaluationResults: method test_init_defaults (line 424) | def test_init_defaults(self): method test_init_with_ids (line 433) | def test_init_with_ids(self): method test_add_result (line 440) | def test_add_result(self): method test_add_multiple_results (line 456) | def test_add_multiple_results(self): method test_has_errors (line 483) | def test_has_errors(self, results_data, expected_has_errors): method test_get_successful_results (line 500) | def test_get_successful_results(self): method test_get_failed_results (line 534) | def test_get_failed_results(self): method test_to_dict_basic (line 568) | def test_to_dict_basic(self): method test_to_dict_with_summary (line 592) | def test_to_dict_with_summary(self): method test_to_dict_with_input_data (line 629) | def test_to_dict_with_input_data(self): method test_to_dict_without_input_data (line 640) | def test_to_dict_without_input_data(self): method test_to_dict_result_fields (line 648) | def test_to_dict_result_fields(self): FILE: tests/operations/evaluation/test_on_demand_processor.py function mock_data_plane_client (line 35) | def mock_data_plane_client(): function mock_control_plane_client (line 41) | def mock_control_plane_client(): function processor (line 47) | def processor(mock_data_plane_client, mock_control_plane_client): function sample_trace_data (line 53) | def sample_trace_data(): class TestInitialization (line 105) | class TestInitialization: method test_init_with_both_clients (line 108) | def test_init_with_both_clients(self, mock_data_plane_client, mock_con... method test_init_without_control_plane_client (line 115) | def test_init_without_control_plane_client(self, mock_data_plane_client): class TestGetLatestSession (line 128) | class TestGetLatestSession: method test_get_latest_session_success (line 132) | def test_get_latest_session_success(self, mock_obs_client_class, proce... method test_get_latest_session_validation (line 153) | def test_get_latest_session_validation(self, processor, agent_id, regi... method test_get_latest_session_no_sessions (line 159) | def test_get_latest_session_no_sessions(self, mock_obs_client_class, p... method test_get_latest_session_error_handling (line 170) | def test_get_latest_session_error_handling(self, mock_obs_client_class... class TestFetchSessionData (line 189) | class TestFetchSessionData: method test_fetch_session_data_validation (line 200) | def test_fetch_session_data_validation(self, processor, session_id, ag... method test_fetch_session_data_success (line 206) | def test_fetch_session_data_success(self, mock_obs_client_class, proce... method test_fetch_session_data_no_spans (line 226) | def test_fetch_session_data_no_spans(self, mock_obs_client_class, proc... class TestSpanProcessing (line 241) | class TestSpanProcessing: method test_extract_raw_spans (line 244) | def test_extract_raw_spans(self, processor, sample_trace_data): method test_filter_relevant_spans (line 253) | def test_filter_relevant_spans(self, processor): method test_filter_relevant_spans_scopes (line 293) | def test_filter_relevant_spans_scopes(self, processor, scope_name, sho... method test_count_span_types (line 304) | def test_count_span_types(self, processor): class TestTraceFiltering (line 327) | class TestTraceFiltering: method test_filter_traces_up_to (line 330) | def test_filter_traces_up_to(self, processor): method test_get_most_recent_spans (line 354) | def test_get_most_recent_spans(self, processor, sample_trace_data): method test_get_most_recent_spans_respects_max_items (line 367) | def test_get_most_recent_spans_respects_max_items(self, processor): class TestEvaluatorExecution (line 398) | class TestEvaluatorExecution: method test_determine_spans_for_evaluator_session_level (line 401) | def test_determine_spans_for_evaluator_session_level(self, processor, ... method test_determine_spans_for_evaluator_trace_level_with_trace (line 409) | def test_determine_spans_for_evaluator_trace_level_with_trace(self, pr... method test_determine_spans_for_evaluator_trace_level_without_trace (line 419) | def test_determine_spans_for_evaluator_trace_level_without_trace(self,... method test_determine_spans_for_evaluator_invalid_level (line 427) | def test_determine_spans_for_evaluator_invalid_level(self, processor, ... method test_execute_evaluators_success (line 432) | def test_execute_evaluators_success(self, processor, mock_data_plane_c... method test_execute_evaluators_multiple (line 455) | def test_execute_evaluators_multiple(self, processor, mock_data_plane_... method test_execute_evaluators_with_error (line 480) | def test_execute_evaluators_with_error(self, processor, mock_data_plan... method test_execute_evaluators_empty_results (line 493) | def test_execute_evaluators_empty_results(self, processor, mock_data_p... method test_execute_evaluators_with_reference_inputs (line 504) | def test_execute_evaluators_with_reference_inputs(self, processor, moc... method test_execute_evaluators_expected_response_str_resolves_to_last_trace (line 534) | def test_execute_evaluators_expected_response_str_resolves_to_last_tra... method test_execute_evaluators_expected_response_dict_uses_own_trace_id (line 567) | def test_execute_evaluators_expected_response_dict_uses_own_trace_id(s... method test_execute_evaluators_expected_response_str_no_spans_skipped (line 598) | def test_execute_evaluators_expected_response_str_no_spans_skipped(sel... class TestEvaluateSession (line 620) | class TestEvaluateSession: method test_evaluate_session_validation (line 623) | def test_evaluate_session_validation(self, processor): method test_evaluate_session_too_many_evaluators (line 630) | def test_evaluate_session_too_many_evaluators(self, processor): method test_evaluate_session_success (line 642) | def test_evaluate_session_success(self, mock_execute, mock_fetch, proc... method test_evaluate_session_no_spans (line 681) | def test_evaluate_session_no_spans(self, mock_fetch, processor): method test_evaluate_session_with_reference_inputs (line 698) | def test_evaluate_session_with_reference_inputs(self, mock_execute, mo... method test_evaluate_session_trace_id_does_not_leak_into_reference_inputs (line 742) | def test_evaluate_session_trace_id_does_not_leak_into_reference_inputs( class TestEvaluatorGrouping (line 813) | class TestEvaluatorGrouping: method test_group_evaluators_by_level (line 816) | def test_group_evaluators_by_level(self, processor, mock_control_plane... method test_group_evaluators_error_defaults_to_trace (line 833) | def test_group_evaluators_error_defaults_to_trace(self, processor, moc... method test_evaluate_session_without_control_plane_client (line 842) | def test_evaluate_session_without_control_plane_client(self, mock_data... FILE: tests/operations/evaluation/test_online_processor.py class TestCreateOnlineEvaluationConfig (line 24) | class TestCreateOnlineEvaluationConfig: method test_create_with_minimal_params (line 27) | def test_create_with_minimal_params(self): method test_create_with_all_params (line 40) | def test_create_with_all_params(self): method test_create_requires_config_name (line 67) | def test_create_requires_config_name(self): method test_create_requires_agent_id (line 74) | def test_create_requires_agent_id(self): method test_create_validates_sampling_rate_low (line 81) | def test_create_validates_sampling_rate_low(self): method test_create_validates_sampling_rate_high (line 90) | def test_create_validates_sampling_rate_high(self): method test_create_with_default_evaluators (line 99) | def test_create_with_default_evaluators(self): class TestGetOnlineEvaluationConfig (line 122) | class TestGetOnlineEvaluationConfig: method test_get_config_success (line 125) | def test_get_config_success(self): method test_get_config_requires_config_id (line 140) | def test_get_config_requires_config_id(self): method test_get_config_whitespace_config_id (line 147) | def test_get_config_whitespace_config_id(self): class TestListOnlineEvaluationConfigs (line 160) | class TestListOnlineEvaluationConfigs: method test_list_all_configs (line 163) | def test_list_all_configs(self): method test_list_configs_filtered_by_agent (line 178) | def test_list_configs_filtered_by_agent(self): method test_list_configs_with_max_results (line 190) | def test_list_configs_with_max_results(self): method test_list_configs_empty_result (line 200) | def test_list_configs_empty_result(self): class TestUpdateOnlineEvaluationConfig (line 215) | class TestUpdateOnlineEvaluationConfig: method test_update_status (line 218) | def test_update_status(self): method test_update_sampling_rate (line 231) | def test_update_sampling_rate(self): method test_update_evaluator_list (line 241) | def test_update_evaluator_list(self): method test_update_description (line 253) | def test_update_description(self): method test_update_requires_config_id (line 263) | def test_update_requires_config_id(self): method test_update_validates_sampling_rate_low (line 270) | def test_update_validates_sampling_rate_low(self): method test_update_validates_sampling_rate_high (line 277) | def test_update_validates_sampling_rate_high(self): method test_update_validates_status (line 284) | def test_update_validates_status(self): method test_update_all_fields (line 291) | def test_update_all_fields(self): class TestDeleteOnlineEvaluationConfig (line 316) | class TestDeleteOnlineEvaluationConfig: method test_delete_without_role (line 319) | def test_delete_without_role(self): method test_delete_requires_config_id (line 330) | def test_delete_requires_config_id(self): method test_delete_with_role (line 338) | def test_delete_with_role(self, mock_boto3): method test_delete_with_role_no_policies (line 362) | def test_delete_with_role_no_policies(self, mock_boto3): method test_delete_with_role_get_config_fails (line 382) | def test_delete_with_role_get_config_fails(self, mock_boto3): method test_delete_with_role_no_role_arn_in_response (line 396) | def test_delete_with_role_no_role_arn_in_response(self, mock_boto3): method test_delete_role_nosuchentity_error (line 409) | def test_delete_role_nosuchentity_error(self, mock_boto3): method test_delete_role_deleteconflict_error (line 429) | def test_delete_role_deleteconflict_error(self, mock_boto3): method test_delete_role_other_error (line 448) | def test_delete_role_other_error(self, mock_boto3): method test_delete_role_policy_error (line 467) | def test_delete_role_policy_error(self, mock_boto3): method test_delete_role_multiple_policies (line 486) | def test_delete_role_multiple_policies(self, mock_boto3): FILE: tests/operations/gateway/test_gateway_client.py function mock_boto_client (line 14) | def mock_boto_client(): function mock_session (line 21) | def mock_session(): function gateway_client (line 28) | def gateway_client(mock_boto_client, mock_session): class TestGatewayClient (line 33) | class TestGatewayClient: method test_setup_gateway_lambda (line 36) | def test_setup_gateway_lambda( method test_setup_gateway_openapi (line 111) | def test_setup_gateway_openapi(self, mock_create_oauth_authorizer_with... method test_error_handling (line 176) | def test_error_handling(self, mock_create_oauth_authorizer_with_cognit... method test_create_gateway_without_policy_config (line 202) | def test_create_gateway_without_policy_config( method test_create_gateway_with_policy_config_enforce (line 237) | def test_create_gateway_with_policy_config_enforce( method test_create_gateway_with_policy_config_log_only (line 281) | def test_create_gateway_with_policy_config_log_only( method test_create_gateway_policy_config_structure (line 323) | def test_create_gateway_policy_config_structure( method test_delete_gateway_with_targets_check (line 372) | def test_delete_gateway_with_targets_check(self, gateway_client): method test_delete_gateway_with_force_flag (line 389) | def test_delete_gateway_with_force_flag(self, gateway_client): method test_delete_gateway_by_arn (line 409) | def test_delete_gateway_by_arn(self, gateway_client): method test_delete_gateway_by_name (line 422) | def test_delete_gateway_by_name(self, gateway_client): method test_delete_gateway_name_not_found (line 435) | def test_delete_gateway_name_not_found(self, gateway_client): method test_delete_gateway_no_parameters (line 443) | def test_delete_gateway_no_parameters(self, gateway_client): method test_delete_gateway_target_deletion_error (line 450) | def test_delete_gateway_target_deletion_error(self, gateway_client): method test_delete_gateway_target_success (line 464) | def test_delete_gateway_target_success(self, gateway_client): method test_delete_gateway_target_by_name (line 477) | def test_delete_gateway_target_by_name(self, gateway_client): method test_delete_gateway_target_name_not_found (line 496) | def test_delete_gateway_target_name_not_found(self, gateway_client): method test_delete_gateway_target_no_target_specified (line 508) | def test_delete_gateway_target_no_target_specified(self, gateway_client): method test_delete_gateway_target_with_gateway_name (line 515) | def test_delete_gateway_target_with_gateway_name(self, gateway_client): method test_list_gateways_basic (line 529) | def test_list_gateways_basic(self, gateway_client): method test_list_gateways_with_name_filter (line 548) | def test_list_gateways_with_name_filter(self, gateway_client): method test_list_gateways_with_max_results (line 569) | def test_list_gateways_with_max_results(self, gateway_client): method test_list_gateways_with_pagination (line 585) | def test_list_gateways_with_pagination(self, gateway_client): method test_list_gateways_error (line 601) | def test_list_gateways_error(self, gateway_client): method test_list_gateway_targets_basic (line 612) | def test_list_gateway_targets_basic(self, gateway_client): method test_list_gateway_targets_with_gateway_name (line 628) | def test_list_gateway_targets_with_gateway_name(self, gateway_client): method test_list_gateway_targets_with_pagination (line 642) | def test_list_gateway_targets_with_pagination(self, gateway_client): method test_list_gateway_targets_error (line 657) | def test_list_gateway_targets_error(self, gateway_client): method test_get_gateway_target_basic (line 668) | def test_get_gateway_target_basic(self, gateway_client): method test_get_gateway_target_with_target_name (line 682) | def test_get_gateway_target_with_target_name(self, gateway_client): method test_get_gateway_target_with_gateway_arn (line 700) | def test_get_gateway_target_with_gateway_arn(self, gateway_client): method test_get_gateway_target_no_target_specified (line 714) | def test_get_gateway_target_no_target_specified(self, gateway_client): method test_get_gateway_target_error (line 721) | def test_get_gateway_target_error(self, gateway_client): method test_get_gateway_id_by_name_found (line 732) | def test_get_gateway_id_by_name_found(self, gateway_client): method test_get_gateway_id_by_name_not_found (line 749) | def test_get_gateway_id_by_name_not_found(self, gateway_client): method test_get_gateway_id_by_name_with_pagination (line 762) | def test_get_gateway_id_by_name_with_pagination(self, gateway_client): method test_get_gateway_id_by_name_error (line 778) | def test_get_gateway_id_by_name_error(self, gateway_client): method test_get_gateway_with_identifier (line 788) | def test_get_gateway_with_identifier(self, gateway_client): method test_get_gateway_error (line 802) | def test_get_gateway_error(self, gateway_client): method test_fix_iam_permissions_success (line 813) | def test_fix_iam_permissions_success(self, gateway_client): method test_fix_iam_permissions_with_exception (line 842) | def test_fix_iam_permissions_with_exception(self, gateway_client): method test_delete_gateway_check_targets_error (line 859) | def test_delete_gateway_check_targets_error(self, gateway_client): method test_delete_gateway_target_list_error (line 871) | def test_delete_gateway_target_list_error(self, gateway_client): method test_cleanup_gateway_full_flow (line 884) | def test_cleanup_gateway_full_flow(self, mock_sleep, gateway_client): method test_cleanup_gateway_without_cognito (line 916) | def test_cleanup_gateway_without_cognito(self, mock_sleep, gateway_cli... method test_cleanup_gateway_with_target_deletion_error (line 929) | def test_cleanup_gateway_with_target_deletion_error(self, mock_sleep, ... method test_cleanup_gateway_with_gateway_deletion_error (line 941) | def test_cleanup_gateway_with_gateway_deletion_error(self, mock_sleep,... method test_cleanup_gateway_with_cognito_domain_error (line 953) | def test_cleanup_gateway_with_cognito_domain_error(self, mock_sleep, g... method test_cleanup_gateway_with_cognito_pool_error (line 975) | def test_cleanup_gateway_with_cognito_pool_error(self, mock_sleep, gat... method test_cleanup_gateway_with_remaining_targets (line 994) | def test_cleanup_gateway_with_remaining_targets(self, mock_sleep, gate... method test_cleanup_gateway_list_targets_error (line 1008) | def test_cleanup_gateway_list_targets_error(self, mock_sleep, gateway_... method test_cleanup_gateway_without_domain_prefix (line 1022) | def test_cleanup_gateway_without_domain_prefix(self, mock_sleep, gatew... FILE: tests/operations/gateway/test_gateway_client_init.py class TestGatewayClientInitialization (line 19) | class TestGatewayClientInitialization: method test_init_with_default_region (line 24) | def test_init_with_default_region(self, mock_session, mock_client): method test_init_with_custom_region (line 48) | def test_init_with_custom_region(self, mock_session, mock_client): method test_init_with_endpoint_url (line 68) | def test_init_with_endpoint_url(self, mock_session, mock_client): method test_init_logger_setup (line 88) | def test_init_logger_setup(self, mock_session, mock_client): method test_generate_random_id (line 109) | def test_generate_random_id(self): class TestCreateMCPGateway (line 121) | class TestCreateMCPGateway: method setup_method (line 124) | def setup_method(self): method test_create_mcp_gateway_with_all_parameters (line 132) | def test_create_mcp_gateway_with_all_parameters(self): method test_create_mcp_gateway_with_defaults (line 181) | def test_create_mcp_gateway_with_defaults(self): method test_create_mcp_gateway_without_semantic_search (line 224) | def test_create_mcp_gateway_without_semantic_search(self): method test_create_mcp_gateway_client_error (line 244) | def test_create_mcp_gateway_client_error(self): class TestWaitForReady (line 265) | class TestWaitForReady: method setup_method (line 268) | def setup_method(self): method test_wait_for_ready_success (line 273) | def test_wait_for_ready_success(self): method test_wait_for_ready_timeout (line 296) | def test_wait_for_ready_timeout(self): method test_wait_for_ready_failure_status (line 311) | def test_wait_for_ready_failure_status(self): method test_wait_for_ready_unknown_status (line 321) | def test_wait_for_ready_unknown_status(self): method test_wait_for_ready_no_status (line 331) | def test_wait_for_ready_no_status(self): class TestCreateMCPGatewayTarget (line 342) | class TestCreateMCPGatewayTarget: method setup_method (line 345) | def setup_method(self): method test_create_mcp_gateway_target_lambda_with_defaults (line 360) | def test_create_mcp_gateway_target_lambda_with_defaults(self): method test_create_mcp_gateway_target_openapi_schema (line 400) | def test_create_mcp_gateway_target_openapi_schema(self): method test_create_mcp_gateway_target_smithy_model_with_defaults (line 443) | def test_create_mcp_gateway_target_smithy_model_with_defaults(self): method test_create_mcp_gateway_target_smithy_model_unsupported_region (line 461) | def test_create_mcp_gateway_target_smithy_model_unsupported_region(self): method test_create_mcp_gateway_target_openapi_without_payload_raises_exception (line 468) | def test_create_mcp_gateway_target_openapi_without_payload_raises_exce... method test_create_mcp_gateway_target_with_explicit_name_and_payload (line 473) | def test_create_mcp_gateway_target_with_explicit_name_and_payload(self): class TestHandleLambdaTargetCreation (line 494) | class TestHandleLambdaTargetCreation: method setup_method (line 497) | def setup_method(self): method test_handle_lambda_target_creation (line 504) | def test_handle_lambda_target_creation(self): class TestHandleOpenAPITargetCredentialProviderCreation (line 528) | class TestHandleOpenAPITargetCredentialProviderCreation: method setup_method (line 531) | def setup_method(self): method test_handle_openapi_target_api_key_credentials (line 542) | def test_handle_openapi_target_api_key_credentials(self): method test_handle_openapi_target_oauth2_credentials (line 582) | def test_handle_openapi_target_oauth2_credentials(self): method test_handle_openapi_target_oauth2_credentials_without_scopes (line 628) | def test_handle_openapi_target_oauth2_credentials_without_scopes(self): method test_handle_openapi_target_invalid_credentials_raises_exception (line 648) | def test_handle_openapi_target_invalid_credentials_raises_exception(se... class TestCreateOAuthAuthorizerWithCognito (line 662) | class TestCreateOAuthAuthorizerWithCognito: method setup_method (line 665) | def setup_method(self): method test_create_oauth_authorizer_with_cognito_success (line 676) | def test_create_oauth_authorizer_with_cognito_success(self): method test_create_oauth_authorizer_with_cognito_domain_not_active (line 741) | def test_create_oauth_authorizer_with_cognito_domain_not_active(self): method test_create_oauth_authorizer_with_cognito_domain_timeout (line 771) | def test_create_oauth_authorizer_with_cognito_domain_timeout(self): method test_create_oauth_authorizer_with_cognito_exception (line 795) | def test_create_oauth_authorizer_with_cognito_exception(self): class TestGetAccessTokenForCognito (line 810) | class TestGetAccessTokenForCognito: method setup_method (line 813) | def setup_method(self): method test_get_access_token_for_cognito_success (line 827) | def test_get_access_token_for_cognito_success(self, mock_pool_manager): method test_get_access_token_for_cognito_http_error (line 856) | def test_get_access_token_for_cognito_http_error(self, mock_pool_manag... method test_get_access_token_for_cognito_general_exception (line 922) | def test_get_access_token_for_cognito_general_exception(self, mock_poo... FILE: tests/operations/gateway/test_gateway_create_role.py class TestCreateGatewayExecutionRole (line 22) | class TestCreateGatewayExecutionRole: method setup_method (line 25) | def setup_method(self): method test_create_gateway_execution_role_success (line 40) | def test_create_gateway_execution_role_success(self): method test_create_gateway_execution_role_default_name (line 69) | def test_create_gateway_execution_role_default_name(self): method test_create_gateway_execution_role_already_exists (line 90) | def test_create_gateway_execution_role_already_exists(self): method test_create_gateway_execution_role_exists_but_get_fails (line 113) | def test_create_gateway_execution_role_exists_but_get_fails(self): method test_create_gateway_execution_role_create_fails (line 135) | def test_create_gateway_execution_role_create_fails(self): method test_create_gateway_execution_role_policy_attachment_patterns (line 150) | def test_create_gateway_execution_role_policy_attachment_patterns(self): method test_create_gateway_execution_role_attach_policy_integration (line 169) | def test_create_gateway_execution_role_attach_policy_integration(self): class TestAttachPolicy (line 189) | class TestAttachPolicy: method setup_method (line 192) | def setup_method(self): method test_attach_policy_with_policy_arn (line 197) | def test_attach_policy_with_policy_arn(self): method test_attach_policy_with_policy_document_and_name (line 209) | def test_attach_policy_with_policy_document_and_name(self): method test_attach_policy_both_arn_and_document_raises_exception (line 240) | def test_attach_policy_both_arn_and_document_raises_exception(self): method test_attach_policy_document_without_name_raises_exception (line 259) | def test_attach_policy_document_without_name_raises_exception(self): method test_attach_policy_name_without_document_raises_exception (line 270) | def test_attach_policy_name_without_document_raises_exception(self): method test_attach_policy_no_parameters_raises_exception (line 281) | def test_attach_policy_no_parameters_raises_exception(self): method test_attach_policy_arn_client_error (line 290) | def test_attach_policy_arn_client_error(self): method test_attach_policy_document_create_policy_client_error (line 307) | def test_attach_policy_document_create_policy_client_error(self): method test_attach_policy_document_attach_role_policy_client_error (line 330) | def test_attach_policy_document_attach_role_policy_client_error(self): method test_attach_policy_with_json_string_policy_document (line 362) | def test_attach_policy_with_json_string_policy_document(self): method test_attach_policy_with_agentcore_full_access_policy (line 394) | def test_attach_policy_with_agentcore_full_access_policy(self): method test_attach_policy_with_existing_full_access_policy (line 421) | def test_attach_policy_with_existing_full_access_policy(self): method test_attach_policy_with_aws_managed_policies (line 456) | def test_attach_policy_with_aws_managed_policies(self): FILE: tests/operations/identity/test_helpers.py class TestCreateCognitoOAuthPool (line 24) | class TestCreateCognitoOAuthPool: method test_create_pool_basic (line 27) | def test_create_pool_basic(self): method test_create_pool_with_callback_url (line 61) | def test_create_pool_with_callback_url(self): method test_create_pool_for_runtime_auth (line 90) | def test_create_pool_for_runtime_auth(self): method test_create_pool_for_identity_3lo (line 115) | def test_create_pool_for_identity_3lo(self): class TestUpdateCognitoCallbackUrls (line 139) | class TestUpdateCognitoCallbackUrls: method test_update_adds_new_url (line 142) | def test_update_adds_new_url(self): method test_update_skips_duplicate_url (line 171) | def test_update_skips_duplicate_url(self): class TestGetCognitoAccessToken (line 195) | class TestGetCognitoAccessToken: method test_get_token_without_secret (line 198) | def test_get_token_without_secret(self): method test_get_token_with_secret (line 223) | def test_get_token_with_secret(self): class TestEnsureIdentityPermissions (line 258) | class TestEnsureIdentityPermissions: method test_ensure_permissions_success (line 261) | def test_ensure_permissions_success(self): method test_ensure_permissions_with_logger (line 309) | def test_ensure_permissions_with_logger(self): method test_ensure_permissions_failure (line 330) | def test_ensure_permissions_failure(self): class TestIdentityCognitoManager (line 351) | class TestIdentityCognitoManager: method test_init (line 354) | def test_init(self): method test_generate_random_id (line 363) | def test_generate_random_id(self): method test_create_dual_pool_setup_success (line 372) | def test_create_dual_pool_setup_success(self): method test_create_dual_pool_setup_failure (line 421) | def test_create_dual_pool_setup_failure(self): method test_create_runtime_pool (line 435) | def test_create_runtime_pool(self): method test_create_identity_pool (line 460) | def test_create_identity_pool(self): method test_wait_for_domain_success (line 488) | def test_wait_for_domain_success(self): method test_wait_for_domain_timeout (line 507) | def test_wait_for_domain_timeout(self): method test_wait_for_domain_client_error (line 524) | def test_wait_for_domain_client_error(self): method test_generate_password (line 545) | def test_generate_password(self): method test_cleanup_cognito_pools_success (line 573) | def test_cleanup_cognito_pools_success(self): method test_cleanup_cognito_pools_no_domain (line 597) | def test_cleanup_cognito_pools_no_domain(self): method test_cleanup_cognito_pools_already_deleted (line 616) | def test_cleanup_cognito_pools_already_deleted(self): method test_cleanup_cognito_pools_partial_failure (line 631) | def test_cleanup_cognito_pools_partial_failure(self): method test_delete_user_pool_success (line 656) | def test_delete_user_pool_success(self): method test_delete_user_pool_domain_deletion_error (line 674) | def test_delete_user_pool_domain_deletion_error(self): method test_create_identity_pool_m2m (line 697) | def test_create_identity_pool_m2m(self): method test_create_user_federation_pools (line 734) | def test_create_user_federation_pools(self): method test_create_m2m_pools_with_custom_scopes (line 771) | def test_create_m2m_pools_with_custom_scopes(self): class TestHelperUtilities (line 818) | class TestHelperUtilities: method test_random_suffix_default_length (line 821) | def test_random_suffix_default_length(self): method test_random_suffix_custom_length (line 827) | def test_random_suffix_custom_length(self): method test_random_suffix_uniqueness (line 833) | def test_random_suffix_uniqueness(self): method test_generate_password_default_length (line 839) | def test_generate_password_default_length(self): method test_generate_password_custom_length (line 844) | def test_generate_password_custom_length(self): method test_generate_password_complexity (line 849) | def test_generate_password_complexity(self): method test_generate_password_uniqueness (line 861) | def test_generate_password_uniqueness(self): class TestGetCognitoM2MToken (line 867) | class TestGetCognitoM2MToken: method test_get_m2m_token_without_scopes (line 870) | def test_get_m2m_token_without_scopes(self): method test_get_m2m_token_with_scopes (line 894) | def test_get_m2m_token_with_scopes(self): method test_get_m2m_token_secret_hash_calculation (line 918) | def test_get_m2m_token_secret_hash_calculation(self): method test_get_m2m_token_not_authorized_error (line 948) | def test_get_m2m_token_not_authorized_error(self): method test_get_m2m_token_other_client_error (line 978) | def test_get_m2m_token_other_client_error(self): method test_get_m2m_token_with_single_scope (line 1000) | def test_get_m2m_token_with_single_scope(self): method test_get_m2m_token_with_empty_scopes (line 1022) | def test_get_m2m_token_with_empty_scopes(self): method test_get_m2m_token_default_region (line 1045) | def test_get_m2m_token_default_region(self): class TestSetupAwsJwtFederation (line 1064) | class TestSetupAwsJwtFederation: method test_setup_federation_newly_enabled (line 1067) | def test_setup_federation_newly_enabled(self): method test_setup_federation_already_enabled (line 1092) | def test_setup_federation_already_enabled(self): method test_setup_federation_race_condition (line 1112) | def test_setup_federation_race_condition(self): method test_setup_federation_with_logger (line 1144) | def test_setup_federation_with_logger(self): class TestGetAwsJwtFederationInfo (line 1163) | class TestGetAwsJwtFederationInfo: method test_get_federation_info_enabled (line 1166) | def test_get_federation_info_enabled(self): method test_get_federation_info_disabled (line 1185) | def test_get_federation_info_disabled(self): method test_get_federation_info_error (line 1202) | def test_get_federation_info_error(self): class TestEnsureAwsJwtPermissions (line 1217) | class TestEnsureAwsJwtPermissions: method test_ensure_permissions_success (line 1220) | def test_ensure_permissions_success(self): method test_ensure_permissions_empty_audiences (line 1262) | def test_ensure_permissions_empty_audiences(self): method test_ensure_permissions_with_rs256 (line 1283) | def test_ensure_permissions_with_rs256(self): method test_ensure_permissions_with_logger (line 1305) | def test_ensure_permissions_with_logger(self): method test_ensure_permissions_failure (line 1325) | def test_ensure_permissions_failure(self): method test_ensure_permissions_single_audience (line 1344) | def test_ensure_permissions_single_audience(self): method test_ensure_permissions_custom_max_duration (line 1367) | def test_ensure_permissions_custom_max_duration(self): FILE: tests/operations/identity/test_oauth2_callback_server.py function create_test_config (line 21) | def create_test_config(tmp_path, *, agent_name="test-agent", user_id="te... class TestBedrockAgentCoreIdentity3loCallback (line 47) | class TestBedrockAgentCoreIdentity3loCallback: method test_init (line 48) | def test_init(self, tmp_path): method test_get_callback_endpoint (line 57) | def test_get_callback_endpoint(self): method test_handle_3lo_callback_missing_session_id (line 61) | def test_handle_3lo_callback_missing_session_id(self, tmp_path): method test_handle_3lo_callback_success (line 71) | def test_handle_3lo_callback_success(self, mock_identity_client, tmp_p... method test_handle_3lo_callback_missing_user_id (line 88) | def test_handle_3lo_callback_missing_user_id(self, tmp_path): method test_handle_3lo_callback_missing_region_gets_filled (line 97) | def test_handle_3lo_callback_missing_region_gets_filled(self, tmp_path): FILE: tests/operations/memory/test_formatters.py class TestStatusFormatters (line 27) | class TestStatusFormatters: method test_get_memory_status_icon_active (line 30) | def test_get_memory_status_icon_active(self): method test_get_memory_status_icon_creating (line 33) | def test_get_memory_status_icon_creating(self): method test_get_memory_status_icon_failed (line 36) | def test_get_memory_status_icon_failed(self): method test_get_memory_status_icon_unknown (line 39) | def test_get_memory_status_icon_unknown(self): method test_get_memory_status_style_active (line 42) | def test_get_memory_status_style_active(self): method test_get_memory_status_style_failed (line 45) | def test_get_memory_status_style_failed(self): method test_get_memory_status_style_unknown (line 48) | def test_get_memory_status_style_unknown(self): method test_get_strategy_type_icon (line 51) | def test_get_strategy_type_icon(self): method test_get_strategy_status_style (line 54) | def test_get_strategy_status_style(self): class TestFormatNamespaces (line 58) | class TestFormatNamespaces: method test_format_namespaces_empty (line 61) | def test_format_namespaces_empty(self): method test_format_namespaces_single (line 64) | def test_format_namespaces_single(self): method test_format_namespaces_multiple (line 67) | def test_format_namespaces_multiple(self): class TestFormatMemoryAge (line 72) | class TestFormatMemoryAge: method test_format_memory_age_none (line 75) | def test_format_memory_age_none(self): method test_format_memory_age_seconds (line 78) | def test_format_memory_age_seconds(self): method test_format_memory_age_minutes (line 83) | def test_format_memory_age_minutes(self): method test_format_memory_age_hours (line 90) | def test_format_memory_age_hours(self): method test_format_memory_age_days (line 97) | def test_format_memory_age_days(self): method test_format_memory_age_no_timestamp (line 104) | def test_format_memory_age_no_timestamp(self): method test_format_memory_age_exception (line 108) | def test_format_memory_age_exception(self): class TestExtractRecordText (line 115) | class TestExtractRecordText: method test_extract_record_text_dict_content (line 118) | def test_extract_record_text_dict_content(self): method test_extract_record_text_string_content (line 122) | def test_extract_record_text_string_content(self): method test_extract_record_text_no_text_key (line 126) | def test_extract_record_text_no_text_key(self): method test_extract_record_text_empty (line 131) | def test_extract_record_text_empty(self): class TestExtractEventText (line 136) | class TestExtractEventText: method test_extract_event_text_valid (line 139) | def test_extract_event_text_valid(self): method test_extract_event_text_no_payload (line 149) | def test_extract_event_text_no_payload(self): method test_extract_event_text_empty_payload (line 152) | def test_extract_event_text_empty_payload(self): method test_extract_event_text_no_conversational (line 155) | def test_extract_event_text_no_conversational(self): method test_extract_event_text_no_content (line 158) | def test_extract_event_text_no_content(self): method test_extract_event_text_invalid_json (line 162) | def test_extract_event_text_invalid_json(self): method test_extract_event_text_empty_message_content (line 166) | def test_extract_event_text_empty_message_content(self): class TestExtractEventRole (line 175) | class TestExtractEventRole: method test_extract_event_role_user (line 178) | def test_extract_event_role_user(self): method test_extract_event_role_assistant (line 182) | def test_extract_event_role_assistant(self): method test_extract_event_role_no_payload (line 186) | def test_extract_event_role_no_payload(self): method test_extract_event_role_no_conversational (line 189) | def test_extract_event_role_no_conversational(self): class TestExtractEventType (line 193) | class TestExtractEventType: method test_extract_event_type_conversational (line 196) | def test_extract_event_type_conversational(self): method test_extract_event_type_blob (line 200) | def test_extract_event_type_blob(self): method test_extract_event_type_empty (line 204) | def test_extract_event_type_empty(self): method test_extract_event_type_unknown (line 207) | def test_extract_event_type_unknown(self): class TestTruncation (line 212) | class TestTruncation: method test_truncate_text_short (line 215) | def test_truncate_text_short(self): method test_truncate_text_long (line 218) | def test_truncate_text_long(self): method test_truncate_text_verbose (line 222) | def test_truncate_text_verbose(self): method test_format_content_preview_newlines (line 226) | def test_format_content_preview_newlines(self): method test_format_content_preview_long (line 230) | def test_format_content_preview_long(self): class TestRenderContentPanel (line 236) | class TestRenderContentPanel: method test_render_content_panel_verbose (line 239) | def test_render_content_panel_verbose(self): method test_render_content_panel_not_verbose (line 245) | def test_render_content_panel_not_verbose(self): class TestFormatTruncationHint (line 250) | class TestFormatTruncationHint: method test_format_truncation_hint_none (line 253) | def test_format_truncation_hint_none(self): method test_format_truncation_hint_some (line 256) | def test_format_truncation_hint_some(self): class TestFormatRoleIcon (line 261) | class TestFormatRoleIcon: method test_format_role_icon_user (line 264) | def test_format_role_icon_user(self): method test_format_role_icon_assistant (line 269) | def test_format_role_icon_assistant(self): method test_format_role_icon_none (line 274) | def test_format_role_icon_none(self): method test_format_role_icon_other (line 278) | def test_format_role_icon_other(self): class TestStrategyTypeConstants (line 284) | class TestStrategyTypeConstants: method test_consolidation_wrapper_key_summary (line 287) | def test_consolidation_wrapper_key_summary(self): method test_consolidation_wrapper_key_non_summary (line 292) | def test_consolidation_wrapper_key_non_summary(self): method test_get_override_type_custom (line 298) | def test_get_override_type_custom(self): method test_get_override_type_non_custom (line 303) | def test_get_override_type_non_custom(self): class TestFormatPayloadSnippet (line 310) | class TestFormatPayloadSnippet: method test_format_payload_snippet_empty (line 313) | def test_format_payload_snippet_empty(self): method test_format_payload_snippet_short (line 319) | def test_format_payload_snippet_short(self): method test_format_payload_snippet_truncated (line 325) | def test_format_payload_snippet_truncated(self): FILE: tests/operations/memory/test_manager.py function test_manager_initialization (line 16) | def test_manager_initialization(): function test_manager_initialization_region_mismatch (line 46) | def test_manager_initialization_region_mismatch(): function test_manager_initialization_with_boto_client_config (line 57) | def test_manager_initialization_with_boto_client_config(): function test_boto_client_config_user_agent_merging (line 94) | def test_boto_client_config_user_agent_merging(): function test_boto_client_config_without_existing_user_agent (line 119) | def test_boto_client_config_without_existing_user_agent(): function test_boto_client_config_with_session_and_region (line 144) | def test_boto_client_config_with_session_and_region(): function test_boto_client_config_none_handling (line 174) | def test_boto_client_config_none_handling(): function test_create_memory (line 195) | def test_create_memory(): function test_error_handling (line 223) | def test_error_handling(): function test_memory_strategy_management (line 242) | def test_memory_strategy_management(): function test_create_memory_and_wait_success (line 280) | def test_create_memory_and_wait_success(): function test_create_memory_and_wait_timeout (line 311) | def test_create_memory_and_wait_timeout(): function test_create_memory_and_wait_failure (line 347) | def test_create_memory_and_wait_failure(): function test_list_memories (line 382) | def test_list_memories(): function test_list_memories_with_pagination (line 410) | def test_list_memories_with_pagination(): function test_delete_memory (line 458) | def test_delete_memory(): function test_get_memory_status (line 482) | def test_get_memory_status(): function test_get_memory_status_error (line 504) | def test_get_memory_status_error(): function test_add_summary_strategy (line 521) | def test_add_summary_strategy(): function test_add_user_preference_strategy (line 547) | def test_add_user_preference_strategy(): function test_add_custom_semantic_strategy (line 592) | def test_add_custom_semantic_strategy(): function test_delete_memory_and_wait (line 666) | def test_delete_memory_and_wait(): function test_update_memory_strategies (line 696) | def test_update_memory_strategies(): function test_update_memory_strategies_modify (line 722) | def test_update_memory_strategies_modify(): function test_wait_for_memory_active (line 764) | def test_wait_for_memory_active(): function test_wait_for_memory_active_failed_status (line 790) | def test_wait_for_memory_active_failed_status(): function test_wait_for_memory_active_client_error (line 817) | def test_wait_for_memory_active_client_error(): function test_wrap_configuration (line 843) | def test_wrap_configuration(): function test_wrap_configuration_basic (line 862) | def test_wrap_configuration_basic(): function test_wrap_configuration_semantic_strategy (line 877) | def test_wrap_configuration_semantic_strategy(): function test_wrap_configuration_user_preference_strategy (line 897) | def test_wrap_configuration_user_preference_strategy(): function test_wrap_configuration_custom_semantic_override (line 917) | def test_wrap_configuration_custom_semantic_override(): function test_modify_strategy (line 958) | def test_modify_strategy(): function test_add_semantic_strategy_and_wait (line 1005) | def test_add_semantic_strategy_and_wait(): function test_add_summary_strategy_and_wait (line 1038) | def test_add_summary_strategy_and_wait(): function test_add_user_preference_strategy_and_wait (line 1071) | def test_add_user_preference_strategy_and_wait(): function test_add_custom_semantic_strategy_and_wait (line 1104) | def test_add_custom_semantic_strategy_and_wait(): function test_update_memory_strategies_and_wait (line 1144) | def test_update_memory_strategies_and_wait(): function test_delete_strategy (line 1184) | def test_delete_strategy(): function test_create_memory_and_wait_client_error (line 1212) | def test_create_memory_and_wait_client_error(): function test_get_memory_strategies_client_error (line 1245) | def test_get_memory_strategies_client_error(): function test_list_memories_client_error (line 1265) | def test_list_memories_client_error(): function test_delete_memory_client_error (line 1285) | def test_delete_memory_client_error(): function test_update_memory_strategies_client_error (line 1306) | def test_update_memory_strategies_client_error(): function test_memory_initialization (line 1329) | def test_memory_initialization(): function test_memory_attribute_access (line 1340) | def test_memory_attribute_access(): function test_memory_with_none_data (line 1359) | def test_memory_with_none_data(): function test_memory_with_empty_data (line 1368) | def test_memory_with_empty_data(): function test_get_memory (line 1377) | def test_get_memory(): function test_memory_manager_getattr_not_found (line 1403) | def test_memory_manager_getattr_not_found(): function test_memory_strategy_model (line 1421) | def test_memory_strategy_model(): function test_memory_summary_model (line 1434) | def test_memory_summary_model(): function test_validate_namespace (line 1450) | def test_validate_namespace(): function test_validate_strategy_config (line 1467) | def test_validate_strategy_config(): function test_check_strategies_terminal_state (line 1489) | def test_check_strategies_terminal_state(): function test_wait_for_memory_active_with_strategy_failures (line 1539) | def test_wait_for_memory_active_with_strategy_failures(): function test_wait_for_memory_active_with_strategies_still_creating (line 1569) | def test_wait_for_memory_active_with_strategies_still_creating(): function test_wait_for_memory_active_timeout_with_strategies (line 1606) | def test_wait_for_memory_active_timeout_with_strategies(): function test_wrap_configuration_summary_strategy (line 1640) | def test_wrap_configuration_summary_strategy(): function test_wrap_configuration_custom_user_preference_override (line 1656) | def test_wrap_configuration_custom_user_preference_override(): function test_wrap_configuration_custom_summary_override (line 1695) | def test_wrap_configuration_custom_summary_override(): function test_wrap_configuration_no_wrapping_needed (line 1715) | def test_wrap_configuration_no_wrapping_needed(): function test_create_memory_with_all_parameters (line 1732) | def test_create_memory_with_all_parameters(): function test_create_memory_with_minimal_parameters (line 1768) | def test_create_memory_with_minimal_parameters(): function test_create_memory_field_name_normalization (line 1798) | def test_create_memory_field_name_normalization(): function test_create_memory_no_id_field (line 1820) | def test_create_memory_no_id_field(): function test_memory_repr (line 1842) | def test_memory_repr(): function test_memory_get_method (line 1852) | def test_memory_get_method(): function test_memory_strategy_get_method (line 1864) | def test_memory_strategy_get_method(): function test_memory_strategy_contains (line 1874) | def test_memory_strategy_contains(): function test_memory_strategy_keys_values_items (line 1884) | def test_memory_strategy_keys_values_items(): function test_memory_summary_get_method (line 1896) | def test_memory_summary_get_method(): function test_memory_summary_contains (line 1906) | def test_memory_summary_contains(): function test_memory_summary_keys_values_items (line 1916) | def test_memory_summary_keys_values_items(): function test_delete_memory_and_wait_timeout (line 1927) | def test_delete_memory_and_wait_timeout(): function test_delete_memory_and_wait_other_client_error (line 1955) | def test_delete_memory_and_wait_other_client_error(): function test_update_memory_strategies_missing_strategy_id (line 1981) | def test_update_memory_strategies_missing_strategy_id(): function test_update_memory_strategies_strategy_not_found (line 2000) | def test_update_memory_strategies_strategy_not_found(): function test_update_memory_strategies_no_operations (line 2023) | def test_update_memory_strategies_no_operations(): function test_getattr_method_forwarding (line 2037) | def test_getattr_method_forwarding(): function test_getattr_method_not_allowed (line 2057) | def test_getattr_method_not_allowed(): function test_validate_namespace_with_invalid_template (line 2076) | def test_validate_namespace_with_invalid_template(): function test_validate_strategy_config_with_namespaces (line 2090) | def test_validate_strategy_config_with_namespaces(): function test_wrap_configuration_consolidation_passthrough (line 2112) | def test_wrap_configuration_consolidation_passthrough(): function test_create_memory_and_wait_memory_id_none (line 2133) | def test_create_memory_and_wait_memory_id_none(): function test_create_memory_and_wait_debug_logging (line 2163) | def test_create_memory_and_wait_debug_logging(): function test_get_memory_client_error (line 2193) | def test_get_memory_client_error(): function test_add_semantic_strategy_with_namespaces (line 2213) | def test_add_semantic_strategy_with_namespaces(): function test_add_summary_strategy_with_namespaces (line 2246) | def test_add_summary_strategy_with_namespaces(): function test_delete_memory_and_wait_debug_logging (line 2279) | def test_delete_memory_and_wait_debug_logging(): function test_modify_strategy_with_configuration (line 2309) | def test_modify_strategy_with_configuration(): function test_update_memory_strategies_with_configuration_wrapping (line 2351) | def test_update_memory_strategies_with_configuration_wrapping(): function test_get_or_create_memory_creates_new_memory (line 2398) | def test_get_or_create_memory_creates_new_memory(): function test_get_or_create_memory_returns_existing_memory (line 2438) | def test_get_or_create_memory_returns_existing_memory(): function test_get_or_create_memory_with_minimal_parameters (line 2486) | def test_get_or_create_memory_with_minimal_parameters(): function test_get_or_create_memory_with_all_parameters (line 2525) | def test_get_or_create_memory_with_all_parameters(): function test_get_or_create_memory_client_error_during_list (line 2569) | def test_get_or_create_memory_client_error_during_list(): function test_get_or_create_memory_client_error_during_create (line 2589) | def test_get_or_create_memory_client_error_during_create(): function test_get_or_create_memory_client_error_during_get (line 2613) | def test_get_or_create_memory_client_error_during_get(): function test_get_or_create_memory_creation_timeout (line 2637) | def test_get_or_create_memory_creation_timeout(): function test_get_or_create_memory_creation_failure (line 2671) | def test_get_or_create_memory_creation_failure(): function test_get_or_create_memory_multiple_matching_memories (line 2704) | def test_get_or_create_memory_multiple_matching_memories(): function test_get_or_create_memory_no_matching_pattern (line 2738) | def test_get_or_create_memory_no_matching_pattern(): function test_get_or_create_memory_with_strategies (line 2775) | def test_get_or_create_memory_with_strategies(): function test_get_or_create_memory_exception_handling (line 2816) | def test_get_or_create_memory_exception_handling(): function test_get_or_create_memory_strategy_validation_success (line 2835) | def test_get_or_create_memory_strategy_validation_success(): function test_get_or_create_memory_strategy_validation_mismatch (line 2869) | def test_get_or_create_memory_strategy_validation_mismatch(): function test_get_or_create_memory_strategy_validation_multiple_strategies (line 2906) | def test_get_or_create_memory_strategy_validation_multiple_strategies(): function test_get_or_create_memory_strategy_validation_no_existing_strategies (line 2943) | def test_get_or_create_memory_strategy_validation_no_existing_strategies(): function test_get_or_create_memory_no_strategy_validation_when_none_provided (line 2974) | def test_get_or_create_memory_no_strategy_validation_when_none_provided(): function test_region_fallback_to_session (line 3006) | def test_region_fallback_to_session(): function test_list_actors (line 3032) | def test_list_actors(): function test_list_actors_with_pagination (line 3053) | def test_list_actors_with_pagination(): function test_list_actors_error (line 3073) | def test_list_actors_error(): function test_list_sessions (line 3091) | def test_list_sessions(): function test_list_sessions_with_pagination (line 3111) | def test_list_sessions_with_pagination(): function test_list_actors_with_next_token (line 3132) | def test_list_actors_with_next_token(): function test_list_sessions_error (line 3151) | def test_list_sessions_error(): function test_list_events_error (line 3166) | def test_list_events_error(): function test_list_events (line 3181) | def test_list_events(): function test_list_events_paginated (line 3203) | def test_list_events_paginated(): function test_list_events_with_max_results (line 3222) | def test_list_events_with_max_results(): function test_get_event (line 3240) | def test_get_event(): function test_get_event_error (line 3258) | def test_get_event_error(): function test_list_records (line 3273) | def test_list_records(): function test_list_records_paginated (line 3295) | def test_list_records_paginated(): function test_list_records_error (line 3314) | def test_list_records_error(): function test_get_record (line 3329) | def test_get_record(): function test_search_records (line 3347) | def test_search_records(): function test_search_records_error (line 3374) | def test_search_records_error(): function test_data_plane_client_initialization (line 3389) | def test_data_plane_client_initialization(): function test_modify_strategy_sends_memory_strategy_id_not_strategy_id (line 3411) | def test_modify_strategy_sends_memory_strategy_id_not_strategy_id(): function test_update_memory_strategies_modify_uses_memory_strategy_id (line 3453) | def test_update_memory_strategies_modify_uses_memory_strategy_id(): FILE: tests/operations/memory/test_strategy_types.py class TestExtractionConfig (line 32) | class TestExtractionConfig: method test_extraction_config_creation (line 35) | def test_extraction_config_creation(self): method test_extraction_config_optional_fields (line 45) | def test_extraction_config_optional_fields(self): class TestConsolidationConfig (line 53) | class TestConsolidationConfig: method test_consolidation_config_creation (line 56) | def test_consolidation_config_creation(self): method test_consolidation_config_optional_fields (line 66) | def test_consolidation_config_optional_fields(self): class TestSemanticStrategy (line 74) | class TestSemanticStrategy: method test_semantic_strategy_creation (line 77) | def test_semantic_strategy_creation(self): method test_semantic_strategy_minimal (line 89) | def test_semantic_strategy_minimal(self): method test_semantic_strategy_to_dict (line 97) | def test_semantic_strategy_to_dict(self): method test_semantic_strategy_validation (line 112) | def test_semantic_strategy_validation(self): class TestSummaryStrategy (line 119) | class TestSummaryStrategy: method test_summary_strategy_creation (line 122) | def test_summary_strategy_creation(self): method test_summary_strategy_to_dict (line 134) | def test_summary_strategy_to_dict(self): class TestUserPreferenceStrategy (line 150) | class TestUserPreferenceStrategy: method test_user_preference_strategy_creation (line 153) | def test_user_preference_strategy_creation(self): method test_user_preference_strategy_to_dict (line 163) | def test_user_preference_strategy_to_dict(self): class TestCustomSemanticStrategy (line 181) | class TestCustomSemanticStrategy: method test_custom_semantic_strategy_creation (line 184) | def test_custom_semantic_strategy_creation(self): method test_custom_semantic_strategy_to_dict (line 207) | def test_custom_semantic_strategy_to_dict(self): method test_custom_semantic_strategy_to_dict_minimal_config (line 249) | def test_custom_semantic_strategy_to_dict_minimal_config(self): method test_custom_semantic_strategy_validation (line 268) | def test_custom_semantic_strategy_validation(self): class TestConvertStrategiesToDicts (line 278) | class TestConvertStrategiesToDicts: method test_convert_typed_strategies (line 281) | def test_convert_typed_strategies(self): method test_convert_dict_strategies (line 308) | def test_convert_dict_strategies(self): method test_convert_mixed_strategies (line 318) | def test_convert_mixed_strategies(self): method test_convert_custom_semantic_strategy (line 337) | def test_convert_custom_semantic_strategy(self): method test_convert_empty_list (line 364) | def test_convert_empty_list(self): method test_convert_invalid_strategy_type (line 369) | def test_convert_invalid_strategy_type(self): method test_convert_invalid_object_type (line 380) | def test_convert_invalid_object_type(self): class TestStrategyTypeUnion (line 392) | class TestStrategyTypeUnion: method test_strategy_type_accepts_all_types (line 395) | def test_strategy_type_accepts_all_types(self): class TestBaseStrategyAbstract (line 416) | class TestBaseStrategyAbstract: method test_base_strategy_cannot_be_instantiated (line 419) | def test_base_strategy_cannot_be_instantiated(self): method test_base_strategy_validation (line 424) | def test_base_strategy_validation(self): method test_base_strategy_optional_fields (line 436) | def test_base_strategy_optional_fields(self): class TestPydanticIntegration (line 449) | class TestPydanticIntegration: method test_model_serialization (line 450) | def test_model_serialization(self): method test_model_copy (line 465) | def test_model_copy(self): method test_field_descriptions (line 476) | def test_field_descriptions(self): class TestCustomSummaryStrategy (line 489) | class TestCustomSummaryStrategy: method test_custom_summary_strategy_creation (line 492) | def test_custom_summary_strategy_creation(self): method test_custom_summary_strategy_minimal (line 510) | def test_custom_summary_strategy_minimal(self): method test_custom_summary_strategy_to_dict_full (line 521) | def test_custom_summary_strategy_to_dict_full(self): method test_custom_summary_strategy_to_dict_minimal (line 553) | def test_custom_summary_strategy_to_dict_minimal(self): method test_custom_summary_strategy_to_dict_partial_config (line 569) | def test_custom_summary_strategy_to_dict_partial_config(self): method test_custom_summary_strategy_validation (line 601) | def test_custom_summary_strategy_validation(self): method test_custom_summary_strategy_convert_consolidation_config (line 611) | def test_custom_summary_strategy_convert_consolidation_config(self): method test_custom_summary_strategy_convert_consolidation_config_empty (line 622) | def test_custom_summary_strategy_convert_consolidation_config_empty(se... class TestCustomUserPreferenceStrategy (line 632) | class TestCustomUserPreferenceStrategy: method test_custom_user_preference_strategy_creation (line 635) | def test_custom_user_preference_strategy_creation(self): method test_custom_user_preference_strategy_minimal (line 658) | def test_custom_user_preference_strategy_minimal(self): method test_custom_user_preference_strategy_to_dict_full (line 671) | def test_custom_user_preference_strategy_to_dict_full(self): method test_custom_user_preference_strategy_to_dict_minimal (line 711) | def test_custom_user_preference_strategy_to_dict_minimal(self): method test_custom_user_preference_strategy_validation (line 730) | def test_custom_user_preference_strategy_validation(self): method test_custom_user_preference_strategy_convert_extraction_config (line 748) | def test_custom_user_preference_strategy_convert_extraction_config(self): method test_custom_user_preference_strategy_convert_extraction_config_empty (line 763) | def test_custom_user_preference_strategy_convert_extraction_config_emp... method test_custom_user_preference_strategy_convert_consolidation_config (line 774) | def test_custom_user_preference_strategy_convert_consolidation_config(... method test_custom_user_preference_strategy_convert_consolidation_config_empty (line 789) | def test_custom_user_preference_strategy_convert_consolidation_config_... class TestCustomSemanticStrategyAdditionalCoverage (line 801) | class TestCustomSemanticStrategyAdditionalCoverage: method test_custom_semantic_strategy_convert_extraction_config_partial (line 804) | def test_custom_semantic_strategy_convert_extraction_config_partial(se... method test_custom_semantic_strategy_convert_consolidation_config_partial (line 828) | def test_custom_semantic_strategy_convert_consolidation_config_partial... method test_custom_semantic_strategy_convert_configs_empty (line 852) | def test_custom_semantic_strategy_convert_configs_empty(self): method test_custom_semantic_strategy_to_dict_no_optional_fields (line 864) | def test_custom_semantic_strategy_to_dict_no_optional_fields(self): class TestConfigurationEdgeCases (line 892) | class TestConfigurationEdgeCases: method test_extraction_config_none_values (line 895) | def test_extraction_config_none_values(self): method test_consolidation_config_none_values (line 902) | def test_consolidation_config_none_values(self): method test_custom_strategies_with_none_configs (line 909) | def test_custom_strategies_with_none_configs(self): method test_all_custom_strategies_inheritance (line 927) | def test_all_custom_strategies_inheritance(self): method test_custom_strategies_abstract_method_implementation (line 950) | def test_custom_strategies_abstract_method_implementation(self): class TestSelfManagedStrategy (line 972) | class TestSelfManagedStrategy: method test_self_managed_strategy_creation (line 975) | def test_self_managed_strategy_creation(self): method test_self_managed_strategy_to_dict (line 998) | def test_self_managed_strategy_to_dict(self): FILE: tests/operations/memory/test_strategy_validator.py class TestStrategyComparatorEdgeCases (line 24) | class TestStrategyComparatorEdgeCases: method test_normalize_memory_strategy_with_configuration (line 27) | def test_normalize_memory_strategy_with_configuration(self): method test_normalize_memory_strategy_without_configuration (line 61) | def test_normalize_memory_strategy_without_configuration(self): method test_transform_memory_configuration_semantic_override (line 77) | def test_transform_memory_configuration_semantic_override(self): method test_transform_memory_configuration_user_preference_override (line 104) | def test_transform_memory_configuration_user_preference_override(self): method test_transform_memory_configuration_summary_override (line 137) | def test_transform_memory_configuration_summary_override(self): method test_transform_memory_configuration_snake_case (line 158) | def test_transform_memory_configuration_snake_case(self): method test_transform_memory_configuration_direct_config (line 185) | def test_transform_memory_configuration_direct_config(self): method test_transform_memory_configuration_unknown_type (line 204) | def test_transform_memory_configuration_unknown_type(self): method test_transform_memory_configuration_non_custom_strategy (line 213) | def test_transform_memory_configuration_non_custom_strategy(self): method test_transform_memory_configuration_empty_config (line 222) | def test_transform_memory_configuration_empty_config(self): method test_transform_memory_configuration_with_other_fields (line 230) | def test_transform_memory_configuration_with_other_fields(self): method test_normalize_request_strategy_future_strategy_type (line 247) | def test_normalize_request_strategy_future_strategy_type(self): method test_normalize_request_strategy_excluded_fields (line 266) | def test_normalize_request_strategy_excluded_fields(self): method test_compare_strategies_with_typed_strategies (line 290) | def test_compare_strategies_with_typed_strategies(self): method test_compare_strategies_normalization_exception_handling (line 326) | def test_compare_strategies_normalization_exception_handling(self): class TestUniversalComparatorEdgeCases (line 349) | class TestUniversalComparatorEdgeCases: method test_camel_to_snake_complex_cases (line 352) | def test_camel_to_snake_complex_cases(self): method test_deep_compare_normalized_none_equivalence_edge_cases (line 375) | def test_deep_compare_normalized_none_equivalence_edge_cases(self): method test_deep_compare_normalized_namespaces_special_handling (line 407) | def test_deep_compare_normalized_namespaces_special_handling(self): method test_deep_compare_normalized_dict_namespaces_special_handling (line 449) | def test_deep_compare_normalized_dict_namespaces_special_handling(self): method test_deep_compare_normalized_list_length_mismatch (line 461) | def test_deep_compare_normalized_list_length_mismatch(self): method test_deep_compare_normalized_list_item_mismatch (line 470) | def test_deep_compare_normalized_list_item_mismatch(self): method test_deep_compare_normalized_type_mismatch (line 479) | def test_deep_compare_normalized_type_mismatch(self): method test_deep_compare_normalized_nested_dict_missing_key (line 488) | def test_deep_compare_normalized_nested_dict_missing_key(self): method test_normalize_field_names_primitive_types (line 502) | def test_normalize_field_names_primitive_types(self): method test_normalize_field_names_mixed_list (line 520) | def test_normalize_field_names_mixed_list(self): class TestValidateExistingMemoryStrategiesEdgeCases (line 536) | class TestValidateExistingMemoryStrategiesEdgeCases: method test_validate_with_mixed_strategy_types (line 539) | def test_validate_with_mixed_strategy_types(self): method test_validate_with_custom_summary_strategy (line 573) | def test_validate_with_custom_summary_strategy(self): method test_validate_with_custom_user_preference_strategy (line 603) | def test_validate_with_custom_user_preference_strategy(self): method test_validate_complex_mismatch_error_message (line 638) | def test_validate_complex_mismatch_error_message(self): method test_validate_logging_with_multiple_strategies (line 683) | def test_validate_logging_with_multiple_strategies(self): class TestErrorHandlingAndEdgeCases (line 732) | class TestErrorHandlingAndEdgeCases: method test_deep_compare_with_complex_nested_structure (line 735) | def test_deep_compare_with_complex_nested_structure(self): method test_deep_compare_with_complex_mismatch (line 765) | def test_deep_compare_with_complex_mismatch(self): method test_normalize_strategy_with_memoryStrategyType_field (line 785) | def test_normalize_strategy_with_memoryStrategyType_field(self): method test_normalize_strategy_with_empty_configuration (line 801) | def test_normalize_strategy_with_empty_configuration(self): method test_transform_memory_configuration_only_extraction (line 817) | def test_transform_memory_configuration_only_extraction(self): method test_transform_memory_configuration_only_consolidation (line 837) | def test_transform_memory_configuration_only_consolidation(self): class TestStrategyComparator (line 860) | class TestStrategyComparator: method test_normalize_strategy_memory_semantic (line 863) | def test_normalize_strategy_memory_semantic(self): method test_normalize_strategy_legacy_fields (line 879) | def test_normalize_strategy_legacy_fields(self): method test_normalize_strategy_custom (line 893) | def test_normalize_strategy_custom(self): method test_normalize_strategy_semantic (line 916) | def test_normalize_strategy_semantic(self): method test_normalize_strategy_custom_request (line 933) | def test_normalize_strategy_custom_request(self): method test_normalize_strategy_invalid_format (line 957) | def test_normalize_strategy_invalid_format(self): method test_compare_strategies_matching_semantic (line 964) | def test_compare_strategies_matching_semantic(self): method test_compare_strategies_name_mismatch (line 990) | def test_compare_strategies_name_mismatch(self): method test_compare_strategies_description_mismatch (line 1018) | def test_compare_strategies_description_mismatch(self): method test_compare_strategies_namespaces_mismatch (line 1044) | def test_compare_strategies_namespaces_mismatch(self): method test_compare_strategies_namespaces_skip_validation (line 1070) | def test_compare_strategies_namespaces_skip_validation(self): method test_compare_strategies_custom_extraction_mismatch (line 1096) | def test_compare_strategies_custom_extraction_mismatch(self): method test_compare_strategies_count_mismatch (line 1134) | def test_compare_strategies_count_mismatch(self): method test_compare_strategies_empty_both (line 1161) | def test_compare_strategies_empty_both(self): method test_compare_strategies_description_none_equivalence (line 1171) | def test_compare_strategies_description_none_equivalence(self): method test_compare_strategies_namespaces_order_independent (line 1192) | def test_compare_strategies_namespaces_order_independent(self): method test_universal_compare_type_mismatch (line 1218) | def test_universal_compare_type_mismatch(self): method test_universal_compare_none_equivalence (line 1228) | def test_universal_compare_none_equivalence(self): class TestValidateExistingMemoryStrategies (line 1246) | class TestValidateExistingMemoryStrategies: method test_validate_matching_strategies (line 1249) | def test_validate_matching_strategies(self): method test_validate_mismatched_strategies (line 1273) | def test_validate_mismatched_strategies(self): method test_validate_custom_strategies_matching (line 1297) | def test_validate_custom_strategies_matching(self): method test_validate_custom_strategies_extraction_mismatch (line 1333) | def test_validate_custom_strategies_extraction_mismatch(self): method test_validate_multiple_strategies_matching (line 1369) | def test_validate_multiple_strategies_matching(self): method test_validate_multiple_strategies_order_independent (line 1406) | def test_validate_multiple_strategies_order_independent(self): method test_validate_with_logging (line 1443) | def test_validate_with_logging(self): method test_validate_normalization_error_handling (line 1480) | def test_validate_normalization_error_handling(self): method test_validate_user_preference_strategy (line 1505) | def test_validate_user_preference_strategy(self): method test_validate_strategy_enum_values (line 1529) | def test_validate_strategy_enum_values(self): method test_normalize_strategy_missing_namespaces (line 1553) | def test_normalize_strategy_missing_namespaces(self): method test_normalize_strategy_custom_without_config (line 1566) | def test_normalize_strategy_custom_without_config(self): class TestUniversalComparator (line 1584) | class TestUniversalComparator: method test_normalize_field_names_simple_dict (line 1587) | def test_normalize_field_names_simple_dict(self): method test_normalize_field_names_nested_dict (line 1597) | def test_normalize_field_names_nested_dict(self): method test_normalize_field_names_with_lists (line 1606) | def test_normalize_field_names_with_lists(self): method test_deep_compare_matching_dicts (line 1615) | def test_deep_compare_matching_dicts(self): method test_deep_compare_mismatched_dicts (line 1625) | def test_deep_compare_mismatched_dicts(self): method test_deep_compare_nested_mismatch (line 1635) | def test_deep_compare_nested_mismatch(self): method test_deep_compare_list_mismatch (line 1645) | def test_deep_compare_list_mismatch(self): class TestFutureProofValidation (line 1656) | class TestFutureProofValidation: method test_universal_field_comparison_basic_strategy (line 1659) | def test_universal_field_comparison_basic_strategy(self): method test_universal_field_comparison_mismatch (line 1682) | def test_universal_field_comparison_mismatch(self): method test_universal_field_comparison_missing_field (line 1707) | def test_universal_field_comparison_missing_field(self): method test_universal_nested_config_comparison (line 1732) | def test_universal_nested_config_comparison(self): method test_universal_nested_config_mismatch (line 1751) | def test_universal_nested_config_mismatch(self): class TestFutureProofNormalization (line 1773) | class TestFutureProofNormalization: method test_camel_to_snake_conversion (line 1776) | def test_camel_to_snake_conversion(self): method test_normalize_new_strategy_type (line 1785) | def test_normalize_new_strategy_type(self): method test_normalize_custom_with_new_fields (line 1802) | def test_normalize_custom_with_new_fields(self): method test_normalize_enum_values (line 1831) | def test_normalize_enum_values(self): method test_normalize_invalid_format_still_fails (line 1850) | def test_normalize_invalid_format_still_fails(self): method test_normalize_custom_without_configuration (line 1857) | def test_normalize_custom_without_configuration(self): method test_normalize_preserves_unknown_fields (line 1875) | def test_normalize_preserves_unknown_fields(self): FILE: tests/operations/memory/test_visualizer.py function test_build_event_detail_raw_payload_branch (line 11) | def test_build_event_detail_raw_payload_branch(): function test_build_event_detail_with_extractable_text (line 24) | def test_build_event_detail_with_extractable_text(): function test_display_single_event_with_extractable_text (line 42) | def test_display_single_event_with_extractable_text(visualizer): function test_format_memory_row_with_data_attribute (line 55) | def test_format_memory_row_with_data_attribute(visualizer): function test_format_strategy_header_with_type_icon (line 65) | def test_format_strategy_header_with_type_icon(visualizer): function console (line 78) | def console(): function visualizer (line 84) | def visualizer(console): class TestMemoryVisualizerInit (line 89) | class TestMemoryVisualizerInit: method test_init_with_console (line 92) | def test_init_with_console(self, console): class TestVisualizeMemory (line 97) | class TestVisualizeMemory: method test_visualize_memory_basic (line 100) | def test_visualize_memory_basic(self, visualizer, console): method test_visualize_memory_with_strategies (line 118) | def test_visualize_memory_with_strategies(self, visualizer, console): method test_visualize_memory_verbose (line 133) | def test_visualize_memory_verbose(self, visualizer, console): class TestDisplayMemoryList (line 151) | class TestDisplayMemoryList: method test_display_memory_list_empty (line 154) | def test_display_memory_list_empty(self, visualizer, console): method test_display_memory_list_with_memories (line 158) | def test_display_memory_list_with_memories(self, visualizer, console): class TestDisplayEventsTree (line 167) | class TestDisplayEventsTree: method test_display_events_tree_no_actors (line 170) | def test_display_events_tree_no_actors(self, visualizer, console): method test_display_events_tree_with_actors (line 177) | def test_display_events_tree_with_actors(self, visualizer, console): method test_display_events_tree_with_events (line 186) | def test_display_events_tree_with_events(self, visualizer, console): class TestDisplaySingleEvent (line 203) | class TestDisplaySingleEvent: method test_display_single_event_basic (line 206) | def test_display_single_event_basic(self, visualizer, console): method test_display_single_event_verbose (line 218) | def test_display_single_event_verbose(self, visualizer, console): class TestDisplayRecordsTree (line 232) | class TestDisplayRecordsTree: method test_display_records_tree_no_strategies (line 235) | def test_display_records_tree_no_strategies(self, visualizer, console): method test_display_records_tree_with_records (line 242) | def test_display_records_tree_with_records(self, visualizer, console): class TestDisplayNamespaceRecords (line 253) | class TestDisplayNamespaceRecords: method test_display_namespace_records_empty (line 256) | def test_display_namespace_records_empty(self, visualizer, console): method test_display_namespace_records_with_records (line 263) | def test_display_namespace_records_with_records(self, visualizer, cons... class TestDisplaySingleRecord (line 271) | class TestDisplaySingleRecord: method test_display_single_record_basic (line 274) | def test_display_single_record_basic(self, visualizer, console): method test_display_single_record_verbose (line 285) | def test_display_single_record_verbose(self, visualizer, console): class TestDisplaySearchResults (line 297) | class TestDisplaySearchResults: method test_display_search_results_empty (line 300) | def test_display_search_results_empty(self, visualizer, console): method test_display_search_results_with_results (line 304) | def test_display_search_results_with_results(self, visualizer, console): method test_display_search_results_verbose (line 309) | def test_display_search_results_verbose(self, visualizer, console): class TestExtractMemoryData (line 315) | class TestExtractMemoryData: method test_extract_from_dict (line 318) | def test_extract_from_dict(self, visualizer): method test_extract_from_object_with_dict (line 322) | def test_extract_from_object_with_dict(self, visualizer): class TestMemoryListWithManager (line 332) | class TestMemoryListWithManager: method test_display_memory_list_with_manager (line 335) | def test_display_memory_list_with_manager(self, visualizer, console): class TestFormatMemoryRow (line 342) | class TestFormatMemoryRow: method test_format_row_with_data_attr (line 345) | def test_format_row_with_data_attr(self, visualizer): method test_format_row_name_equals_id (line 353) | def test_format_row_name_equals_id(self, visualizer): class TestEventsTreeEdgeCases (line 359) | class TestEventsTreeEdgeCases: method test_events_tree_with_actor_filter (line 362) | def test_events_tree_with_actor_filter(self, visualizer, console): method test_events_tree_with_session_filter (line 368) | def test_events_tree_with_session_filter(self, visualizer, console): method test_events_tree_truncation_hint (line 376) | def test_events_tree_truncation_hint(self, visualizer, console): method test_events_tree_session_error (line 383) | def test_events_tree_session_error(self, visualizer, console): method test_events_tree_with_output_file (line 390) | def test_events_tree_with_output_file(self, visualizer, console, tmp_p... class TestBuildSessionSubtree (line 400) | class TestBuildSessionSubtree: method test_session_subtree_with_events (line 403) | def test_session_subtree_with_events(self, visualizer): method test_session_subtree_error (line 414) | def test_session_subtree_error(self, visualizer): class TestAddEventNode (line 424) | class TestAddEventNode: method test_event_node_blob_type (line 427) | def test_event_node_blob_type(self, visualizer): method test_event_node_no_content (line 434) | def test_event_node_no_content(self, visualizer): method test_event_node_verbose_user (line 441) | def test_event_node_verbose_user(self, visualizer): method test_event_node_assistant (line 452) | def test_event_node_assistant(self, visualizer): class TestSingleEventDisplay (line 463) | class TestSingleEventDisplay: method test_single_event_with_branch (line 466) | def test_single_event_with_branch(self, visualizer, console): method test_single_event_no_content (line 476) | def test_single_event_no_content(self, visualizer, console): class TestRecordsTreeEdgeCases (line 482) | class TestRecordsTreeEdgeCases: method test_records_tree_with_output (line 485) | def test_records_tree_with_output(self, visualizer, console, tmp_path): method test_records_tree_with_strategy_records (line 492) | def test_records_tree_with_strategy_records(self, visualizer, console): method test_records_tree_list_records_error (line 501) | def test_records_tree_list_records_error(self, visualizer, console): class TestNamespaceRecordsEdgeCases (line 511) | class TestNamespaceRecordsEdgeCases: method test_namespace_records_error (line 514) | def test_namespace_records_error(self, visualizer, console): method test_namespace_records_with_output (line 520) | def test_namespace_records_with_output(self, visualizer, console, tmp_... class TestResolveNamespace (line 528) | class TestResolveNamespace: method test_resolve_simple_namespace (line 531) | def test_resolve_simple_namespace(self, visualizer): method test_resolve_actor_template (line 536) | def test_resolve_actor_template(self, visualizer): method test_resolve_session_template (line 543) | def test_resolve_session_template(self, visualizer): method test_resolve_namespace_error (line 550) | def test_resolve_namespace_error(self, visualizer): class TestStrategyWithVerbose (line 557) | class TestStrategyWithVerbose: method test_visualize_memory_strategy_verbose_all_fields (line 560) | def test_visualize_memory_strategy_verbose_all_fields(self, visualizer... class TestAddRecordsToTree (line 587) | class TestAddRecordsToTree: method test_add_records_truncation (line 590) | def test_add_records_truncation(self, visualizer): class TestMemoryInfoVerbose (line 600) | class TestMemoryInfoVerbose: method test_memory_with_role_arn (line 603) | def test_memory_with_role_arn(self, visualizer, console): method test_memory_with_actor_count (line 618) | def test_memory_with_actor_count(self, visualizer, console): class TestStrategyEdgeCases (line 626) | class TestStrategyEdgeCases: method test_strategy_no_type_icon (line 629) | def test_strategy_no_type_icon(self, visualizer, console): method test_strategy_empty_namespaces (line 643) | def test_strategy_empty_namespaces(self, visualizer, console): class TestSessionTruncation (line 658) | class TestSessionTruncation: method test_session_truncation_hint (line 661) | def test_session_truncation_hint(self, visualizer, console): class TestEventNodeVerbose (line 670) | class TestEventNodeVerbose: method test_event_node_verbose_with_content (line 673) | def test_event_node_verbose_with_content(self, visualizer): class TestSingleRecordDisplay (line 684) | class TestSingleRecordDisplay: method test_single_record_no_content (line 687) | def test_single_record_no_content(self, visualizer, console): method test_single_record_with_recordId (line 692) | def test_single_record_with_recordId(self, visualizer, console): class TestStrategyRecordsWithResolvedNamespaces (line 703) | class TestStrategyRecordsWithResolvedNamespaces: method test_strategy_records_with_actor_template (line 706) | def test_strategy_records_with_actor_template(self, visualizer, console): class TestSingleEventNoRole (line 717) | class TestSingleEventNoRole: method test_single_event_no_role (line 720) | def test_single_event_no_role(self, visualizer, console): class TestMemoryInfoFields (line 726) | class TestMemoryInfoFields: method test_memory_with_event_expiry (line 729) | def test_memory_with_event_expiry(self, visualizer, console): method test_memory_with_created_at (line 744) | def test_memory_with_created_at(self, visualizer, console): method test_memory_with_updated_at_verbose (line 759) | def test_memory_with_updated_at_verbose(self, visualizer, console): class TestStrategyConfigNested (line 775) | class TestStrategyConfigNested: method test_strategy_config_simple_value (line 778) | def test_strategy_config_simple_value(self, visualizer, console): class TestFormatMemoryRowEdgeCases (line 801) | class TestFormatMemoryRowEdgeCases: method test_format_row_with_memoryId (line 804) | def test_format_row_with_memoryId(self, visualizer): method test_format_row_with_dates (line 809) | def test_format_row_with_dates(self, visualizer): class TestFormatStrategyHeader (line 821) | class TestFormatStrategyHeader: method test_format_header_no_type_icon (line 824) | def test_format_header_no_type_icon(self, visualizer): method test_format_header_with_type_icon (line 835) | def test_format_header_with_type_icon(self, visualizer): class TestGroupEventsByBranch (line 841) | class TestGroupEventsByBranch: method test_group_events_single_branch (line 844) | def test_group_events_single_branch(self, visualizer): method test_group_events_multiple_branches (line 854) | def test_group_events_multiple_branches(self, visualizer): method test_group_events_no_branch (line 864) | def test_group_events_no_branch(self, visualizer): class TestFormatPositionLabel (line 872) | class TestFormatPositionLabel: method test_format_latest (line 875) | def test_format_latest(self, visualizer): method test_format_nth (line 880) | def test_format_nth(self, visualizer): class TestPrintContentPanel (line 886) | class TestPrintContentPanel: method test_print_content_verbose (line 889) | def test_print_content_verbose(self, visualizer, console): method test_print_content_truncated (line 894) | def test_print_content_truncated(self, visualizer, console): class TestOutputOrPrint (line 901) | class TestOutputOrPrint: method test_output_to_console (line 904) | def test_output_to_console(self, visualizer, console): method test_output_to_file (line 912) | def test_output_to_file(self, visualizer, console, tmp_path): class TestGetActors (line 922) | class TestGetActors: method test_get_actors_with_filter (line 925) | def test_get_actors_with_filter(self, visualizer): method test_get_actors_without_filter (line 933) | def test_get_actors_without_filter(self, visualizer): class TestGetSessions (line 942) | class TestGetSessions: method test_get_sessions_with_filter (line 945) | def test_get_sessions_with_filter(self, visualizer): method test_get_sessions_without_filter (line 953) | def test_get_sessions_without_filter(self, visualizer): class TestAddStrategyRecords (line 962) | class TestAddStrategyRecords: method test_add_strategy_records_basic (line 965) | def test_add_strategy_records_basic(self, visualizer): class TestMemoryVisualizerIntegration (line 988) | class TestMemoryVisualizerIntegration: method test_visualize_memory_full_flow (line 991) | def test_visualize_memory_full_flow(self, visualizer, console): class TestBuildMemoryTree (line 1026) | class TestBuildMemoryTree: method test_build_memory_tree_returns_tree (line 1029) | def test_build_memory_tree_returns_tree(self, visualizer): method test_build_memory_tree_with_actor_count (line 1036) | def test_build_memory_tree_with_actor_count(self, visualizer): class TestBuildActorsTable (line 1044) | class TestBuildActorsTable: method test_build_actors_table_returns_table (line 1047) | def test_build_actors_table_returns_table(self, visualizer): method test_build_actors_table_empty (line 1054) | def test_build_actors_table_empty(self, visualizer): class TestBuildSessionsTable (line 1061) | class TestBuildSessionsTable: method test_build_sessions_table_returns_table (line 1064) | def test_build_sessions_table_returns_table(self, visualizer): class TestBuildEventsTable (line 1072) | class TestBuildEventsTable: method test_build_events_table_returns_table (line 1075) | def test_build_events_table_returns_table(self, visualizer): method test_build_events_table_verbose (line 1084) | def test_build_events_table_verbose(self, visualizer): class TestBuildEventDetail (line 1092) | class TestBuildEventDetail: method test_build_event_detail_returns_panel (line 1095) | def test_build_event_detail_returns_panel(self, visualizer): method test_build_event_detail_with_branch (line 1108) | def test_build_event_detail_with_branch(self, visualizer): method test_build_event_detail_with_raw_payload (line 1115) | def test_build_event_detail_with_raw_payload(self, visualizer): method test_build_event_detail_with_raw_payload_verbose (line 1129) | def test_build_event_detail_with_raw_payload_verbose(self, visualizer): method test_build_event_detail_with_role (line 1142) | def test_build_event_detail_with_role(self, visualizer): class TestBuildNamespacesTable (line 1154) | class TestBuildNamespacesTable: method test_build_namespaces_table_returns_table (line 1157) | def test_build_namespaces_table_returns_table(self, visualizer): method test_build_namespaces_table_empty_strategies (line 1164) | def test_build_namespaces_table_empty_strategies(self, visualizer): class TestBuildRecordsTable (line 1171) | class TestBuildRecordsTable: method test_build_records_table_returns_table (line 1174) | def test_build_records_table_returns_table(self, visualizer): method test_build_records_table_verbose (line 1181) | def test_build_records_table_verbose(self, visualizer): class TestBuildRecordDetail (line 1189) | class TestBuildRecordDetail: method test_build_record_detail_returns_panel (line 1192) | def test_build_record_detail_returns_panel(self, visualizer): method test_build_record_detail_with_namespace (line 1199) | def test_build_record_detail_with_namespace(self, visualizer): FILE: tests/operations/observability/conftest.py function mock_logs_client (line 12) | def mock_logs_client(): function observability_client (line 31) | def observability_client(monkeypatch, mock_logs_client): function session_id (line 48) | def session_id(): function agent_id (line 54) | def agent_id(): function trace_id (line 60) | def trace_id(): function endpoint_name (line 66) | def endpoint_name(): function time_range (line 72) | def time_range(): function mock_query_response_single_span (line 83) | def mock_query_response_single_span(): function mock_query_response_empty (line 109) | def mock_query_response_empty(): function mock_query_response_runtime_logs (line 123) | def mock_query_response_runtime_logs(): FILE: tests/operations/observability/test_builders.py function langchain_spans (line 16) | def langchain_spans(): function strands_openai_spans (line 24) | def strands_openai_spans(): function strands_bedrock_spans (line 32) | def strands_bedrock_spans(): function langchain_runtime_logs (line 40) | def langchain_runtime_logs(): function strands_openai_runtime_logs (line 48) | def strands_openai_runtime_logs(): function strands_bedrock_runtime_logs (line 56) | def strands_bedrock_runtime_logs(): class TestCloudWatchSpanBuilder (line 63) | class TestCloudWatchSpanBuilder: method test_build_langchain_spans (line 66) | def test_build_langchain_spans(self, langchain_spans): method test_build_strands_openai_spans (line 90) | def test_build_strands_openai_spans(self, strands_openai_spans): method test_build_strands_bedrock_spans (line 105) | def test_build_strands_bedrock_spans(self, strands_bedrock_spans): method test_span_duration_calculation (line 119) | def test_span_duration_calculation(self, langchain_spans): method _otel_span_to_cloudwatch_result (line 130) | def _otel_span_to_cloudwatch_result(otel_span: dict) -> list: class TestCloudWatchRuntimeLogBuilder (line 175) | class TestCloudWatchRuntimeLogBuilder: method test_build_langchain_runtime_logs (line 178) | def test_build_langchain_runtime_logs(self, langchain_runtime_logs): method test_build_strands_openai_runtime_logs (line 198) | def test_build_strands_openai_runtime_logs(self, strands_openai_runtim... method test_build_strands_bedrock_runtime_logs (line 207) | def test_build_strands_bedrock_runtime_logs(self, strands_bedrock_runt... method _otel_log_to_cloudwatch_result (line 217) | def _otel_log_to_cloudwatch_result(otel_log: dict) -> list: FILE: tests/operations/observability/test_client.py class TestObservabilityClientInit (line 7) | class TestObservabilityClientInit: method test_init_only_requires_region (line 10) | def test_init_only_requires_region(self, observability_client): method test_init_does_not_store_agent_id (line 14) | def test_init_does_not_store_agent_id(self, observability_client): method test_init_does_not_store_endpoint_name (line 18) | def test_init_does_not_store_endpoint_name(self, observability_client): method test_init_creates_logs_client (line 23) | def test_init_creates_logs_client(self, observability_client, mock_log... method test_init_creates_query_builder (line 27) | def test_init_creates_query_builder(self, observability_client): class TestQuerySpansBySession (line 32) | class TestQuerySpansBySession: method test_query_spans_by_session_success (line 35) | def test_query_spans_by_session_success( method test_query_spans_requires_agent_id (line 52) | def test_query_spans_requires_agent_id(self, observability_client, ses... method test_query_spans_includes_agent_id_in_query (line 63) | def test_query_spans_includes_agent_id_in_query( method test_query_spans_empty_results (line 81) | def test_query_spans_empty_results( class TestQuerySpansByTrace (line 97) | class TestQuerySpansByTrace: method test_query_spans_by_trace_success (line 100) | def test_query_spans_by_trace_success( method test_query_spans_by_trace_requires_agent_id (line 116) | def test_query_spans_by_trace_requires_agent_id(self, observability_cl... class TestQueryRuntimeLogsByTraces (line 127) | class TestQueryRuntimeLogsByTraces: method test_query_runtime_logs_success (line 130) | def test_query_runtime_logs_success( method test_query_runtime_logs_requires_agent_id (line 154) | def test_query_runtime_logs_requires_agent_id(self, observability_clie... method test_query_runtime_logs_constructs_correct_log_group (line 165) | def test_query_runtime_logs_constructs_correct_log_group( method test_query_runtime_logs_empty_list (line 191) | def test_query_runtime_logs_empty_list(self, observability_client, age... method test_query_runtime_logs_batch_query (line 203) | def test_query_runtime_logs_batch_query( class TestGetLatestSessionId (line 233) | class TestGetLatestSessionId: method test_get_latest_session_id_success (line 236) | def test_get_latest_session_id_success(self, observability_client, moc... method test_get_latest_session_id_requires_agent_id (line 260) | def test_get_latest_session_id_requires_agent_id(self, observability_c... method test_get_latest_session_id_no_sessions (line 269) | def test_get_latest_session_id_no_sessions( class TestErrorHandling (line 284) | class TestErrorHandling: method test_log_group_not_found (line 287) | def test_log_group_not_found(self, observability_client, mock_logs_cli... method test_query_timeout (line 301) | def test_query_timeout(self, observability_client, mock_logs_client, s... FILE: tests/operations/observability/test_e2e_observability.py function langchain_fixtures (line 20) | def langchain_fixtures(): function strands_bedrock_fixtures (line 30) | def strands_bedrock_fixtures(): function _otel_span_to_cw (line 39) | def _otel_span_to_cw(otel_span: dict) -> list: function _otel_log_to_cw (line 64) | def _otel_log_to_cw(otel_log: dict) -> list: function _build_spans_from_fixtures (line 77) | def _build_spans_from_fixtures(span_data: list) -> list: function _build_logs_from_fixtures (line 89) | def _build_logs_from_fixtures(log_data: list) -> list: class TestE2EObservabilityList (line 101) | class TestE2EObservabilityList: method test_list_with_auto_discovery (line 104) | def test_list_with_auto_discovery(self, langchain_fixtures): method test_list_auto_discovery_no_sessions_found (line 137) | def test_list_auto_discovery_no_sessions_found(self): method test_list_with_langchain_session (line 165) | def test_list_with_langchain_session(self, langchain_fixtures, capsys): method test_list_with_strands_bedrock_session (line 213) | def test_list_with_strands_bedrock_session(self, strands_bedrock_fixtu... method test_list_with_errors_filter (line 248) | def test_list_with_errors_filter(self, langchain_fixtures): class TestE2EObservabilityShow (line 288) | class TestE2EObservabilityShow: method test_show_with_auto_discovery_default_behavior (line 291) | def test_show_with_auto_discovery_default_behavior(self, langchain_fix... method test_show_auto_discovery_no_sessions_found (line 323) | def test_show_auto_discovery_no_sessions_found(self): method test_show_specific_trace (line 350) | def test_show_specific_trace(self, langchain_fixtures): method test_show_with_verbose (line 389) | def test_show_with_verbose(self, langchain_fixtures): method test_show_all_traces_in_session (line 425) | def test_show_all_traces_in_session(self, strands_bedrock_fixtures): method test_show_last_trace_from_session (line 462) | def test_show_last_trace_from_session(self, langchain_fixtures): class TestE2EObservabilityMessageDisplay (line 498) | class TestE2EObservabilityMessageDisplay: method test_list_shows_actual_user_assistant_messages (line 501) | def test_list_shows_actual_user_assistant_messages(self, langchain_fix... method test_runtime_log_messages_displayed (line 554) | def test_runtime_log_messages_displayed(self, langchain_fixtures, caps... method test_span_hierarchy_visualized (line 604) | def test_span_hierarchy_visualized(self, langchain_fixtures, capsys): class TestE2EObservabilityOutputFormats (line 651) | class TestE2EObservabilityOutputFormats: method test_output_json_export (line 654) | def test_output_json_export(self, langchain_fixtures, tmp_path): method test_normal_vs_verbose_output_length (line 692) | def test_normal_vs_verbose_output_length(self, strands_bedrock_fixtures): class TestE2EObservabilityEdgeCases (line 731) | class TestE2EObservabilityEdgeCases: method test_empty_session_no_spans (line 734) | def test_empty_session_no_spans(self): method test_show_conflicting_parameters (line 760) | def test_show_conflicting_parameters(self): FILE: tests/operations/observability/test_formatters.py class TestFormatAge (line 24) | class TestFormatAge: method test_format_age_seconds (line 27) | def test_format_age_seconds(self): method test_format_age_minutes (line 33) | def test_format_age_minutes(self): method test_format_age_hours (line 39) | def test_format_age_hours(self): method test_format_age_days (line 45) | def test_format_age_days(self): class TestFormatDuration (line 52) | class TestFormatDuration: method test_format_duration_seconds (line 55) | def test_format_duration_seconds(self): method test_format_duration_ms_with_unit (line 62) | def test_format_duration_ms_with_unit(self): method test_format_duration_ms_without_unit (line 68) | def test_format_duration_ms_without_unit(self): method test_get_duration_style_fast (line 73) | def test_get_duration_style_fast(self): method test_get_duration_style_moderate (line 79) | def test_get_duration_style_moderate(self): method test_get_duration_style_slow (line 85) | def test_get_duration_style_slow(self): method test_get_duration_style_very_slow (line 91) | def test_get_duration_style_very_slow(self): class TestTimestampFormatting (line 97) | class TestTimestampFormatting: method test_calculate_age_seconds (line 100) | def test_calculate_age_seconds(self): method test_format_timestamp_relative (line 108) | def test_format_timestamp_relative(self): method test_format_timestamp_relative_minutes (line 116) | def test_format_timestamp_relative_minutes(self): class TestStatusFormatting (line 125) | class TestStatusFormatting: method test_get_status_icon_ok (line 128) | def test_get_status_icon_ok(self): method test_get_status_icon_error (line 132) | def test_get_status_icon_error(self): method test_get_status_icon_unset (line 136) | def test_get_status_icon_unset(self): method test_get_status_style_ok (line 142) | def test_get_status_style_ok(self): method test_get_status_style_error (line 146) | def test_get_status_style_error(self): method test_get_status_style_unset (line 150) | def test_get_status_style_unset(self): method test_format_status_display_with_errors (line 156) | def test_format_status_display_with_errors(self): method test_format_status_display_without_errors (line 162) | def test_format_status_display_without_errors(self): class TestGetSpanAttribute (line 169) | class TestGetSpanAttribute: method test_get_span_attribute_first_match (line 172) | def test_get_span_attribute_first_match(self): method test_get_span_attribute_fallback (line 181) | def test_get_span_attribute_fallback(self): method test_get_span_attribute_not_found (line 189) | def test_get_span_attribute_not_found(self): method test_get_span_attribute_single_name (line 195) | def test_get_span_attribute_single_name(self): method test_get_span_attribute_empty_dict (line 201) | def test_get_span_attribute_empty_dict(self): class TestExtractPrompt (line 207) | class TestExtractPrompt: method test_extract_prompt_from_gen_ai (line 210) | def test_extract_prompt_from_gen_ai(self): method test_extract_prompt_from_llm (line 216) | def test_extract_prompt_from_llm(self): method test_extract_prompt_priority (line 222) | def test_extract_prompt_priority(self): method test_extract_prompt_not_found (line 231) | def test_extract_prompt_not_found(self): method test_extract_prompt_converts_to_string (line 237) | def test_extract_prompt_converts_to_string(self): class TestExtractCompletion (line 245) | class TestExtractCompletion: method test_extract_completion_from_gen_ai (line 248) | def test_extract_completion_from_gen_ai(self): method test_extract_completion_from_llm (line 254) | def test_extract_completion_from_llm(self): method test_extract_completion_not_found (line 260) | def test_extract_completion_not_found(self): class TestExtractInvocationPayload (line 267) | class TestExtractInvocationPayload: method test_extract_invocation_from_request_model_input (line 270) | def test_extract_invocation_from_request_model_input(self): method test_extract_invocation_from_bedrock (line 276) | def test_extract_invocation_from_bedrock(self): method test_extract_invocation_from_request_body (line 282) | def test_extract_invocation_from_request_body(self): method test_extract_invocation_from_input (line 288) | def test_extract_invocation_from_input(self): method test_extract_invocation_priority_order (line 294) | def test_extract_invocation_priority_order(self): method test_extract_invocation_not_found (line 305) | def test_extract_invocation_not_found(self): class TestExtractInputData (line 312) | class TestExtractInputData: method test_extract_input_from_request_model_input (line 315) | def test_extract_input_from_request_model_input(self): method test_extract_input_from_invocation_input (line 321) | def test_extract_input_from_invocation_input(self): method test_extract_input_from_request_body (line 327) | def test_extract_input_from_request_body(self): method test_extract_input_not_found (line 333) | def test_extract_input_not_found(self): class TestExtractOutputData (line 340) | class TestExtractOutputData: method test_extract_output_from_response_model_output (line 343) | def test_extract_output_from_response_model_output(self): method test_extract_output_from_invocation_output (line 349) | def test_extract_output_from_invocation_output(self): method test_extract_output_from_response_body (line 355) | def test_extract_output_from_response_body(self): method test_extract_output_not_found (line 361) | def test_extract_output_not_found(self): class TestTruncateForDisplay (line 368) | class TestTruncateForDisplay: method test_truncate_short_text_not_truncated (line 371) | def test_truncate_short_text_not_truncated(self): method test_truncate_long_text_normal_mode (line 378) | def test_truncate_long_text_normal_mode(self): method test_truncate_long_text_verbose_mode (line 385) | def test_truncate_long_text_verbose_mode(self): method test_truncate_tool_use_shorter_limit (line 392) | def test_truncate_tool_use_shorter_limit(self): method test_truncate_tool_use_verbose_no_truncation (line 400) | def test_truncate_tool_use_verbose_no_truncation(self): method test_truncate_at_exact_limit (line 406) | def test_truncate_at_exact_limit(self): method test_truncate_one_over_limit (line 413) | def test_truncate_one_over_limit(self): class TestHasLLMAttributes (line 422) | class TestHasLLMAttributes: method test_has_llm_attributes_with_prompt (line 425) | def test_has_llm_attributes_with_prompt(self): method test_has_llm_attributes_with_completion (line 430) | def test_has_llm_attributes_with_completion(self): method test_has_llm_attributes_with_invocation (line 435) | def test_has_llm_attributes_with_invocation(self): method test_has_llm_attributes_with_multiple (line 440) | def test_has_llm_attributes_with_multiple(self): method test_has_llm_attributes_none (line 448) | def test_has_llm_attributes_none(self): method test_has_llm_attributes_empty_dict (line 456) | def test_has_llm_attributes_empty_dict(self): class TestEdgeCases (line 461) | class TestEdgeCases: method test_format_age_negative (line 464) | def test_format_age_negative(self): method test_format_duration_negative (line 470) | def test_format_duration_negative(self): method test_extract_with_none_value (line 475) | def test_extract_with_none_value(self): method test_truncate_empty_string (line 482) | def test_truncate_empty_string(self): method test_get_span_attribute_with_empty_string_value (line 487) | def test_get_span_attribute_with_empty_string_value(self): FILE: tests/operations/observability/test_message_parser.py function langchain_runtime_logs (line 15) | def langchain_runtime_logs(): function strands_openai_runtime_logs (line 23) | def strands_openai_runtime_logs(): function strands_bedrock_runtime_logs (line 31) | def strands_bedrock_runtime_logs(): function parser (line 39) | def parser(): class TestUnifiedLogParserWithLangchain (line 44) | class TestUnifiedLogParserWithLangchain: method test_parse_all_langchain_logs (line 47) | def test_parse_all_langchain_logs(self, parser, langchain_runtime_logs): method test_langchain_message_extraction (line 54) | def test_langchain_message_extraction(self, parser, langchain_runtime_... method test_langchain_json_string_extraction (line 74) | def test_langchain_json_string_extraction(self, parser, langchain_runt... method test_langchain_scope_detection (line 107) | def test_langchain_scope_detection(self, parser, langchain_runtime_logs): method test_langchain_exception_extraction (line 128) | def test_langchain_exception_extraction(self, parser, langchain_runtim... class TestUnifiedLogParserWithStrandsOpenAI (line 147) | class TestUnifiedLogParserWithStrandsOpenAI: method test_parse_all_strands_openai_logs (line 150) | def test_parse_all_strands_openai_logs(self, parser, strands_openai_ru... method test_strands_openai_gen_ai_message_detection (line 156) | def test_strands_openai_gen_ai_message_detection(self, parser, strands... method test_strands_openai_input_output_structure (line 177) | def test_strands_openai_input_output_structure(self, parser, strands_o... class TestUnifiedLogParserWithStrandsBedrock (line 189) | class TestUnifiedLogParserWithStrandsBedrock: method test_parse_all_strands_bedrock_logs (line 192) | def test_parse_all_strands_bedrock_logs(self, parser, strands_bedrock_... method test_strands_bedrock_message_extraction (line 198) | def test_strands_bedrock_message_extraction(self, parser, strands_bedr... method test_strands_bedrock_tool_use_detection (line 224) | def test_strands_bedrock_tool_use_detection(self, parser, strands_bedr... method test_strands_bedrock_conversation_flow (line 242) | def test_strands_bedrock_conversation_flow(self, parser, strands_bedro... class TestParserEdgeCases (line 256) | class TestParserEdgeCases: method test_parse_empty_log (line 259) | def test_parse_empty_log(self, parser): method test_parse_non_dict_log (line 267) | def test_parse_non_dict_log(self, parser): method test_parse_log_without_attributes (line 275) | def test_parse_log_without_attributes(self, parser): method test_exception_priority (line 282) | def test_exception_priority(self, parser): class TestParserWithRealOTELEvents (line 301) | class TestParserWithRealOTELEvents: method test_gen_ai_user_message_event (line 304) | def test_gen_ai_user_message_event(self, parser): method test_gen_ai_choice_event (line 318) | def test_gen_ai_choice_event(self, parser): method test_gen_ai_system_message_event (line 332) | def test_gen_ai_system_message_event(self, parser): method test_input_output_structure (line 345) | def test_input_output_structure(self, parser): method test_direct_body_with_role_content (line 366) | def test_direct_body_with_role_content(self, parser): FILE: tests/operations/observability/test_observability_delivery.py class TestObservabilityDeliveryManagerInit (line 21) | class TestObservabilityDeliveryManagerInit: method test_init_with_region (line 25) | def test_init_with_region(self, mock_session_class): method test_init_with_session (line 38) | def test_init_with_session(self, mock_session_class): method test_init_without_region_raises (line 50) | def test_init_without_region_raises(self, mock_session_class): class TestEnableObservabilityForResource (line 60) | class TestEnableObservabilityForResource: method mock_manager (line 64) | def mock_manager(self): method test_enable_observability_success (line 79) | def test_enable_observability_success(self, mock_manager): method test_enable_observability_logs_only (line 103) | def test_enable_observability_logs_only(self, mock_manager): method test_enable_observability_traces_only (line 127) | def test_enable_observability_traces_only(self, mock_manager): method test_enable_observability_custom_log_group (line 151) | def test_enable_observability_custom_log_group(self, mock_manager): method test_enable_observability_invalid_resource_type (line 173) | def test_enable_observability_invalid_resource_type(self, mock_manager): method test_enable_observability_all_resource_types (line 182) | def test_enable_observability_all_resource_types(self, mock_manager): method test_enable_observability_log_group_already_exists (line 203) | def test_enable_observability_log_group_already_exists(self, mock_mana... method test_enable_observability_delivery_already_exists (line 225) | def test_enable_observability_delivery_already_exists(self, mock_manag... method test_enable_observability_api_error (line 249) | def test_enable_observability_api_error(self, mock_manager): class TestDisableObservabilityForResource (line 264) | class TestDisableObservabilityForResource: method mock_manager (line 268) | def mock_manager(self): method test_disable_observability_success (line 281) | def test_disable_observability_success(self, mock_manager): method test_disable_observability_with_log_group_deletion (line 293) | def test_disable_observability_with_log_group_deletion(self, mock_mana... method test_disable_observability_resource_not_found (line 308) | def test_disable_observability_resource_not_found(self, mock_manager): class TestGetObservabilityStatus (line 326) | class TestGetObservabilityStatus: method mock_manager (line 330) | def mock_manager(self): method test_get_status_both_configured (line 343) | def test_get_status_both_configured(self, mock_manager): method test_get_status_not_configured (line 352) | def test_get_status_not_configured(self, mock_manager): class TestConvenienceFunction (line 363) | class TestConvenienceFunction: method test_enable_observability_for_resource_function (line 367) | def test_enable_observability_for_resource_function(self, mock_manager... class TestArnParsing (line 393) | class TestArnParsing: method mock_manager (line 397) | def mock_manager(self): method test_infer_resource_type_and_id_from_arn (line 419) | def test_infer_resource_type_and_id_from_arn(self, mock_manager): method test_infer_gateway_from_arn (line 430) | def test_infer_gateway_from_arn(self, mock_manager): method test_explicit_params_override_arn (line 440) | def test_explicit_params_override_arn(self, mock_manager): method test_invalid_arn_raises_error (line 451) | def test_invalid_arn_raises_error(self, mock_manager): class TestConvenienceMethods (line 459) | class TestConvenienceMethods: method mock_manager (line 463) | def mock_manager(self): method test_enable_for_memory (line 485) | def test_enable_for_memory(self, mock_manager): method test_enable_for_memory_with_arn (line 492) | def test_enable_for_memory_with_arn(self, mock_manager): method test_enable_for_gateway (line 500) | def test_enable_for_gateway(self, mock_manager): method test_disable_for_memory (line 507) | def test_disable_for_memory(self, mock_manager): method test_disable_for_gateway (line 516) | def test_disable_for_gateway(self, mock_manager): FILE: tests/operations/observability/test_query_builder.py class TestSpansQueries (line 6) | class TestSpansQueries: method test_build_spans_by_session_query_basic (line 9) | def test_build_spans_by_session_query_basic(self): method test_build_spans_by_session_query_with_agent_id (line 31) | def test_build_spans_by_session_query_with_agent_id(self): method test_build_spans_by_trace_query (line 48) | def test_build_spans_by_trace_query(self): method test_spans_queries_include_essential_fields (line 66) | def test_spans_queries_include_essential_fields(self): class TestRuntimeLogsQueries (line 87) | class TestRuntimeLogsQueries: method test_build_runtime_logs_by_trace_direct (line 90) | def test_build_runtime_logs_by_trace_direct(self): method test_build_runtime_logs_by_traces_batch_single_trace (line 107) | def test_build_runtime_logs_by_traces_batch_single_trace(self): method test_build_runtime_logs_by_traces_batch_multiple_traces (line 125) | def test_build_runtime_logs_by_traces_batch_multiple_traces(self): method test_build_runtime_logs_by_traces_batch_empty_list (line 138) | def test_build_runtime_logs_by_traces_batch_empty_list(self): class TestSessionQueries (line 146) | class TestSessionQueries: method test_build_latest_session_query_default_limit (line 149) | def test_build_latest_session_query_default_limit(self): method test_build_latest_session_query_custom_limit (line 170) | def test_build_latest_session_query_custom_limit(self): method test_build_session_summary_query_basic (line 182) | def test_build_session_summary_query_basic(self): method test_build_session_summary_query_with_agent_id (line 207) | def test_build_session_summary_query_with_agent_id(self): class TestQuerySafety (line 224) | class TestQuerySafety: method test_query_with_special_characters_in_ids (line 227) | def test_query_with_special_characters_in_ids(self): method test_query_with_empty_trace_ids_list (line 244) | def test_query_with_empty_trace_ids_list(self): method test_queries_use_proper_field_escaping (line 249) | def test_queries_use_proper_field_escaping(self): class TestQueryStructure (line 259) | class TestQueryStructure: method test_spans_query_has_valid_structure (line 262) | def test_spans_query_has_valid_structure(self): method test_runtime_logs_query_has_valid_structure (line 275) | def test_runtime_logs_query_has_valid_structure(self): method test_session_summary_query_has_stats_command (line 288) | def test_session_summary_query_has_stats_command(self): method test_latest_session_query_has_aggregation (line 301) | def test_latest_session_query_has_aggregation(self): class TestQueryConsistency (line 316) | class TestQueryConsistency: method test_all_span_queries_sort_by_start_time (line 319) | def test_all_span_queries_sort_by_start_time(self): method test_all_runtime_log_queries_sort_by_timestamp (line 327) | def test_all_runtime_log_queries_sort_by_timestamp(self): method test_queries_with_agent_id_use_consistent_parsing (line 335) | def test_queries_with_agent_id_use_consistent_parsing(self): FILE: tests/operations/observability/test_trace_processor.py function langchain_spans_data (line 17) | def langchain_spans_data(): function strands_bedrock_spans_data (line 34) | def strands_bedrock_spans_data(): function strands_bedrock_runtime_logs_data (line 50) | def strands_bedrock_runtime_logs_data(): function _otel_span_to_cw (line 65) | def _otel_span_to_cw(otel_span: dict) -> list: function _otel_log_to_cw (line 90) | def _otel_log_to_cw(otel_log: dict) -> list: class TestTraceProcessorGrouping (line 105) | class TestTraceProcessorGrouping: method test_group_spans_by_trace_langchain (line 108) | def test_group_spans_by_trace_langchain(self, langchain_spans_data): method test_group_spans_by_trace_strands_bedrock (line 126) | def test_group_spans_by_trace_strands_bedrock(self, strands_bedrock_sp... method test_build_span_hierarchy (line 140) | def test_build_span_hierarchy(self, langchain_spans_data): method test_build_span_hierarchy_children_populated (line 159) | def test_build_span_hierarchy_children_populated(self, strands_bedrock... class TestTraceProcessorCalculations (line 181) | class TestTraceProcessorCalculations: method test_calculate_trace_duration (line 184) | def test_calculate_trace_duration(self, langchain_spans_data): method test_count_error_spans (line 203) | def test_count_error_spans(self, strands_bedrock_spans_data): method test_get_trace_ids (line 218) | def test_get_trace_ids(self, langchain_spans_data): method test_filter_error_traces (line 237) | def test_filter_error_traces(self, strands_bedrock_spans_data): class TestTraceProcessorMessages (line 253) | class TestTraceProcessorMessages: method test_get_messages_by_span (line 256) | def test_get_messages_by_span(self, strands_bedrock_spans_data, strand... method test_get_trace_messages (line 280) | def test_get_trace_messages(self, strands_bedrock_spans_data, strands_... class TestTraceProcessorSerialization (line 294) | class TestTraceProcessorSerialization: method test_to_dict_structure (line 297) | def test_to_dict_structure(self, langchain_spans_data): method test_to_dict_trace_structure (line 320) | def test_to_dict_trace_structure(self, langchain_spans_data): method test_to_dict_hierarchy_preserved (line 346) | def test_to_dict_hierarchy_preserved(self, strands_bedrock_spans_data): class TestTraceProcessorEdgeCases (line 370) | class TestTraceProcessorEdgeCases: method test_empty_trace_data (line 373) | def test_empty_trace_data(self): method test_single_span_trace (line 381) | def test_single_span_trace(self): method test_orphan_spans_treated_as_roots (line 396) | def test_orphan_spans_treated_as_roots(self): FILE: tests/operations/observability/test_trace_visualizer.py function langchain_trace_data (line 20) | def langchain_trace_data(): function strands_bedrock_trace_data (line 47) | def strands_bedrock_trace_data(): function _otel_span_to_cw (line 73) | def _otel_span_to_cw(otel_span: dict) -> list: function _otel_log_to_cw (line 98) | def _otel_log_to_cw(otel_log: dict) -> list: class TestTraceVisualizerWithLangchain (line 111) | class TestTraceVisualizerWithLangchain: method test_visualize_trace_no_errors (line 114) | def test_visualize_trace_no_errors(self, langchain_trace_data): method test_visualize_trace_with_messages (line 134) | def test_visualize_trace_with_messages(self, langchain_trace_data): method test_visualize_trace_verbose (line 147) | def test_visualize_trace_verbose(self, langchain_trace_data): method test_visualize_all_traces (line 160) | def test_visualize_all_traces(self, langchain_trace_data): class TestTraceVisualizerWithStrandsBedrock (line 176) | class TestTraceVisualizerWithStrandsBedrock: method test_visualize_trace_no_errors (line 179) | def test_visualize_trace_no_errors(self, strands_bedrock_trace_data): method test_visualize_trace_shows_hierarchy (line 192) | def test_visualize_trace_shows_hierarchy(self, strands_bedrock_trace_d... method test_visualize_trace_with_messages_shows_content (line 215) | def test_visualize_trace_with_messages_shows_content(self, strands_bed... method test_visualize_all_traces_multiple_traces (line 230) | def test_visualize_all_traces_multiple_traces(self, strands_bedrock_tr... class TestTraceVisualizerWithSpanAttributes (line 248) | class TestTraceVisualizerWithSpanAttributes: method test_visualize_span_with_prompt_attribute (line 251) | def test_visualize_span_with_prompt_attribute(self): method test_visualize_span_with_completion_attribute (line 280) | def test_visualize_span_with_completion_attribute(self): method test_visualize_span_with_invocation_payload (line 308) | def test_visualize_span_with_invocation_payload(self): method test_visualize_span_with_input_output (line 336) | def test_visualize_span_with_input_output(self): method test_visualize_span_with_llm_fallback_attributes (line 369) | def test_visualize_span_with_llm_fallback_attributes(self): method test_visualize_truncates_long_content (line 400) | def test_visualize_truncates_long_content(self): method test_visualize_verbose_no_truncation (line 432) | def test_visualize_verbose_no_truncation(self): class TestTraceVisualizerEdgeCases (line 464) | class TestTraceVisualizerEdgeCases: method test_visualize_empty_trace_data (line 467) | def test_visualize_empty_trace_data(self): method test_visualize_nonexistent_trace_id (line 481) | def test_visualize_nonexistent_trace_id(self, langchain_trace_data): method test_visualize_trace_with_show_details (line 492) | def test_visualize_trace_with_show_details(self, langchain_trace_data): class TestTraceVisualizerFormatting (line 506) | class TestTraceVisualizerFormatting: method test_visualize_shows_status_icons (line 509) | def test_visualize_shows_status_icons(self, langchain_trace_data): method test_visualize_shows_duration (line 523) | def test_visualize_shows_duration(self, strands_bedrock_trace_data): method test_verbose_mode_shows_more_content (line 537) | def test_verbose_mode_shows_more_content(self, strands_bedrock_trace_d... class TestTraceVisualizerEdgeCasesExtended (line 562) | class TestTraceVisualizerEdgeCasesExtended: method test_visualize_trace_with_no_root_spans (line 565) | def test_visualize_trace_with_no_root_spans(self): method test_visualize_all_traces_with_empty_traces_dict (line 595) | def test_visualize_all_traces_with_empty_traces_dict(self): method test_visualize_trace_with_error_status (line 611) | def test_visualize_trace_with_error_status(self): method test_visualize_with_very_long_span_names (line 640) | def test_visualize_with_very_long_span_names(self): method test_visualize_span_with_show_details_true (line 669) | def test_visualize_span_with_show_details_true(self): class TestTraceVisualizerExceptionHandling (line 702) | class TestTraceVisualizerExceptionHandling: method test_visualize_span_with_exceptions (line 705) | def test_visualize_span_with_exceptions(self): method test_visualize_with_messages_containing_tool_use (line 744) | def test_visualize_with_messages_containing_tool_use(self): method test_visualize_with_messages_verbose_no_truncation (line 784) | def test_visualize_with_messages_verbose_no_truncation(self): class TestTraceVisualizerAttributeExtraction (line 829) | class TestTraceVisualizerAttributeExtraction: method test_visualize_span_with_gen_ai_attributes (line 832) | def test_visualize_span_with_gen_ai_attributes(self): method test_visualize_span_with_llm_attributes (line 865) | def test_visualize_span_with_llm_attributes(self): method test_visualize_span_with_bedrock_invocation_payload (line 893) | def test_visualize_span_with_bedrock_invocation_payload(self): class TestTraceVisualizerComplexHierarchy (line 925) | class TestTraceVisualizerComplexHierarchy: method test_visualize_deep_span_hierarchy (line 928) | def test_visualize_deep_span_hierarchy(self): method test_visualize_wide_span_hierarchy (line 988) | def test_visualize_wide_span_hierarchy(self): class TestTraceVisualizerSpanEventDisplay (line 1033) | class TestTraceVisualizerSpanEventDisplay: method test_visualize_span_with_non_exception_events (line 1036) | def test_visualize_span_with_non_exception_events(self): method test_visualize_trace_without_messages_flag (line 1066) | def test_visualize_trace_without_messages_flag(self): class TestTraceVisualizerRuntimeLogFormatting (line 1103) | class TestTraceVisualizerRuntimeLogFormatting: method test_visualize_with_error_in_runtime_logs (line 1106) | def test_visualize_with_error_in_runtime_logs(self): method test_visualize_with_multiple_message_roles (line 1142) | def test_visualize_with_multiple_message_roles(self): FILE: tests/operations/policy/test_policy_client.py function mock_boto_client (line 20) | def mock_boto_client(): function mock_session (line 27) | def mock_session(): function policy_client (line 34) | def policy_client(mock_boto_client, mock_session): class TestPolicyClientInit (line 39) | class TestPolicyClientInit: method test_client_init_with_default_region (line 43) | def test_client_init_with_default_region(self, mock_get_region, mock_b... method test_client_init_with_custom_region (line 52) | def test_client_init_with_custom_region(self, mock_boto_client, mock_s... class TestPolicyEngineOperations (line 60) | class TestPolicyEngineOperations: method test_create_policy_engine_success (line 63) | def test_create_policy_engine_success(self, policy_client): method test_create_policy_engine_with_encryption_key (line 80) | def test_create_policy_engine_with_encryption_key(self, policy_client): method test_create_policy_engine_with_tags (line 103) | def test_create_policy_engine_with_tags(self, policy_client): method test_create_policy_engine_with_all_params (line 121) | def test_create_policy_engine_with_all_params(self, policy_client): method test_create_policy_engine_with_client_token (line 151) | def test_create_policy_engine_with_client_token(self, policy_client): method test_create_policy_engine_error (line 172) | def test_create_policy_engine_error(self, policy_client): method test_create_or_get_policy_engine_creates_new (line 184) | def test_create_or_get_policy_engine_creates_new(self, mock_sleep, pol... method test_create_or_get_policy_engine_with_encryption_and_tags (line 212) | def test_create_or_get_policy_engine_with_encryption_and_tags(self, mo... method test_create_or_get_policy_engine_finds_existing (line 246) | def test_create_or_get_policy_engine_finds_existing(self, mock_sleep, ... method test_get_policy_engine_success (line 264) | def test_get_policy_engine_success(self, policy_client): method test_get_policy_engine_not_found (line 277) | def test_get_policy_engine_not_found(self, policy_client): method test_update_policy_engine_success (line 287) | def test_update_policy_engine_success(self, policy_client): method test_list_policy_engines_basic (line 304) | def test_list_policy_engines_basic(self, policy_client): method test_list_policy_engines_with_pagination (line 317) | def test_list_policy_engines_with_pagination(self, policy_client): method test_delete_policy_engine_success (line 328) | def test_delete_policy_engine_success(self, policy_client): method test_wait_for_policy_engine_active_success (line 342) | def test_wait_for_policy_engine_active_success(self, mock_sleep, polic... method test_wait_for_policy_engine_timeout (line 359) | def test_wait_for_policy_engine_timeout(self, mock_sleep, policy_client): method test_wait_for_policy_engine_failed_status (line 371) | def test_wait_for_policy_engine_failed_status(self, mock_sleep, policy... class TestPolicyOperations (line 384) | class TestPolicyOperations: method test_create_policy_success (line 387) | def test_create_policy_success(self, policy_client): method test_create_policy_with_validation_mode (line 407) | def test_create_policy_with_validation_mode(self, policy_client): method test_create_policy_with_client_token (line 428) | def test_create_policy_with_client_token(self, policy_client): method test_create_or_get_policy_creates_new (line 447) | def test_create_or_get_policy_creates_new(self, mock_sleep, policy_cli... method test_create_or_get_policy_finds_existing (line 474) | def test_create_or_get_policy_finds_existing(self, mock_sleep, policy_... method test_get_policy_success (line 491) | def test_get_policy_success(self, policy_client): method test_get_policy_not_found (line 504) | def test_get_policy_not_found(self, policy_client): method test_update_policy_success (line 514) | def test_update_policy_success(self, policy_client): method test_update_policy_with_validation_mode (line 533) | def test_update_policy_with_validation_mode(self, policy_client): method test_list_policies_basic (line 556) | def test_list_policies_basic(self, policy_client): method test_list_policies_with_resource_scope (line 568) | def test_list_policies_with_resource_scope(self, policy_client): method test_list_policies_with_pagination (line 583) | def test_list_policies_with_pagination(self, policy_client): method test_delete_policy_success (line 596) | def test_delete_policy_success(self, policy_client): method test_create_policy_from_generation_asset_success (line 609) | def test_create_policy_from_generation_asset_success(self, policy_clie... method test_create_policy_from_generation_asset_with_optional_params (line 637) | def test_create_policy_from_generation_asset_with_optional_params(self... method test_wait_for_policy_active_success (line 666) | def test_wait_for_policy_active_success(self, mock_sleep, policy_client): method test_wait_for_policy_timeout (line 682) | def test_wait_for_policy_timeout(self, mock_sleep, policy_client): class TestPolicyGenerationOperations (line 693) | class TestPolicyGenerationOperations: method test_start_policy_generation_success (line 696) | def test_start_policy_generation_success(self, policy_client): method test_start_policy_generation_error (line 718) | def test_start_policy_generation_error(self, policy_client): method test_get_policy_generation_success (line 736) | def test_get_policy_generation_success(self, policy_client): method test_get_policy_generation_not_found (line 751) | def test_get_policy_generation_not_found(self, policy_client): method test_list_policy_generation_assets (line 761) | def test_list_policy_generation_assets(self, policy_client): method test_list_policy_generation_assets_with_pagination (line 773) | def test_list_policy_generation_assets_with_pagination(self, policy_cl... method test_list_policy_generations_basic (line 786) | def test_list_policy_generations_basic(self, policy_client): class TestPolicyGenerationWithAssets (line 799) | class TestPolicyGenerationWithAssets: method test_generate_policy_with_fetch_assets_true (line 803) | def test_generate_policy_with_fetch_assets_true(self, mock_sleep, poli... method test_generate_policy_with_fetch_assets_false (line 846) | def test_generate_policy_with_fetch_assets_false(self, mock_sleep, pol... method test_generate_policy_timeout (line 878) | def test_generate_policy_timeout(self, mock_sleep, policy_client): method test_generate_policy_failed_status (line 899) | def test_generate_policy_failed_status(self, mock_sleep, policy_client): class TestPaginationInCreateOrGet (line 924) | class TestPaginationInCreateOrGet: method test_create_or_get_policy_engine_with_pagination (line 928) | def test_create_or_get_policy_engine_with_pagination(self, mock_sleep,... method test_create_or_get_policy_engine_conflict_exception (line 946) | def test_create_or_get_policy_engine_conflict_exception(self, mock_sle... method test_create_or_get_policy_with_pagination (line 970) | def test_create_or_get_policy_with_pagination(self, mock_sleep, policy... method test_create_or_get_policy_conflict_exception (line 989) | def test_create_or_get_policy_conflict_exception(self, mock_sleep, pol... class TestWaitForPolicyDeleted (line 1020) | class TestWaitForPolicyDeleted: method test_wait_for_policy_deleted_success (line 1024) | def test_wait_for_policy_deleted_success(self, mock_sleep, policy_clie... method test_wait_for_policy_deleted_timeout (line 1042) | def test_wait_for_policy_deleted_timeout(self, mock_sleep, policy_clie... method test_wait_for_policy_deleted_unexpected_status (line 1056) | def test_wait_for_policy_deleted_unexpected_status(self, mock_sleep, p... class TestExceptionHandling (line 1069) | class TestExceptionHandling: method test_create_policy_generic_exception (line 1072) | def test_create_policy_generic_exception(self, policy_client): method test_update_policy_generic_exception (line 1090) | def test_update_policy_generic_exception(self, policy_client): method test_delete_policy_generic_exception (line 1107) | def test_delete_policy_generic_exception(self, policy_client): method test_update_policy_not_found (line 1123) | def test_update_policy_not_found(self, policy_client): method test_delete_policy_not_found (line 1138) | def test_delete_policy_not_found(self, policy_client): method test_start_policy_generation_engine_not_found (line 1152) | def test_start_policy_generation_engine_not_found(self, policy_client): method test_list_policy_generation_assets_not_found (line 1168) | def test_list_policy_generation_assets_not_found(self, policy_client): method test_list_policy_generation_assets_generic_exception (line 1182) | def test_list_policy_generation_assets_generic_exception(self, policy_... method test_list_policy_generations_engine_not_found (line 1198) | def test_list_policy_generations_engine_not_found(self, policy_client): method test_list_policy_generations_generic_exception (line 1212) | def test_list_policy_generations_generic_exception(self, policy_client): method test_get_policy_generation_generic_exception (line 1228) | def test_get_policy_generation_generic_exception(self, policy_client): method test_wait_for_policy_engine_generic_exception (line 1245) | def test_wait_for_policy_engine_generic_exception(self, mock_sleep, po... method test_wait_for_policy_generic_exception (line 1262) | def test_wait_for_policy_generic_exception(self, mock_sleep, policy_cl... method test_wait_for_policy_deleted_generic_exception (line 1279) | def test_wait_for_policy_deleted_generic_exception(self, mock_sleep, p... class TestAdditionalEdgeCases (line 1297) | class TestAdditionalEdgeCases: method test_update_policy_engine_with_no_description (line 1300) | def test_update_policy_engine_with_no_description(self, policy_client): method test_update_policy_engine_not_found (line 1318) | def test_update_policy_engine_not_found(self, policy_client): method test_list_policy_engines_generic_exception (line 1332) | def test_list_policy_engines_generic_exception(self, policy_client): method test_delete_policy_engine_not_found (line 1344) | def test_delete_policy_engine_not_found(self, policy_client): method test_create_policy_without_optional_params (line 1358) | def test_create_policy_without_optional_params(self, policy_client): method test_update_policy_without_optional_params (line 1378) | def test_update_policy_without_optional_params(self, policy_client): method test_list_policies_engine_not_found (line 1399) | def test_list_policies_engine_not_found(self, policy_client): method test_list_policies_generic_exception (line 1413) | def test_list_policies_generic_exception(self, policy_client): method test_start_policy_generation_without_client_token (line 1429) | def test_start_policy_generation_without_client_token(self, policy_cli... method test_get_policy_generic_exception (line 1451) | def test_get_policy_generic_exception(self, policy_client): method test_update_policy_engine_generic_exception (line 1467) | def test_update_policy_engine_generic_exception(self, policy_client): method test_get_policy_engine_generic_exception (line 1483) | def test_get_policy_engine_generic_exception(self, policy_client): method test_delete_policy_engine_generic_exception (line 1499) | def test_delete_policy_engine_generic_exception(self, policy_client): method test_create_policy_engine_not_found (line 1515) | def test_create_policy_engine_not_found(self, policy_client): method test_create_policy_not_found (line 1531) | def test_create_policy_not_found(self, policy_client): class TestCreateOrGetWithWaitingStatus (line 1547) | class TestCreateOrGetWithWaitingStatus: method test_create_or_get_policy_engine_finds_creating_engine (line 1551) | def test_create_or_get_policy_engine_finds_creating_engine(self, mock_... method test_create_or_get_policy_engine_conflict_not_found_after_retry (line 1578) | def test_create_or_get_policy_engine_conflict_not_found_after_retry(se... method test_create_or_get_policy_finds_creating_policy (line 1600) | def test_create_or_get_policy_finds_creating_policy(self, mock_sleep, ... method test_create_or_get_policy_conflict_not_found_after_retry (line 1630) | def test_create_or_get_policy_conflict_not_found_after_retry(self, moc... class TestDeepPaginationEdgeCases (line 1657) | class TestDeepPaginationEdgeCases: method test_create_or_get_policy_engine_deep_pagination_before_find (line 1661) | def test_create_or_get_policy_engine_deep_pagination_before_find(self,... method test_create_or_get_policy_deep_pagination_before_find (line 1679) | def test_create_or_get_policy_deep_pagination_before_find(self, mock_s... class TestCleanupOperations (line 1698) | class TestCleanupOperations: method test_cleanup_policy_engine_full_flow (line 1702) | def test_cleanup_policy_engine_full_flow(self, mock_sleep, policy_clie... method test_cleanup_policy_engine_with_pagination (line 1727) | def test_cleanup_policy_engine_with_pagination(self, mock_sleep, polic... method test_cleanup_policy_engine_with_errors (line 1750) | def test_cleanup_policy_engine_with_errors(self, mock_sleep, policy_cl... method test_cleanup_policy_engine_list_error (line 1762) | def test_cleanup_policy_engine_list_error(self, mock_sleep, policy_cli... method test_cleanup_policy_engine_delete_engine_error (line 1776) | def test_cleanup_policy_engine_delete_engine_error(self, mock_sleep, p... FILE: tests/operations/runtime/test_configure.py class TestConfigureBedrockAgentCore (line 18) | class TestConfigureBedrockAgentCore: method test_configure_bedrock_agentcore_basic (line 21) | def test_configure_bedrock_agentcore_basic( method test_configure_with_memory_options (line 100) | def test_configure_with_memory_options( method test_configure_with_non_python_file (line 161) | def test_configure_with_non_python_file( method test_configure_with_ecr_options (line 214) | def test_configure_with_ecr_options( method test_configure_role_arn_formatting (line 274) | def test_configure_role_arn_formatting( method test_configure_bedrock_agentcore (line 343) | def test_configure_bedrock_agentcore( method test_configure_with_minimal_defaults (line 425) | def test_configure_with_minimal_defaults( method test_configure_with_code_build_execution_role (line 516) | def test_configure_with_code_build_execution_role( method test_configure_with_request_header_allowlist (line 588) | def test_configure_with_request_header_allowlist( method test_configure_without_code_build_execution_role (line 668) | def test_configure_without_code_build_execution_role( method test_configure_with_none_request_header_configuration (line 724) | def test_configure_with_none_request_header_configuration( method test_configure_with_empty_request_header_configuration (line 787) | def test_configure_with_empty_request_header_configuration( method test_configure_verbose_logs_request_header_configuration (line 852) | def test_configure_verbose_logs_request_header_configuration( method test_configure_complex_request_header_configuration (line 925) | def test_configure_complex_request_header_configuration( method test_configure_with_all_authorization_options (line 1010) | def test_configure_with_all_authorization_options( method test_configure_with_vpc_enabled_valid_resources (line 1098) | def test_configure_with_vpc_enabled_valid_resources( method test_configure_with_source_path_parameter (line 1171) | def test_configure_with_source_path_parameter( method test_configure_with_protocol_parameter (line 1226) | def test_configure_with_protocol_parameter( method test_configure_vpc_requires_both_subnets_and_security_groups (line 1296) | def test_configure_vpc_requires_both_subnets_and_security_groups( method test_configure_vpc_subnet_format_validation (line 1360) | def test_configure_vpc_subnet_format_validation( method test_configure_vpc_security_group_format_validation (line 1424) | def test_configure_vpc_security_group_format_validation( method test_configure_vpc_immutability_check (line 1488) | def test_configure_vpc_immutability_check( method test_configure_default_public_mode (line 1561) | def test_configure_default_public_mode( method test_configure_interactive_memory_selection_skip (line 1627) | def test_configure_interactive_memory_selection_skip( class TestValidateAgentName (line 1684) | class TestValidateAgentName: method test_valid_agent_names (line 1687) | def test_valid_agent_names(self): method test_invalid_agent_names_with_special_characters (line 1706) | def test_invalid_agent_names_with_special_characters(self): method test_agent_names_too_long (line 1721) | def test_agent_names_too_long(self): method test_empty_and_none_agent_names (line 1735) | def test_empty_and_none_agent_names(self): method test_validate_agent_name_additional_patterns (line 1746) | def test_validate_agent_name_additional_patterns(self): class TestLifecycleConfiguration (line 1763) | class TestLifecycleConfiguration: method test_configure_with_idle_timeout (line 1766) | def test_configure_with_idle_timeout( method test_configure_with_max_lifetime (line 1822) | def test_configure_with_max_lifetime( method test_configure_with_both_lifecycle_parameters (line 1878) | def test_configure_with_both_lifecycle_parameters( method test_configure_verbose_logs_lifecycle_configuration (line 1936) | def test_configure_verbose_logs_lifecycle_configuration( class TestMemoryModeConfiguration (line 1997) | class TestMemoryModeConfiguration: method test_configure_with_no_memory_mode (line 2000) | def test_configure_with_no_memory_mode( method test_configure_non_interactive_stm_and_ltm (line 2058) | def test_configure_non_interactive_stm_and_ltm( method test_configure_interactive_use_existing_memory (line 2115) | def test_configure_interactive_use_existing_memory( method test_configure_interactive_skip_memory (line 2173) | def test_configure_interactive_skip_memory( class TestSourcePathConfiguration (line 2230) | class TestSourcePathConfiguration: method test_configure_with_source_path (line 2233) | def test_configure_with_source_path( method test_source_path_expanded_for_root_dependencies (line 2291) | def test_source_path_expanded_for_root_dependencies( class TestHelperFunctions (line 2352) | class TestHelperFunctions: method test_get_relative_path_with_whitespace_path (line 2355) | def test_get_relative_path_with_whitespace_path(self): method test_get_relative_path_outside_base (line 2366) | def test_get_relative_path_outside_base(self, tmp_path): method test_get_relative_path_normal_case (line 2378) | def test_get_relative_path_normal_case(self, tmp_path): method test_detect_entrypoint_not_found (line 2393) | def test_detect_entrypoint_not_found(self, tmp_path): method test_detect_entrypoint_finds_agent_py (line 2401) | def test_detect_entrypoint_finds_agent_py(self, tmp_path): method test_detect_entrypoint_finds_app_py (line 2413) | def test_detect_entrypoint_finds_app_py(self, tmp_path): method test_detect_entrypoint_finds_main_py (line 2425) | def test_detect_entrypoint_finds_main_py(self, tmp_path): method test_detect_entrypoint_priority_order (line 2437) | def test_detect_entrypoint_priority_order(self, tmp_path): method test_infer_agent_name_with_py_extension (line 2458) | def test_infer_agent_name_with_py_extension(self, tmp_path): method test_infer_agent_name_with_nested_path (line 2467) | def test_infer_agent_name_with_nested_path(self, tmp_path): method test_infer_agent_name_with_spaces (line 2480) | def test_infer_agent_name_with_spaces(self, tmp_path): class TestProtocolConfiguration (line 2492) | class TestProtocolConfiguration: method test_configure_with_mcp_protocol (line 2495) | def test_configure_with_mcp_protocol( method test_configure_with_a2a_protocol (line 2550) | def test_configure_with_a2a_protocol( class TestTypeScriptConfigure (line 2606) | class TestTypeScriptConfigure: method test_configure_typescript_project (line 2609) | def test_configure_typescript_project(self, mock_boto3_clients, mock_c... FILE: tests/operations/runtime/test_create_role.py class TestCreateRole (line 20) | class TestCreateRole: method mock_session (line 24) | def mock_session(self): method mock_logger (line 32) | def mock_logger(self): method test_get_or_create_runtime_execution_role_success (line 36) | def test_get_or_create_runtime_execution_role_success(self, mock_sessi... method test_get_or_create_runtime_execution_role_with_custom_name (line 77) | def test_get_or_create_runtime_execution_role_with_custom_name(self, m... method test_get_or_create_runtime_execution_role_already_exists (line 119) | def test_get_or_create_runtime_execution_role_already_exists(self, moc... method test_get_or_create_runtime_execution_role_check_error (line 141) | def test_get_or_create_runtime_execution_role_check_error(self, mock_s... method test_get_or_create_runtime_execution_role_create_error (line 163) | def test_get_or_create_runtime_execution_role_create_error(self, mock_... method test_attach_inline_policy_success (line 201) | def test_attach_inline_policy_success(self, mock_session, mock_logger): method test_attach_inline_policy_error (line 219) | def test_attach_inline_policy_error(self, mock_session, mock_logger): method test_generate_deterministic_suffix (line 239) | def test_generate_deterministic_suffix(self): method test_create_iam_role_with_policies_success (line 262) | def test_create_iam_role_with_policies_success(self, mock_session, moc... method test_create_iam_role_with_policies_already_exists (line 294) | def test_create_iam_role_with_policies_already_exists(self, mock_sessi... method test_create_iam_role_with_policies_get_existing_error (line 325) | def test_create_iam_role_with_policies_get_existing_error(self, mock_s... method test_create_iam_role_with_policies_access_denied (line 350) | def test_create_iam_role_with_policies_access_denied(self, mock_sessio... method test_create_iam_role_with_policies_limit_exceeded (line 372) | def test_create_iam_role_with_policies_limit_exceeded(self, mock_sessi... method test_get_or_create_codebuild_execution_role_success (line 394) | def test_get_or_create_codebuild_execution_role_success(self, mock_ses... method test_get_or_create_codebuild_execution_role_already_exists (line 432) | def test_get_or_create_codebuild_execution_role_already_exists(self, m... method test_get_or_create_codebuild_execution_role_check_error (line 451) | def test_get_or_create_codebuild_execution_role_check_error(self, mock... method test_attach_inline_policy_limit_exceeded_error (line 469) | def test_attach_inline_policy_limit_exceeded_error(self, mock_session,... method test_get_or_create_runtime_execution_role_entity_already_exists_during_creation (line 487) | def test_get_or_create_runtime_execution_role_entity_already_exists_du... method test_get_or_create_runtime_execution_role_limit_exceeded_error (line 530) | def test_get_or_create_runtime_execution_role_limit_exceeded_error(sel... method test_execution_policy_not_double_encoded (line 567) | def test_execution_policy_not_double_encoded(self, mock_session, mock_... FILE: tests/operations/runtime/test_destroy.py function create_test_config (line 24) | def create_test_config( function create_undeployed_config (line 71) | def create_undeployed_config(tmp_path, agent_name="test-agent"): function create_test_config_with_memory (line 99) | def create_test_config_with_memory( class TestDestroyBedrockAgentCore (line 147) | class TestDestroyBedrockAgentCore: method test_destroy_nonexistent_config (line 150) | def test_destroy_nonexistent_config(self, tmp_path): method test_destroy_nonexistent_agent (line 157) | def test_destroy_nonexistent_agent(self, tmp_path): method test_destroy_undeployed_agent (line 164) | def test_destroy_undeployed_agent(self, tmp_path): method test_destroy_dry_run (line 177) | def test_destroy_dry_run(self, tmp_path): method test_destroy_with_memory_cleanup (line 193) | def test_destroy_with_memory_cleanup(self, mock_session, mock_client_c... method test_destroy_with_errors (line 250) | def test_destroy_with_errors(self, mock_session, mock_client_class, tm... method test_destroy_resource_not_found (line 286) | def test_destroy_resource_not_found(self, mock_session, mock_client_cl... method test_destroy_multiple_agents_same_role (line 329) | def test_destroy_multiple_agents_same_role(self, tmp_path): method test_config_cleanup_after_destroy (line 390) | def test_config_cleanup_after_destroy(self, tmp_path): method test_destroy_default_endpoint_skip (line 409) | def test_destroy_default_endpoint_skip(self, mock_session, mock_client... method test_destroy_ecr_empty_repo_with_repo_deletion (line 460) | def test_destroy_ecr_empty_repo_with_repo_deletion(self, mock_session,... method test_destroy_ecr_image_deletion_with_repo_deletion_success (line 511) | def test_destroy_ecr_image_deletion_with_repo_deletion_success(self, m... method test_destroy_ecr_partial_image_deletion_failure (line 572) | def test_destroy_ecr_partial_image_deletion_failure(self, mock_session... method test_destroy_ecr_repository_not_found (line 640) | def test_destroy_ecr_repository_not_found(self, mock_session, mock_cli... method test_destroy_ecr_images_with_digest_only (line 691) | def test_destroy_ecr_images_with_digest_only(self, mock_session, mock_... method test_destroy_ecr_images_mixed_tags_and_digests (line 754) | def test_destroy_ecr_images_mixed_tags_and_digests(self, mock_session,... method test_destroy_ecr_repository_not_empty_exception (line 824) | def test_destroy_ecr_repository_not_empty_exception(self, mock_session... method test_destroy_ecr_generic_error_handling (line 871) | def test_destroy_ecr_generic_error_handling(self, mock_session, mock_c... method test_destroy_ecr_repository_generic_exception (line 918) | def test_destroy_ecr_repository_generic_exception(self, mock_session, ... method test_destroy_codebuild_project_non_not_found_error (line 968) | def test_destroy_codebuild_project_non_not_found_error(self, mock_sess... method test_config_cleanup_default_agent_change (line 1015) | def test_config_cleanup_default_agent_change(self, tmp_path): method test_config_cleanup_non_default_agent (line 1095) | def test_config_cleanup_non_default_agent(self, tmp_path): method test_destroy_dry_run_with_ecr_repo_deletion (line 1177) | def test_destroy_dry_run_with_ecr_repo_deletion(self, mock_session, mo... method test_destroy_unexpected_exception (line 1222) | def test_destroy_unexpected_exception(self, tmp_path): method test_destroy_with_config_update_failure (line 1235) | def test_destroy_with_config_update_failure(self, mock_session, mock_c... method test_destroy_multiple_service_errors (line 1285) | def test_destroy_multiple_service_errors(self, mock_session, mock_clie... method test_destroy_agent_not_found_error (line 1330) | def test_destroy_agent_not_found_error(self, tmp_path): method test_destroy_get_agent_config_returns_none (line 1339) | def test_destroy_get_agent_config_returns_none(self, tmp_path): method test_destroy_undeployed_agent_specific_case (line 1358) | def test_destroy_undeployed_agent_specific_case(self, tmp_path): method test_destroy_endpoint_deletion_error_cases (line 1374) | def test_destroy_endpoint_deletion_error_cases(self, mock_session, moc... method test_destroy_endpoint_no_arn_case (line 1427) | def test_destroy_endpoint_no_arn_case(self, mock_session, mock_client_... method test_destroy_agent_not_found_warning (line 1476) | def test_destroy_agent_not_found_warning(self, mock_session, mock_clie... method test_destroy_agent_general_exception (line 1526) | def test_destroy_agent_general_exception(self, mock_session, mock_clie... method test_destroy_ecr_empty_repo_dry_run_with_deletion (line 1550) | def test_destroy_ecr_empty_repo_dry_run_with_deletion(self, mock_sessi... method test_destroy_ecr_repo_deletion_failure_condition (line 1597) | def test_destroy_ecr_repo_deletion_failure_condition(self, mock_sessio... method test_destroy_iam_policy_detachment_failure (line 1660) | def test_destroy_iam_policy_detachment_failure(self, mock_session, moc... method test_destroy_iam_inline_policy_deletion_failure (line 1738) | def test_destroy_iam_inline_policy_deletion_failure(self, mock_session... method test_destroy_iam_role_no_such_entity_error (line 1814) | def test_destroy_iam_role_no_such_entity_error(self, mock_session, moc... method test_destroy_config_cleanup_agent_not_found (line 1861) | def test_destroy_config_cleanup_agent_not_found(self, mock_session, mo... method test_cleanup_agent_config_agent_not_found (line 1919) | def test_cleanup_agent_config_agent_not_found(self, tmp_path): method test_destroy_agent_not_deployed_new_warning (line 1943) | def test_destroy_agent_not_deployed_new_warning(self, tmp_path): method test_destroy_endpoint_not_found_during_deletion (line 1960) | def test_destroy_endpoint_not_found_during_deletion(self, mock_session... class TestDestroyHelpers (line 2014) | class TestDestroyHelpers: method test_destroy_agentcore_endpoint_no_agent_id (line 2019) | def test_destroy_agentcore_endpoint_no_agent_id(self, mock_session, mo... method test_destroy_result_model (line 2039) | def test_destroy_result_model(self): method test_destroy_codebuild_iam_role_success (line 2063) | def test_destroy_codebuild_iam_role_success(self, mock_session, tmp_pa... method test_destroy_codebuild_iam_role_dry_run (line 2114) | def test_destroy_codebuild_iam_role_dry_run(self, mock_session, tmp_pa... method test_destroy_codebuild_iam_role_no_role (line 2145) | def test_destroy_codebuild_iam_role_no_role(self, mock_session, tmp_pa... method test_destroy_codebuild_iam_role_error_handling (line 2172) | def test_destroy_codebuild_iam_role_error_handling(self, mock_session,... method test_destroy_additional_coverage_test (line 2204) | def test_destroy_additional_coverage_test(self, tmp_path): method test_destroy_iam_role_non_nosuchentity_error_coverage (line 2217) | def test_destroy_iam_role_non_nosuchentity_error_coverage(self, mock_s... method test_delete_ecr_repository_success (line 2262) | def test_delete_ecr_repository_success(self, tmp_path): method test_delete_ecr_repository_not_empty (line 2288) | def test_delete_ecr_repository_not_empty(self, tmp_path): method test_delete_ecr_repository_not_found (line 2313) | def test_delete_ecr_repository_not_found(self, tmp_path): method test_delete_ecr_repository_deletion_error (line 2340) | def test_delete_ecr_repository_deletion_error(self, tmp_path): method test_delete_ecr_repository_generic_error (line 2368) | def test_delete_ecr_repository_generic_error(self, tmp_path): FILE: tests/operations/runtime/test_invoke.py class TestInvokeBedrockAgentCore (line 19) | class TestInvokeBedrockAgentCore: method test_invoke_success (line 22) | def test_invoke_success(self, mock_boto3_clients, tmp_path): method test_invoke_missing_config (line 65) | def test_invoke_missing_config(self, tmp_path): method test_invoke_with_custom_session_id (line 72) | def test_invoke_with_custom_session_id(self, mock_boto3_clients, tmp_p... method test_invoke_string_payload (line 104) | def test_invoke_string_payload(self, mock_boto3_clients, tmp_path): method test_invoke_with_bearer_token (line 132) | def test_invoke_with_bearer_token(self, tmp_path): method test_invoke_bearer_token_with_session_id (line 178) | def test_invoke_bearer_token_with_session_id(self, tmp_path): method test_invoke_without_bearer_token_uses_boto3 (line 224) | def test_invoke_without_bearer_token_uses_boto3(self, mock_boto3_clien... method test_invoke_local_mode_success (line 258) | def test_invoke_local_mode_success(self, tmp_path): method test_invoke_local_mode_with_bearer_token (line 331) | def test_invoke_local_mode_with_bearer_token(self, tmp_path): method test_invoke_local_mode_creates_workload_if_missing (line 406) | def test_invoke_local_mode_creates_workload_if_missing(self, tmp_path): class TestGetWorkloadName (line 481) | class TestGetWorkloadName: method test_get_workload_name_existing (line 484) | def test_get_workload_name_existing(self, tmp_path): method test_get_workload_name_no_oauth_config (line 515) | def test_get_workload_name_no_oauth_config(self, tmp_path): method test_invoke_with_custom_headers_boto3_client (line 554) | def test_invoke_with_custom_headers_boto3_client(self, mock_boto3_clie... method test_invoke_with_custom_headers_http_client (line 602) | def test_invoke_with_custom_headers_http_client(self, tmp_path): method test_invoke_with_custom_headers_local_client (line 654) | def test_invoke_with_custom_headers_local_client(self, tmp_path): method test_invoke_with_empty_custom_headers (line 719) | def test_invoke_with_empty_custom_headers(self, mock_boto3_clients, tm... method test_invoke_with_none_custom_headers (line 757) | def test_invoke_with_none_custom_headers(self, mock_boto3_clients, tmp... method test_invoke_custom_headers_with_session_id (line 794) | def test_invoke_custom_headers_with_session_id(self, mock_boto3_client... method test_invoke_sync_with_streaming (line 839) | def test_invoke_sync_with_streaming(self, mock_boto3_clients, tmp_path): method test_invoke_with_invalid_json_response (line 866) | def test_invoke_with_invalid_json_response(self, mock_boto3_clients, t... method test_invoke_api_exception (line 893) | def test_invoke_api_exception(self, mock_boto3_clients, tmp_path): method test_invoke_memory_import_error (line 916) | def test_invoke_memory_import_error(self, mock_boto3_clients, tmp_path): class TestUpdateWorkloadIdentityWithCallbackUrl (line 946) | class TestUpdateWorkloadIdentityWithCallbackUrl: method test_update_workload_identity_callback_url_already_exists (line 947) | def test_update_workload_identity_callback_url_already_exists(self): method test_update_workload_identity_callback_url_new (line 964) | def test_update_workload_identity_callback_url_new(self): method test_update_workload_identity_callback_url_empty_list (line 987) | def test_update_workload_identity_callback_url_empty_list(self): method test_update_workload_identity_callback_url_missing_from_response (line 1004) | def test_update_workload_identity_callback_url_missing_from_response(s... FILE: tests/operations/runtime/test_launch.py function create_test_config (line 27) | def create_test_config( function create_test_agent_file (line 69) | def create_test_agent_file(tmp_path, filename="test_agent.py", content="... function create_test_dockerfile (line 76) | def create_test_dockerfile(tmp_path, agent_name="test-agent", source_pat... class MockAWSClientFactory (line 100) | class MockAWSClientFactory: method __init__ (line 103) | def __init__(self, account="123456789012", region="us-west-2"): method _setup_clients (line 108) | def _setup_clients(self): method get_client (line 138) | def get_client(self, service_name): method setup_full_session_mock (line 148) | def setup_full_session_mock(self, mock_boto3_clients): method setup_session_mock (line 154) | def setup_session_mock(self, mock_boto3_clients): function assert_codebuild_workflow_called (line 159) | def assert_codebuild_workflow_called(mock_factory): function assert_config_updated_with_role (line 166) | def assert_config_updated_with_role(config_path, expected_role_arn): function assert_no_agent_deployment_calls (line 176) | def assert_no_agent_deployment_calls(mock_boto3_clients): class TestLaunchBedrockAgentCore (line 182) | class TestLaunchBedrockAgentCore: method test_launch_local_mode (line 185) | def test_launch_local_mode(self, mock_container_runtime, tmp_path): method test_launch_cloud_with_ecr_auto_create (line 207) | def test_launch_cloud_with_ecr_auto_create(self, mock_boto3_clients, m... method test_ensure_ecr_repository_no_auto_create_no_repo (line 242) | def test_ensure_ecr_repository_no_auto_create_no_repo(self, mock_boto3... method test_launch_cloud_existing_agent (line 269) | def test_launch_cloud_existing_agent(self, mock_boto3_clients, mock_co... method test_launch_build_failure (line 292) | def test_launch_build_failure(self, mock_container_runtime, tmp_path): method test_launch_missing_config (line 308) | def test_launch_missing_config(self, tmp_path): method test_launch_invalid_config (line 315) | def test_launch_invalid_config(self, tmp_path): method test_launch_local_build_cloud_deployment (line 324) | def test_launch_local_build_cloud_deployment(self, mock_boto3_clients,... method test_launch_missing_ecr_repository (line 397) | def test_launch_missing_ecr_repository(self, mock_boto3_clients, mock_... method test_launch_cloud_with_execution_role_auto_create (line 436) | def test_launch_cloud_with_execution_role_auto_create(self, mock_boto3... method test_launch_with_invalid_agent_name (line 503) | def test_launch_with_invalid_agent_name(self, tmp_path): method test_launch_cloud_with_existing_execution_role (line 527) | def test_launch_cloud_with_existing_execution_role(self, mock_boto3_cl... method test_port_configuration (line 610) | def test_port_configuration(self, mock_container_runtime, tmp_path): method test_network_configuration_validation (line 637) | def test_network_configuration_validation(self, tmp_path): method test_container_build_failure_handling (line 647) | def test_container_build_failure_handling(self, mock_container_runtime... method test_container_runtime_availability_check (line 665) | def test_container_runtime_availability_check(self, tmp_path): method test_configuration_validation (line 692) | def test_configuration_validation(self, tmp_path): method test_local_launch_result_structure (line 703) | def test_local_launch_result_structure(self, mock_container_runtime, t... method test_env_vars_handling (line 731) | def test_env_vars_handling(self, mock_container_runtime, tmp_path): method test_memory_configuration_handling (line 776) | def test_memory_configuration_handling(self, mock_container_runtime, t... method test_container_runtime_error_handling (line 830) | def test_container_runtime_error_handling(self, mock_container_runtime... method test_launch_missing_execution_role_no_auto_create (line 854) | def test_launch_missing_execution_role_no_auto_create(self, mock_boto3... method test_launch_cloud_conflict_exception_graceful_handling (line 877) | def test_launch_cloud_conflict_exception_graceful_handling( method test_launch_cloud_conflict_exception_disabled_auto_update (line 973) | def test_launch_cloud_conflict_exception_disabled_auto_update( method test_launch_cloud_with_existing_session_id_reset (line 1029) | def test_launch_cloud_with_existing_session_id_reset(self, mock_boto3_... method test_launch_cloud_without_existing_session_id_no_reset (line 1089) | def test_launch_cloud_without_existing_session_id_no_reset( method test_launch_local_mode_no_docker_runtime (line 1141) | def test_launch_local_mode_no_docker_runtime(self, tmp_path): method test_launch_with_codebuild_from_main_function (line 1157) | def test_launch_with_codebuild_from_main_function(self, mock_boto3_cli... method test_launch_codebuild_blocked_in_govcloud (line 1198) | def test_launch_codebuild_blocked_in_govcloud(self, tmp_path): method test_launch_with_memory_creation_codebuild (line 1212) | def test_launch_with_memory_creation_codebuild(self, mock_boto3_client... method test_launch_with_existing_memory_needs_strategies (line 1321) | def test_launch_with_existing_memory_needs_strategies(self, mock_boto3... method test_launch_with_memory_stm_only (line 1389) | def test_launch_with_memory_stm_only(self, mock_boto3_clients, mock_co... method test_launch_with_existing_memory (line 1493) | def test_launch_with_existing_memory(self, mock_boto3_clients, mock_co... method test_launch_with_memory_creation_failure_codebuild (line 1544) | def test_launch_with_memory_creation_failure_codebuild(self, mock_boto... method test_launch_with_existing_memory_add_strategies (line 1615) | def test_launch_with_existing_memory_add_strategies(self, mock_boto3_c... method test_launch_non_codebuild_with_memory_failure (line 1680) | def test_launch_non_codebuild_with_memory_failure(self, mock_boto3_cli... method test_launch_non_codebuild_memory_error_handling (line 1747) | def test_launch_non_codebuild_memory_error_handling(self, mock_boto3_c... method test_launch_local_with_invalid_config (line 1833) | def test_launch_local_with_invalid_config(self, mock_container_runtime... method test_launch_local_with_custom_port (line 1860) | def test_launch_local_with_custom_port(self, mock_container_runtime, t... method test_launch_auto_update_on_conflict (line 1887) | def test_launch_auto_update_on_conflict(self, mock_boto3_clients, mock... method test_launch_with_vpc_validation_success (line 1932) | def test_launch_with_vpc_validation_success(self, mock_boto3_clients, ... method test_launch_with_vpc_local_mode_warning (line 2028) | def test_launch_with_vpc_local_mode_warning(self, mock_container_runti... method test_launch_with_build_context_source_path (line 2084) | def test_launch_with_build_context_source_path(self, mock_container_ru... method test_launch_with_memory_no_memory_mode (line 2123) | def test_launch_with_memory_no_memory_mode(self, mock_container_runtim... method test_launch_cloud_with_region_from_config (line 2170) | def test_launch_cloud_with_region_from_config(self, mock_boto3_clients... method test_launch_vpc_validation_subnet_not_found (line 2213) | def test_launch_vpc_validation_subnet_not_found(self, mock_boto3_clien... method test_launch_with_missing_region_still_works (line 2261) | def test_launch_with_missing_region_still_works(self, mock_container_r... method test_launch_vpc_validation_cross_vpc_error (line 2297) | def test_launch_vpc_validation_cross_vpc_error(self, mock_boto3_client... method test_launch_vpc_service_linked_role_creation (line 2348) | def test_launch_vpc_service_linked_role_creation(self, mock_boto3_clie... method test_launch_vpc_service_linked_role_already_exists (line 2439) | def test_launch_vpc_service_linked_role_already_exists(self, mock_boto... method test_launch_vpc_validation_security_group_different_vpc (line 2531) | def test_launch_vpc_validation_security_group_different_vpc( method test_check_vpc_deployment_no_enis_found (line 2584) | def test_check_vpc_deployment_no_enis_found(self, mock_boto3_clients, ... method test_validate_vpc_resources_public_mode_early_return (line 2607) | def test_validate_vpc_resources_public_mode_early_return(self, tmp_path): method test_validate_vpc_resources_missing_config (line 2627) | def test_validate_vpc_resources_missing_config(self, tmp_path): method test_agent_receives_versioned_uri (line 2644) | def test_agent_receives_versioned_uri(self, mock_boto3_clients, mock_c... method test_codebuild_with_custom_tag (line 2681) | def test_codebuild_with_custom_tag(self, mock_boto3_clients, tmp_path): method test_codebuild_auto_generates_tag (line 2714) | def test_codebuild_auto_generates_tag(self, mock_boto3_clients, tmp_pa... method test_deploy_creates_versioned_image_smoke_test (line 2749) | def test_deploy_creates_versioned_image_smoke_test(self, mock_boto3_cl... class TestEnsureExecutionRole (line 2798) | class TestEnsureExecutionRole: method test_ensure_execution_role_auto_create_success (line 2801) | def test_ensure_execution_role_auto_create_success(self, mock_boto3_cl... method test_ensure_execution_role_existing_role_no_create (line 2848) | def test_ensure_execution_role_existing_role_no_create(self, tmp_path): method test_ensure_execution_role_no_role_no_auto_create (line 2897) | def test_ensure_execution_role_no_role_no_auto_create(self, tmp_path): method test_ensure_execution_role_creation_failure (line 2917) | def test_ensure_execution_role_creation_failure(self, tmp_path): method test_validate_execution_role_url_encoded_policy (line 2943) | def test_validate_execution_role_url_encoded_policy(self): method test_validate_execution_role_invalid_trust_policy (line 2977) | def test_validate_execution_role_invalid_trust_policy(self): method test_validate_execution_role_role_not_found (line 3003) | def test_validate_execution_role_role_not_found(self): method test_launch_with_codebuild_passes_env_vars (line 3019) | def test_launch_with_codebuild_passes_env_vars(self, mock_boto3_client... class TestTransactionSearchIntegration (line 3133) | class TestTransactionSearchIntegration: method test_transaction_search_called_when_observability_enabled (line 3138) | def test_transaction_search_called_when_observability_enabled( method test_transaction_search_not_called_when_observability_disabled (line 3189) | def test_transaction_search_not_called_when_observability_disabled( method test_launch_continues_when_transaction_search_fails (line 3236) | def test_launch_continues_when_transaction_search_fails( method test_transaction_search_with_codebuild_deployment (line 3286) | def test_transaction_search_with_codebuild_deployment( method test_transaction_search_with_different_regions (line 3334) | def test_transaction_search_with_different_regions( method test_transaction_search_not_called_in_local_mode (line 3377) | def test_transaction_search_not_called_in_local_mode(self, mock_contai... class TestCodeZipDeployment (line 3407) | class TestCodeZipDeployment: method test_launch_with_direct_code_deploy_success (line 3410) | def test_launch_with_direct_code_deploy_success(self, mock_boto3_clien... method test_launch_with_direct_code_deploy_package_creation_failure (line 3480) | def test_launch_with_direct_code_deploy_package_creation_failure(self,... method test_launch_with_direct_code_deploy_missing_uv (line 3528) | def test_launch_with_direct_code_deploy_missing_uv(self, mock_boto3_cl... method test_launch_with_direct_code_deploy_missing_zip (line 3546) | def test_launch_with_direct_code_deploy_missing_zip(self, mock_boto3_c... method test_launch_with_direct_code_deploy_with_memory (line 3564) | def test_launch_with_direct_code_deploy_with_memory(self, mock_boto3_c... method test_launch_with_direct_code_deploy_force_rebuild (line 3611) | def test_launch_with_direct_code_deploy_force_rebuild(self, mock_boto3... method test_launch_with_direct_code_deploy_with_env_vars (line 3669) | def test_launch_with_direct_code_deploy_with_env_vars(self, mock_boto3... method test_launch_with_direct_code_deploy_with_observability (line 3724) | def test_launch_with_direct_code_deploy_with_observability(self, mock_... method test_launch_with_direct_code_deploy_session_id_reset (line 3793) | def test_launch_with_direct_code_deploy_session_id_reset(self, mock_bo... method test_validate_vpc_resources_public_mode (line 3846) | def test_validate_vpc_resources_public_mode(self, tmp_path): method test_validate_vpc_resources_missing_config (line 3864) | def test_validate_vpc_resources_missing_config(self, tmp_path): method test_validate_vpc_resources_missing_subnets_or_sgs (line 3883) | def test_validate_vpc_resources_missing_subnets_or_sgs(self, tmp_path): method test_validate_vpc_resources_subnets_in_different_vpcs (line 3905) | def test_validate_vpc_resources_subnets_in_different_vpcs(self, tmp_pa... method test_validate_vpc_resources_subnet_not_found (line 3934) | def test_validate_vpc_resources_subnet_not_found(self, tmp_path): method test_validate_vpc_resources_sg_in_different_vpc (line 3964) | def test_validate_vpc_resources_sg_in_different_vpc(self, tmp_path): method test_ensure_network_service_linked_role_exists (line 3991) | def test_ensure_network_service_linked_role_exists(self): method test_ensure_network_service_linked_role_creates (line 4010) | def test_ensure_network_service_linked_role_creates(self): method test_ensure_network_service_linked_role_already_created (line 4036) | def test_ensure_network_service_linked_role_already_created(self): method test_check_vpc_deployment_with_enis (line 4061) | def test_check_vpc_deployment_with_enis(self): method test_check_vpc_deployment_no_enis (line 4087) | def test_check_vpc_deployment_no_enis(self): method test_check_vpc_deployment_error_handling (line 4103) | def test_check_vpc_deployment_error_handling(self): method test_deploy_to_bedrock_agentcore_with_lifecycle_config (line 4117) | def test_deploy_to_bedrock_agentcore_with_lifecycle_config(self, mock_... method test_deploy_to_bedrock_agentcore_role_validation_retry (line 4165) | def test_deploy_to_bedrock_agentcore_role_validation_retry(self, mock_... method test_deploy_to_bedrock_agentcore_role_validation_max_retries (line 4219) | def test_deploy_to_bedrock_agentcore_role_validation_max_retries(self,... class TestEcrRepoNameResolution (line 4271) | class TestEcrRepoNameResolution: method test_resolve_ecr_repo_name_to_uri_success (line 4274) | def test_resolve_ecr_repo_name_to_uri_success(self, mock_boto3_clients): method test_resolve_ecr_repo_name_to_uri_not_found (line 4285) | def test_resolve_ecr_repo_name_to_uri_not_found(self, mock_boto3_clien... method test_ensure_ecr_repository_full_uri_unchanged (line 4298) | def test_ensure_ecr_repository_full_uri_unchanged(self, tmp_path): method test_ensure_ecr_repository_name_only_resolved (line 4318) | def test_ensure_ecr_repository_name_only_resolved(self, tmp_path): method test_ensure_ecr_repository_name_only_persisted_to_config (line 4343) | def test_ensure_ecr_repository_name_only_persisted_to_config(self, tmp... method test_repo_name_extraction_with_full_uri (line 4366) | def test_repo_name_extraction_with_full_uri(self): method test_repo_name_extraction_with_nested_path (line 4372) | def test_repo_name_extraction_with_nested_path(self): method test_repo_name_extraction_with_name_only (line 4378) | def test_repo_name_extraction_with_name_only(self): method test_repo_name_extraction_without_fix_would_be_empty (line 4384) | def test_repo_name_extraction_without_fix_would_be_empty(self): method test_launch_cloud_with_repo_name_only (line 4395) | def test_launch_cloud_with_repo_name_only(self, mock_boto3_clients, mo... FILE: tests/operations/runtime/test_status.py class TestStatusOperation (line 20) | class TestStatusOperation: method test_status_with_deployed_agent (line 23) | def test_status_with_deployed_agent(self, mock_boto3_clients, tmp_path): method test_status_not_deployed (line 96) | def test_status_not_deployed(self, tmp_path): method test_status_runtime_error (line 126) | def test_status_runtime_error(self, mock_boto3_clients, tmp_path): method test_status_missing_config (line 166) | def test_status_missing_config(self, tmp_path): method test_status_client_initialization_error (line 173) | def test_status_client_initialization_error(self, tmp_path): method test_status_partial_failure (line 209) | def test_status_partial_failure(self, mock_boto3_clients, tmp_path): method test_status_config_info_creation (line 249) | def test_status_config_info_creation(self, mock_boto3_clients, tmp_path): method test_status_with_memory_enabled (line 294) | def test_status_with_memory_enabled(self, mock_boto3_clients, tmp_path): method test_status_with_memory_provisioning (line 373) | def test_status_with_memory_provisioning(self, mock_boto3_clients, tmp... method test_status_with_memory_error (line 437) | def test_status_with_memory_error(self, mock_boto3_clients, tmp_path): method test_status_with_memory_failed_state (line 487) | def test_status_with_memory_failed_state(self, mock_boto3_clients, tmp... method test_status_with_memory_no_strategies (line 551) | def test_status_with_memory_no_strategies(self, mock_boto3_clients, tm... method test_status_with_vpc_configuration (line 609) | def test_status_with_vpc_configuration(self, mock_boto3_clients, tmp_p... method test_status_with_public_network_configuration (line 666) | def test_status_with_public_network_configuration(self, mock_boto3_cli... method test_status_vpc_id_retrieval_failure (line 708) | def test_status_vpc_id_retrieval_failure(self, mock_boto3_clients, tmp... FILE: tests/operations/runtime/test_stopsession.py class TestStopSessionOperation (line 18) | class TestStopSessionOperation: method test_stop_session_with_provided_session_id (line 21) | def test_stop_session_with_provided_session_id(self, mock_boto3_client... method test_stop_session_with_tracked_session_id (line 65) | def test_stop_session_with_tracked_session_id(self, mock_boto3_clients... method test_stop_session_clears_config_when_matching (line 115) | def test_stop_session_clears_config_when_matching(self, mock_boto3_cli... method test_stop_session_doesnt_clear_different_session (line 155) | def test_stop_session_doesnt_clear_different_session(self, mock_boto3_... method test_stop_session_agent_not_deployed (line 196) | def test_stop_session_agent_not_deployed(self, tmp_path): method test_stop_session_no_session_id_provided_or_tracked (line 225) | def test_stop_session_no_session_id_provided_or_tracked(self, mock_bot... method test_stop_session_resource_not_found (line 258) | def test_stop_session_resource_not_found(self, mock_boto3_clients, tmp... method test_stop_session_not_found_error (line 306) | def test_stop_session_not_found_error(self, mock_boto3_clients, tmp_pa... method test_stop_session_other_exception (line 352) | def test_stop_session_other_exception(self, mock_boto3_clients, tmp_pa... method test_stop_session_missing_config (line 388) | def test_stop_session_missing_config(self, tmp_path): method test_stop_session_with_agent_name (line 398) | def test_stop_session_with_agent_name(self, mock_boto3_clients, tmp_pa... method test_stop_session_with_custom_status_code (line 467) | def test_stop_session_with_custom_status_code(self, mock_boto3_clients... method test_stop_session_response_without_status_code (line 500) | def test_stop_session_response_without_status_code(self, mock_boto3_cl... FILE: tests/operations/runtime/test_vpc_validation.py class TestValidateVPCConfiguration (line 15) | class TestValidateVPCConfiguration: method test_validate_vpc_configuration_success (line 18) | def test_validate_vpc_configuration_success(self): method test_validate_vpc_configuration_single_az_warning (line 48) | def test_validate_vpc_configuration_single_az_warning(self): method test_validate_vpc_configuration_subnets_in_different_vpcs (line 81) | def test_validate_vpc_configuration_subnets_in_different_vpcs(self): method test_validate_vpc_configuration_subnet_not_found (line 102) | def test_validate_vpc_configuration_subnet_not_found(self): method test_validate_vpc_configuration_security_groups_in_different_vpcs (line 120) | def test_validate_vpc_configuration_security_groups_in_different_vpcs(... method test_validate_vpc_configuration_security_groups_mismatch_subnet_vpc (line 144) | def test_validate_vpc_configuration_security_groups_mismatch_subnet_vp... method test_validate_vpc_configuration_security_group_not_found (line 165) | def test_validate_vpc_configuration_security_group_not_found(self): method test_validate_vpc_configuration_creates_session_when_none_provided (line 187) | def test_validate_vpc_configuration_creates_session_when_none_provided... class TestCheckNetworkImmutability (line 216) | class TestCheckNetworkImmutability: method test_check_network_immutability_no_change_public (line 219) | def test_check_network_immutability_no_change_public(self): method test_check_network_immutability_no_change_vpc (line 232) | def test_check_network_immutability_no_change_vpc(self): method test_check_network_immutability_mode_change_error (line 245) | def test_check_network_immutability_mode_change_error(self): method test_check_network_immutability_subnet_change_error (line 262) | def test_check_network_immutability_subnet_change_error(self): method test_check_network_immutability_security_group_change_error (line 277) | def test_check_network_immutability_security_group_change_error(self): method test_check_network_immutability_handles_none_values (line 292) | def test_check_network_immutability_handles_none_values(self): method test_check_network_immutability_subnet_order_independent (line 306) | def test_check_network_immutability_subnet_order_independent(self): class TestVerifySubnetAZs (line 321) | class TestVerifySubnetAZs: method test_verify_subnet_azs_all_supported_us_west_2 (line 324) | def test_verify_subnet_azs_all_supported_us_west_2(self): method test_verify_subnet_azs_unsupported_az (line 346) | def test_verify_subnet_azs_unsupported_az(self): method test_verify_subnet_azs_unknown_region (line 366) | def test_verify_subnet_azs_unknown_region(self): method test_verify_subnet_azs_all_supported_us_east_1 (line 384) | def test_verify_subnet_azs_all_supported_us_east_1(self): method test_verify_subnet_azs_mixed_supported_unsupported (line 406) | def test_verify_subnet_azs_mixed_supported_unsupported(self): FILE: tests/services/import_agent/test_import_agent.py function enhanced_mock_boto3_clients (line 18) | def enhanced_mock_boto3_clients(mock_boto3_clients, monkeypatch): class TestImportAgent (line 333) | class TestImportAgent: method test_bedrock_to_strands (line 336) | def test_bedrock_to_strands(self, enhanced_mock_boto3_clients): method test_bedrock_to_langchain (line 350) | def test_bedrock_to_langchain(self, enhanced_mock_boto3_clients): method test_bedrock_to_langchain_with_primitives (line 369) | def test_bedrock_to_langchain_with_primitives( method test_bedrock_to_strands_with_primitives (line 475) | def test_bedrock_to_strands_with_primitives( method test_bedrock_to_langchain_with_function_schema_no_gateway (line 576) | def test_bedrock_to_langchain_with_function_schema_no_gateway(self, en... method test_bedrock_to_strands_with_function_schema_no_gateway (line 592) | def test_bedrock_to_strands_with_function_schema_no_gateway(self, enha... method test_bedrock_to_langchain_with_no_schema_action_group (line 608) | def test_bedrock_to_langchain_with_no_schema_action_group(self, enhanc... FILE: tests/services/test_codebuild.py class TestCodeBuildService (line 12) | class TestCodeBuildService: method mock_session (line 16) | def mock_session(self): method mock_clients (line 23) | def mock_clients(self, mock_session): method codebuild_service (line 59) | def codebuild_service(self, mock_session, mock_clients): method test_init (line 63) | def test_init(self, mock_session): method test_get_source_bucket_name (line 89) | def test_get_source_bucket_name(self, codebuild_service): method test_ensure_source_bucket_create_new (line 96) | def test_ensure_source_bucket_create_new(self, codebuild_service, mock... method test_ensure_source_bucket_existing (line 120) | def test_ensure_source_bucket_existing(self, codebuild_service, mock_c... method test_ensure_source_bucket_access_constraints (line 139) | def test_ensure_source_bucket_access_constraints(self, codebuild_servi... method test_ensure_source_bucket_us_east_1 (line 155) | def test_ensure_source_bucket_us_east_1(self, mock_session, mock_clien... method test_upload_source_success (line 171) | def test_upload_source_success( method test_normalize_s3_location (line 202) | def test_normalize_s3_location(self, codebuild_service): method test_create_codebuild_execution_role_new (line 214) | def test_create_codebuild_execution_role_new(self, codebuild_service, ... method test_create_codebuild_execution_role_existing (line 237) | def test_create_codebuild_execution_role_existing(self, codebuild_serv... method test_create_or_update_project_new (line 257) | def test_create_or_update_project_new(self, codebuild_service, mock_cl... method test_create_or_update_project_existing (line 269) | def test_create_or_update_project_existing(self, codebuild_service, mo... method test_start_build (line 287) | def test_start_build(self, codebuild_service, mock_clients): method test_wait_for_completion_success (line 296) | def test_wait_for_completion_success(self, codebuild_service, mock_cli... method test_wait_for_completion_failure (line 311) | def test_wait_for_completion_failure(self, codebuild_service, mock_cli... method test_wait_for_completion_timeout (line 320) | def test_wait_for_completion_timeout(self, codebuild_service, mock_cli... method test_get_arm64_buildspec (line 330) | def test_get_arm64_buildspec(self, codebuild_service): method test_get_arm64_buildspec_with_custom_tag (line 364) | def test_get_arm64_buildspec_with_custom_tag(self, codebuild_service): method test_parse_dockerignore_from_template (line 371) | def test_parse_dockerignore_from_template(self, codebuild_service): method test_parse_dockerignore_template_fallback (line 388) | def test_parse_dockerignore_template_fallback(self, codebuild_service): method test_parse_dockerignore_existing_file (line 403) | def test_parse_dockerignore_existing_file(self, codebuild_service): method test_parse_dockerignore_no_file (line 418) | def test_parse_dockerignore_no_file(self, codebuild_service): method test_should_ignore_basic_patterns (line 425) | def test_should_ignore_basic_patterns(self, codebuild_service): method test_should_ignore_negation_patterns (line 438) | def test_should_ignore_negation_patterns(self, codebuild_service): method test_negation_patterns_multiple (line 452) | def test_negation_patterns_multiple(self, codebuild_service): method test_negation_patterns_directories (line 461) | def test_negation_patterns_directories(self, codebuild_service): method test_negation_patterns_complex_precedence (line 468) | def test_negation_patterns_complex_precedence(self, codebuild_service): method test_source_upload_with_negation_patterns (line 480) | def test_source_upload_with_negation_patterns(self, codebuild_service,... method test_matches_pattern_exact_match (line 519) | def test_matches_pattern_exact_match(self, codebuild_service): method test_matches_pattern_glob (line 524) | def test_matches_pattern_glob(self, codebuild_service): method test_matches_pattern_directory (line 530) | def test_matches_pattern_directory(self, codebuild_service): method test_source_upload_with_dockerignore (line 536) | def test_source_upload_with_dockerignore(self, codebuild_service, mock... method test_source_upload_with_separate_dockerfile (line 574) | def test_source_upload_with_separate_dockerfile(self, codebuild_servic... method test_project_config_arm64_settings (line 640) | def test_project_config_arm64_settings(self, codebuild_service, mock_c... method test_iam_role_permissions (line 657) | def test_iam_role_permissions(self, codebuild_service, mock_clients): FILE: tests/services/test_ecr.py class TestImageTagGeneration (line 18) | class TestImageTagGeneration: method test_generate_image_tag_format (line 21) | def test_generate_image_tag_format(self): class TestECRService (line 28) | class TestECRService: method test_create_ecr_repository (line 31) | def test_create_ecr_repository(self, mock_boto3_clients): method test_deploy_to_ecr_full_flow (line 50) | def test_deploy_to_ecr_full_flow(self, mock_boto3_clients, mock_contai... method test_deploy_to_ecr_with_custom_tag (line 78) | def test_deploy_to_ecr_with_custom_tag(self, mock_boto3_clients, mock_... method test_ecr_auth_failure (line 97) | def test_ecr_auth_failure(self, mock_boto3_clients, mock_container_run... class TestSanitizeECRRepoName (line 120) | class TestSanitizeECRRepoName: method test_sanitize_basic_name (line 123) | def test_sanitize_basic_name(self): method test_sanitize_name_starting_with_non_alphanumeric (line 131) | def test_sanitize_name_starting_with_non_alphanumeric(self): method test_sanitize_short_name (line 140) | def test_sanitize_short_name(self): method test_sanitize_long_name (line 147) | def test_sanitize_long_name(self): method test_sanitize_name_with_invalid_chars (line 162) | def test_sanitize_name_with_invalid_chars(self): method test_sanitize_complex_name (line 169) | def test_sanitize_complex_name(self): class TestGetOrCreateECRRepository (line 179) | class TestGetOrCreateECRRepository: method test_get_existing_repository (line 182) | def test_get_existing_repository(self, mock_boto3_clients, capsys): method test_create_new_repository (line 201) | def test_create_new_repository(self, mock_boto3_clients, capsys): class TestECRHelpers (line 224) | class TestECRHelpers: method test_get_account_id (line 227) | def test_get_account_id(self, mock_boto3_clients): method test_get_region (line 233) | def test_get_region(self): FILE: tests/services/test_runtime.py function test_get_user_agent_success (line 19) | def test_get_user_agent_success(): function test_get_user_agent_exception_handling (line 28) | def test_get_user_agent_exception_handling(): function test_handle_http_response_empty_content (line 38) | def test_handle_http_response_empty_content(): function test_handle_streaming_response_json_decode_error (line 51) | def test_handle_streaming_response_json_decode_error(): class TestBedrockAgentCoreRuntime (line 70) | class TestBedrockAgentCoreRuntime: method test_create_or_update_agent (line 73) | def test_create_or_update_agent(self, mock_boto3_clients): method test_wait_for_endpoint_ready (line 105) | def test_wait_for_endpoint_ready(self, mock_boto3_clients): method test_wait_for_endpoint_ready_resource_not_found (line 115) | def test_wait_for_endpoint_ready_resource_not_found(self, mock_boto3_c... method test_invoke_endpoint (line 142) | def test_invoke_endpoint(self, mock_boto3_clients): method test_invoke_endpoint_with_custom_headers (line 165) | def test_invoke_endpoint_with_custom_headers(self, mock_boto3_clients): method test_invoke_endpoint_with_empty_custom_headers (line 204) | def test_invoke_endpoint_with_empty_custom_headers(self, mock_boto3_cl... method test_invoke_endpoint_with_none_custom_headers (line 227) | def test_invoke_endpoint_with_none_custom_headers(self, mock_boto3_cli... method test_invoke_endpoint_headers_cleanup_on_exception (line 250) | def test_invoke_endpoint_headers_cleanup_on_exception(self, mock_boto3... method test_invoke_endpoint_multiple_custom_headers (line 277) | def test_invoke_endpoint_multiple_custom_headers(self, mock_boto3_clie... method test_api_error_handling (line 307) | def test_api_error_handling(self, mock_boto3_clients): method test_generate_session_id (line 316) | def test_generate_session_id(self): method test_client_initialization (line 326) | def test_client_initialization(self, mock_boto3_clients): method test_create_agent_with_optional_configs (line 333) | def test_create_agent_with_optional_configs(self, mock_boto3_clients): method test_create_agent_error_handling (line 362) | def test_create_agent_error_handling(self, mock_boto3_clients): method test_update_agent_with_optional_configs (line 379) | def test_update_agent_with_optional_configs(self, mock_boto3_clients): method test_update_agent_error_handling (line 408) | def test_update_agent_error_handling(self, mock_boto3_clients): method test_get_agent_runtime (line 425) | def test_get_agent_runtime(self, mock_boto3_clients): method test_get_agent_runtime_endpoint (line 442) | def test_get_agent_runtime_endpoint(self, mock_boto3_clients): method test_invoke_endpoint_with_events_error (line 461) | def test_invoke_endpoint_with_events_error(self, mock_boto3_clients): method test_find_agent_by_name_not_found (line 480) | def test_find_agent_by_name_not_found(self): method test_list_agents_with_pagination (line 496) | def test_list_agents_with_pagination(self, mock_boto3_clients): method test_create_agent_with_conflict_and_no_autoupdate (line 520) | def test_create_agent_with_conflict_and_no_autoupdate(self, mock_boto3... method test_wait_for_agent_endpoint_ready_status_failed (line 550) | def test_wait_for_agent_endpoint_ready_status_failed(self, mock_boto3_... method test_wait_for_agent_endpoint_ready_success (line 567) | def test_wait_for_agent_endpoint_ready_success(self, mock_boto3_clients): method test_wait_for_agent_endpoint_ready_timeout (line 581) | def test_wait_for_agent_endpoint_ready_timeout(self, mock_boto3_clients): method test_create_agent_conflict_exception_without_existing_agent (line 594) | def test_create_agent_conflict_exception_without_existing_agent(self, ... method test_wait_for_agent_endpoint_ready_create_failed (line 621) | def test_wait_for_agent_endpoint_ready_create_failed(self, mock_boto3_... method test_wait_for_agent_endpoint_ready_unknown_status (line 639) | def test_wait_for_agent_endpoint_ready_unknown_status(self, mock_boto3... method test_delete_agent_runtime_endpoint_error (line 652) | def test_delete_agent_runtime_endpoint_error(self, mock_boto3_clients): method test_stop_runtime_session_success (line 662) | def test_stop_runtime_session_success(self, mock_boto3_clients): method test_stop_runtime_session_with_custom_endpoint (line 688) | def test_stop_runtime_session_with_custom_endpoint(self, mock_boto3_cl... method test_stop_runtime_session_not_found (line 712) | def test_stop_runtime_session_not_found(self, mock_boto3_clients): method test_stop_runtime_session_not_found_alternative_code (line 730) | def test_stop_runtime_session_not_found_alternative_code(self, mock_bo... method test_stop_runtime_session_other_client_error (line 748) | def test_stop_runtime_session_other_client_error(self, mock_boto3_clie... method test_delete_agent_runtime_endpoint_success (line 766) | def test_delete_agent_runtime_endpoint_success(self, mock_boto3_clients): method test_delete_agent_runtime_endpoint_custom_name (line 786) | def test_delete_agent_runtime_endpoint_custom_name(self, mock_boto3_cl... method test_list_agents_error_handling (line 804) | def test_list_agents_error_handling(self, mock_boto3_clients): method test_find_agent_by_name_error_handling (line 814) | def test_find_agent_by_name_error_handling(self, mock_boto3_clients): method test_create_agent_with_lifecycle_config (line 824) | def test_create_agent_with_lifecycle_config(self, mock_boto3_clients): method test_update_agent_with_lifecycle_config (line 843) | def test_update_agent_with_lifecycle_config(self, mock_boto3_clients): method test_invoke_endpoint_with_user_id (line 862) | def test_invoke_endpoint_with_user_id(self, mock_boto3_clients): class TestHttpBedrockAgentCoreClient (line 887) | class TestHttpBedrockAgentCoreClient: method test_invoke_endpoint_success (line 890) | def test_invoke_endpoint_success(self): method test_invoke_endpoint_with_custom_qualifier (line 939) | def test_invoke_endpoint_with_custom_qualifier(self): method test_invoke_endpoint_http_error (line 964) | def test_invoke_endpoint_http_error(self): method test_invoke_endpoint_connection_error (line 981) | def test_invoke_endpoint_connection_error(self): method test_invoke_endpoint_timeout (line 994) | def test_invoke_endpoint_timeout(self): method test_invoke_endpoint_empty_response (line 1007) | def test_invoke_endpoint_empty_response(self): method test_url_encoding_special_characters (line 1027) | def test_url_encoding_special_characters(self): method test_payload_types (line 1053) | def test_payload_types(self): method test_http_client_invoke_endpoint_invalid_json_payload (line 1089) | def test_http_client_invoke_endpoint_invalid_json_payload(self): class TestLocalBedrockAgentCoreClient (line 1115) | class TestLocalBedrockAgentCoreClient: method test_initialization (line 1118) | def test_initialization(self): method test_invoke_endpoint_success (line 1125) | def test_invoke_endpoint_success(self): method test_invoke_endpoint_with_non_json_payload (line 1180) | def test_invoke_endpoint_with_non_json_payload(self): method test_invoke_endpoint_with_custom_headers (line 1211) | def test_invoke_endpoint_with_custom_headers(self): method test_invoke_endpoint_with_empty_custom_headers (line 1267) | def test_invoke_endpoint_with_empty_custom_headers(self): method test_invoke_endpoint_with_none_custom_headers (line 1314) | def test_invoke_endpoint_with_none_custom_headers(self): method test_local_client_invoke_endpoint_error (line 1361) | def test_local_client_invoke_endpoint_error(self): class TestHandleStreamingResponse (line 1376) | class TestHandleStreamingResponse: method test_handle_streaming_response_with_data_lines (line 1379) | def test_handle_streaming_response_with_data_lines(self): method test_handle_aws_response_byte_parsing (line 1403) | def test_handle_aws_response_byte_parsing(self): FILE: tests/services/test_runtime_conflict_error.py function test_conflict_exception_improved_error_message (line 11) | def test_conflict_exception_improved_error_message(): function test_conflict_exception_with_auto_update_enabled (line 41) | def test_conflict_exception_with_auto_update_enabled(): FILE: tests/services/test_s3.py class TestSanitizeS3BucketName (line 15) | class TestSanitizeS3BucketName: method test_basic_sanitization (line 18) | def test_basic_sanitization(self): method test_special_characters (line 23) | def test_special_characters(self): method test_consecutive_separators (line 28) | def test_consecutive_separators(self): method test_leading_non_alphanumeric (line 33) | def test_leading_non_alphanumeric(self): method test_trailing_non_alphanumeric (line 38) | def test_trailing_non_alphanumeric(self): method test_short_name_fallback (line 43) | def test_short_name_fallback(self): method test_long_name_truncation (line 48) | def test_long_name_truncation(self): class TestGetOrCreateS3Bucket (line 57) | class TestGetOrCreateS3Bucket: method test_existing_bucket (line 61) | def test_existing_bucket(self, mock_boto3_client): method test_permission_error (line 74) | def test_permission_error(self, mock_boto3_client): method test_bucket_not_found_creates_new (line 87) | def test_bucket_not_found_creates_new(self, mock_boto3_client, mock_cr... method test_unexpected_error (line 103) | def test_unexpected_error(self, mock_boto3_client): class TestCreateS3Bucket (line 115) | class TestCreateS3Bucket: method test_create_bucket_us_east_1 (line 119) | def test_create_bucket_us_east_1(self, mock_boto3_client): method test_create_bucket_other_region (line 131) | def test_create_bucket_other_region(self, mock_boto3_client): method test_bucket_already_exists (line 145) | def test_bucket_already_exists(self, mock_boto3_client): method test_create_bucket_error (line 158) | def test_create_bucket_error(self, mock_boto3_client): FILE: tests/services/test_xray.py class TestEnableTransactionSearchIfNeeded (line 20) | class TestEnableTransactionSearchIfNeeded: method test_all_components_need_configuration (line 30) | def test_all_components_need_configuration( method test_partial_configuration_needed (line 76) | def test_partial_configuration_needed( method test_all_components_already_configured (line 116) | def test_all_components_already_configured( method test_session_creation_failure (line 141) | def test_session_creation_failure(self, mock_session): method test_configuration_step_failure (line 151) | def test_configuration_step_failure(self, mock_need_policy, mock_sessi... class TestNeedResourcePolicy (line 170) | class TestNeedResourcePolicy: method test_policy_exists (line 173) | def test_policy_exists(self): method test_policy_does_not_exist (line 184) | def test_policy_does_not_exist(self): method test_no_policies_exist (line 195) | def test_no_policies_exist(self): method test_api_exception (line 204) | def test_api_exception(self): method test_custom_policy_name (line 213) | def test_custom_policy_name(self): class TestNeedTraceDestination (line 225) | class TestNeedTraceDestination: method test_destination_is_cloudwatch_logs (line 228) | def test_destination_is_cloudwatch_logs(self): method test_destination_is_not_cloudwatch_logs (line 237) | def test_destination_is_not_cloudwatch_logs(self): method test_no_destination_set (line 246) | def test_no_destination_set(self): method test_api_exception (line 255) | def test_api_exception(self): class TestNeedIndexingRule (line 265) | class TestNeedIndexingRule: method test_default_rule_exists (line 268) | def test_default_rule_exists(self): method test_no_default_rule (line 279) | def test_no_default_rule(self): method test_no_rules_exist (line 288) | def test_no_rules_exist(self): method test_api_exception (line 297) | def test_api_exception(self): class TestCreateCloudWatchLogsResourcePolicy (line 307) | class TestCreateCloudWatchLogsResourcePolicy: method test_successful_policy_creation (line 310) | def test_successful_policy_creation(self): method test_policy_already_exists (line 345) | def test_policy_already_exists(self): method test_other_client_error (line 354) | def test_other_client_error(self): class TestConfigureTraceSegmentDestination (line 364) | class TestConfigureTraceSegmentDestination: method test_successful_configuration (line 367) | def test_successful_configuration(self): method test_destination_already_configured (line 375) | def test_destination_already_configured(self): method test_other_client_error (line 386) | def test_other_client_error(self): class TestConfigureIndexingRule (line 398) | class TestConfigureIndexingRule: method test_successful_configuration (line 401) | def test_successful_configuration(self): method test_rule_already_configured (line 411) | def test_rule_already_configured(self): method test_other_client_error (line 420) | def test_other_client_error(self): class TestEdgeCasesAndErrorHandling (line 430) | class TestEdgeCasesAndErrorHandling: method test_invalid_parameters (line 444) | def test_invalid_parameters(self, mock_session, region, account_id): method test_partial_failure_scenario (line 464) | def test_partial_failure_scenario(self, mock_create_policy, mock_need_... class TestConfigureTraceSegmentDestinationChecksStatus (line 483) | class TestConfigureTraceSegmentDestinationChecksStatus: method test_checks_status_after_update (line 487) | def test_checks_status_after_update(self, mock_log_status): method test_checks_status_even_when_already_configured (line 497) | def test_checks_status_even_when_already_configured(self, mock_log_sta... FILE: tests/utils/runtime/test_agentcore_identity.py class TestParseEnvFile (line 11) | class TestParseEnvFile: method test_parse_basic_env_file (line 14) | def test_parse_basic_env_file(self, tmp_path): method test_parse_env_file_with_comments (line 23) | def test_parse_env_file_with_comments(self, tmp_path): method test_parse_env_file_with_empty_lines (line 32) | def test_parse_env_file_with_empty_lines(self, tmp_path): method test_parse_env_file_with_double_quotes (line 41) | def test_parse_env_file_with_double_quotes(self, tmp_path): method test_parse_env_file_with_single_quotes (line 50) | def test_parse_env_file_with_single_quotes(self, tmp_path): method test_parse_env_file_with_whitespace (line 59) | def test_parse_env_file_with_whitespace(self, tmp_path): method test_parse_env_file_with_equals_in_value (line 68) | def test_parse_env_file_with_equals_in_value(self, tmp_path): method test_parse_env_file_empty (line 77) | def test_parse_env_file_empty(self, tmp_path): method test_parse_env_file_nonexistent (line 86) | def test_parse_env_file_nonexistent(self, tmp_path): method test_parse_env_file_malformed_lines (line 94) | def test_parse_env_file_malformed_lines(self, tmp_path): class TestLoadApiKeyFromEnvIfConfigured (line 105) | class TestLoadApiKeyFromEnvIfConfigured: method test_no_api_key_configured (line 108) | def test_no_api_key_configured(self, tmp_path): method test_api_key_configured_no_env_file (line 117) | def test_api_key_configured_no_env_file(self, tmp_path): method test_api_key_loaded_successfully (line 126) | def test_api_key_loaded_successfully(self, tmp_path): method test_api_key_not_in_env_file (line 139) | def test_api_key_not_in_env_file(self, tmp_path): method test_api_key_with_quotes (line 152) | def test_api_key_with_quotes(self, tmp_path): method test_different_api_key_names (line 164) | def test_different_api_key_names(self, tmp_path): method test_empty_api_key_value (line 180) | def test_empty_api_key_value(self, tmp_path): FILE: tests/utils/runtime/test_config.py class TestProjectConfiguration (line 29) | class TestProjectConfiguration: method test_load_project_config_single_agent (line 32) | def test_load_project_config_single_agent(self): method test_load_project_config_multiple_agents (line 48) | def test_load_project_config_multiple_agents(self): method test_get_agent_config_by_name (line 71) | def test_get_agent_config_by_name(self): method test_get_default_agent_config (line 83) | def test_get_default_agent_config(self): method test_get_agent_config_no_target_name_single_agent (line 95) | def test_get_agent_config_no_target_name_single_agent(self): method test_get_agent_config_error_handling (line 121) | def test_get_agent_config_error_handling(self): method test_project_config_save_load_cycle (line 134) | def test_project_config_save_load_cycle(self, tmp_path): method test_is_project_config_format_detection (line 154) | def test_is_project_config_format_detection(self): class TestMergeAgentConfig (line 169) | class TestMergeAgentConfig: method _create_test_agent_config (line 172) | def _create_test_agent_config(self, name: str, entrypoint: str = "test... method test_merge_agent_config_first_agent_sets_default (line 192) | def test_merge_agent_config_first_agent_sets_default(self, tmp_path, c... method test_merge_agent_config_changes_default_agent (line 209) | def test_merge_agent_config_changes_default_agent(self, tmp_path, capl... method test_merge_agent_config_keeps_same_default (line 235) | def test_merge_agent_config_keeps_same_default(self, tmp_path, caplog): method test_merge_agent_config_preserves_deployment_info (line 260) | def test_merge_agent_config_preserves_deployment_info(self, tmp_path): method test_merge_agent_config_multiple_agents_scenario (line 289) | def test_merge_agent_config_multiple_agents_scenario(self, tmp_path, c... method test_merge_agent_config_logging_calls (line 333) | def test_merge_agent_config_logging_calls(self, mock_log, tmp_path): class TestRequestHeaderConfigurationSchema (line 356) | class TestRequestHeaderConfigurationSchema: method _create_base_agent_config (line 359) | def _create_base_agent_config(self, name: str = "test-agent") -> Bedro... method test_agent_schema_request_header_configuration_none_default (line 373) | def test_agent_schema_request_header_configuration_none_default(self): method test_agent_schema_request_header_configuration_valid_dict (line 378) | def test_agent_schema_request_header_configuration_valid_dict(self): method test_agent_schema_request_header_configuration_empty_dict (line 390) | def test_agent_schema_request_header_configuration_empty_dict(self): method test_agent_schema_request_header_configuration_complex_structure (line 397) | def test_agent_schema_request_header_configuration_complex_structure(s... method test_project_config_with_request_headers_save_load_cycle (line 414) | def test_project_config_with_request_headers_save_load_cycle(self, tmp... method test_merge_agent_config_replaces_request_header_config (line 441) | def test_merge_agent_config_replaces_request_header_config(self, tmp_p... method test_merge_agent_config_preserves_with_explicit_config (line 463) | def test_merge_agent_config_preserves_with_explicit_config(self, tmp_p... method test_merge_agent_config_updates_request_header_config (line 491) | def test_merge_agent_config_updates_request_header_config(self, tmp_pa... method test_merge_agent_config_clears_request_header_config_when_none (line 517) | def test_merge_agent_config_clears_request_header_config_when_none(sel... method test_agent_schema_serialization_with_request_headers (line 537) | def test_agent_schema_serialization_with_request_headers(self, tmp_path): method test_config_schema_validation_with_request_headers (line 563) | def test_config_schema_validation_with_request_headers(self): method test_multiple_agents_different_request_headers (line 576) | def test_multiple_agents_different_request_headers(self, tmp_path): class TestLegacyFormatTransformation (line 614) | class TestLegacyFormatTransformation: method test_load_legacy_format (line 617) | def test_load_legacy_format(self, tmp_path): class TestConfigValidationErrors (line 651) | class TestConfigValidationErrors: method test_validation_error_field_required (line 654) | def test_validation_error_field_required(self, tmp_path): method test_validation_error_input_type (line 687) | def test_validation_error_input_type(self, tmp_path): method test_general_exception_handling (line 718) | def test_general_exception_handling(self, tmp_path): class TestGetAgentcoreDirectory (line 732) | class TestGetAgentcoreDirectory: method test_get_agentcore_directory_with_source_path (line 735) | def test_get_agentcore_directory_with_source_path(self, tmp_path): method test_get_agentcore_directory_without_source_path (line 751) | def test_get_agentcore_directory_without_source_path(self, tmp_path): method test_get_agentcore_directory_creates_nested_dirs (line 763) | def test_get_agentcore_directory_creates_nested_dirs(self, tmp_path): class TestGetEntrypointFromConfig (line 779) | class TestGetEntrypointFromConfig: method test_config_exists_with_entrypoint (line 782) | def test_config_exists_with_entrypoint(self, tmp_path): method test_config_missing (line 799) | def test_config_missing(self, tmp_path): method test_config_exists_without_entrypoint (line 808) | def test_config_exists_without_entrypoint(self, tmp_path): method test_config_malformed (line 824) | def test_config_malformed(self, tmp_path): method test_config_with_python_entrypoint (line 834) | def test_config_with_python_entrypoint(self, tmp_path): FILE: tests/utils/runtime/test_container.py class TestContainerRuntime (line 11) | class TestContainerRuntime: method test_runtime_auto_detection (line 14) | def test_runtime_auto_detection(self, mock_subprocess): method test_generate_dockerfile (line 27) | def test_generate_dockerfile(self, tmp_path, mock_subprocess): method test_build_image (line 64) | def test_build_image(self, mock_subprocess, tmp_path): method test_run_local_with_credentials (line 91) | def test_run_local_with_credentials(self, mock_boto3_clients, mock_sub... method test_auto_runtime_detection_success (line 107) | def test_auto_runtime_detection_success(self, mock_subprocess): method test_get_module_path_success (line 118) | def test_get_module_path_success(self, tmp_path): method test_get_module_path_root_level (line 132) | def test_get_module_path_root_level(self, tmp_path): method test_get_module_path_bedrock_agentcore_prefix (line 144) | def test_get_module_path_bedrock_agentcore_prefix(self, tmp_path): method test_get_module_path_with_symlink_dirs (line 158) | def test_get_module_path_with_symlink_dirs(self, tmp_path): method test_validate_module_path_success (line 181) | def test_validate_module_path_success(self, tmp_path): method test_registry_login_success (line 195) | def test_registry_login_success(self, mock_subprocess): method test_tag_image_success (line 206) | def test_tag_image_success(self, mock_subprocess): method test_push_image_success (line 217) | def test_push_image_success(self, mock_subprocess): method test_ensure_dockerignore_creation (line 228) | def test_ensure_dockerignore_creation(self, tmp_path): method test_run_local_with_env_vars (line 250) | def test_run_local_with_env_vars(self, mock_boto3_clients, mock_subpro... method test_dockerfile_generation_with_wheelhouse (line 262) | def test_dockerfile_generation_with_wheelhouse(self, tmp_path): method test_dockerfile_generation_with_pyproject (line 305) | def test_dockerfile_generation_with_pyproject(self, tmp_path): method test_source_path_pyproject_normalizes_install_path (line 344) | def test_source_path_pyproject_normalizes_install_path(self, tmp_path): method test_source_path_requirements_normalizes_file_path (line 388) | def test_source_path_requirements_normalizes_file_path(self, tmp_path): method test_is_runtime_installed_success (line 431) | def test_is_runtime_installed_success(self): method test_is_runtime_installed_not_found (line 443) | def test_is_runtime_installed_not_found(self): method test_image_exists_true (line 454) | def test_image_exists_true(self, mock_subprocess): method test_image_exists_false (line 466) | def test_image_exists_false(self, mock_subprocess): method test_image_exists_subprocess_error (line 478) | def test_image_exists_subprocess_error(self): method test_registry_login_failure (line 490) | def test_registry_login_failure(self): method test_registry_login_subprocess_error (line 504) | def test_registry_login_subprocess_error(self): method test_tag_image_failure (line 518) | def test_tag_image_failure(self): method test_push_image_failure (line 532) | def test_push_image_failure(self): method test_get_current_platform_amd64 (line 546) | def test_get_current_platform_amd64(self): method test_get_current_platform_arm64 (line 559) | def test_get_current_platform_arm64(self): method test_get_current_platform_unknown (line 572) | def test_get_current_platform_unknown(self): method test_generate_dockerfile_platform_validation_success (line 581) | def test_generate_dockerfile_platform_validation_success(self, tmp_path): method test_generate_dockerfile_platform_validation_failure (line 611) | def test_generate_dockerfile_platform_validation_failure(self, tmp_path): method test_generate_dockerfile_with_memory (line 655) | def test_generate_dockerfile_with_memory(self, tmp_path): method test_validate_module_path_with_hyphens (line 697) | def test_validate_module_path_with_hyphens(self, tmp_path): method test_validate_module_path_outside_project (line 714) | def test_validate_module_path_outside_project(self, tmp_path): method test_ensure_dockerignore_missing_template (line 733) | def test_ensure_dockerignore_missing_template(self, tmp_path): method test_auto_runtime_detection_no_runtime_available (line 750) | def test_auto_runtime_detection_no_runtime_available(self): method test_explicit_runtime_not_available_warning (line 762) | def test_explicit_runtime_not_available_warning(self): class TestTypeScriptDockerfileGeneration (line 777) | class TestTypeScriptDockerfileGeneration: method test_typescript_template_selection (line 780) | def test_typescript_template_selection(self, tmp_path, mock_subprocess): method test_typescript_entrypoint_transformation (line 809) | def test_typescript_entrypoint_transformation(self, tmp_path, mock_sub... method test_typescript_root_entrypoint_transformation (line 830) | def test_typescript_root_entrypoint_transformation(self, tmp_path, moc... method test_typescript_node_version (line 849) | def test_typescript_node_version(self, tmp_path, mock_subprocess): method test_typescript_with_memory_id (line 869) | def test_typescript_with_memory_id(self, tmp_path, mock_subprocess): method test_transform_ts_entrypoint_tsx (line 889) | def test_transform_ts_entrypoint_tsx(self, mock_subprocess): FILE: tests/utils/runtime/test_create.py class TestResolveCreateProjectConfig (line 20) | class TestResolveCreateProjectConfig: method test_returns_none_for_non_create_project (line 23) | def test_returns_none_for_non_create_project(self, tmp_path, monkeypat... method test_uses_existing_runtime_id_and_arn_when_present (line 63) | def test_uses_existing_runtime_id_and_arn_when_present(self, tmp_path,... method test_finds_runtime_by_name_when_not_set (line 114) | def test_finds_runtime_by_name_when_not_set(self, tmp_path, monkeypatch): method test_raises_exception_when_agent_not_found (line 178) | def test_raises_exception_when_agent_not_found(self, tmp_path, monkeyp... FILE: tests/utils/runtime/test_entrypoint.py class TestParseEntrypoint (line 17) | class TestParseEntrypoint: method test_parse_entrypoint_file_only (line 20) | def test_parse_entrypoint_file_only(self, tmp_path): method test_parse_entrypoint_file_not_found (line 31) | def test_parse_entrypoint_file_not_found(self): class TestDependencies (line 37) | class TestDependencies: method test_detect_dependencies_auto (line 40) | def test_detect_dependencies_auto(self, tmp_path): method test_explicit_requirements_file (line 92) | def test_explicit_requirements_file(self, tmp_path): method test_validate_requirements_file (line 141) | def test_validate_requirements_file(self, tmp_path): method test_get_python_version (line 186) | def test_get_python_version(self): method test_is_root_package_property (line 196) | def test_is_root_package_property(self, tmp_path): method test_posix_path_delimiters_maintained_for_dockerfile (line 235) | def test_posix_path_delimiters_maintained_for_dockerfile(self, tmp_path): method _setup_for_posix_conversion_tests (line 261) | def _setup_for_posix_conversion_tests(tmp_path): class TestDetectEntrypointByLanguage (line 275) | class TestDetectEntrypointByLanguage: method test_python_single_entrypoint (line 278) | def test_python_single_entrypoint(self, tmp_path): method test_python_multiple_entrypoints (line 287) | def test_python_multiple_entrypoints(self, tmp_path): method test_python_no_entrypoint (line 295) | def test_python_no_entrypoint(self, tmp_path): method test_typescript_single_entrypoint (line 300) | def test_typescript_single_entrypoint(self, tmp_path): method test_typescript_first_match_only (line 310) | def test_typescript_first_match_only(self, tmp_path): method test_typescript_src_priority (line 319) | def test_typescript_src_priority(self, tmp_path): method test_typescript_no_entrypoint (line 329) | def test_typescript_no_entrypoint(self, tmp_path): class TestDetectLanguage (line 335) | class TestDetectLanguage: method test_detect_language_with_package_json (line 338) | def test_detect_language_with_package_json(self, tmp_path): method test_detect_language_package_json_only (line 346) | def test_detect_language_package_json_only(self, tmp_path): method test_detect_language_with_requirements_txt (line 353) | def test_detect_language_with_requirements_txt(self, tmp_path): method test_detect_language_empty_directory (line 361) | def test_detect_language_empty_directory(self, tmp_path): method test_detect_language_both_files (line 366) | def test_detect_language_both_files(self, tmp_path): method test_detect_language_python_entrypoint_overrides_package_json (line 375) | def test_detect_language_python_entrypoint_overrides_package_json(self... method test_detect_language_typescript_entrypoint (line 383) | def test_detect_language_typescript_entrypoint(self, tmp_path): method test_detect_language_js_entrypoint (line 388) | def test_detect_language_js_entrypoint(self, tmp_path): method test_detect_language_unknown_extension_falls_back (line 393) | def test_detect_language_unknown_extension_falls_back(self, tmp_path): class TestDetectTypescriptProject (line 402) | class TestDetectTypescriptProject: method test_full_package_json (line 405) | def test_full_package_json(self, tmp_path): method test_minimal_package_json (line 421) | def test_minimal_package_json(self, tmp_path): method test_no_package_json (line 433) | def test_no_package_json(self, tmp_path): method test_node_version_caret (line 438) | def test_node_version_caret(self, tmp_path): method test_node_version_tilde (line 447) | def test_node_version_tilde(self, tmp_path): method test_malformed_json (line 456) | def test_malformed_json(self, tmp_path): class TestTypeScriptProjectInfo (line 465) | class TestTypeScriptProjectInfo: method test_found_property_true (line 468) | def test_found_property_true(self): method test_found_property_false (line 473) | def test_found_property_false(self): method test_default_values (line 478) | def test_default_values(self): FILE: tests/utils/runtime/test_package.py class TestPackageCache (line 10) | class TestPackageCache: method test_init_creates_cache_dir (line 13) | def test_init_creates_cache_dir(self, tmp_path): method test_dependencies_zip_path (line 21) | def test_dependencies_zip_path(self, tmp_path): method test_dependencies_hash_path (line 26) | def test_dependencies_hash_path(self, tmp_path): method test_should_rebuild_force_flag (line 31) | def test_should_rebuild_force_flag(self, tmp_path): method test_should_rebuild_no_cached_zip (line 40) | def test_should_rebuild_no_cached_zip(self, tmp_path): method test_should_rebuild_no_hash_file (line 48) | def test_should_rebuild_no_hash_file(self, tmp_path): method test_should_rebuild_hash_mismatch (line 59) | def test_should_rebuild_hash_mismatch(self, tmp_path): method test_should_rebuild_uv_lock_changes (line 71) | def test_should_rebuild_uv_lock_changes(self, tmp_path): method test_should_not_rebuild_when_cached (line 90) | def test_should_not_rebuild_when_cached(self, tmp_path): method test_should_not_rebuild_when_cached_with_lock (line 102) | def test_should_not_rebuild_when_cached_with_lock(self, tmp_path): method test_save_dependencies_hash (line 118) | def test_save_dependencies_hash(self, tmp_path): method test_save_dependencies_hash_with_lock (line 136) | def test_save_dependencies_hash_with_lock(self, tmp_path): method test_compute_file_hash (line 153) | def test_compute_file_hash(self, tmp_path): class TestCodeZipPackager (line 164) | class TestCodeZipPackager: method test_create_deployment_package_no_requirements (line 167) | def test_create_deployment_package_no_requirements(self, tmp_path): method test_create_deployment_package_with_requirements (line 193) | def test_create_deployment_package_with_requirements(self, mock_build_... method test_create_deployment_package_size_check (line 225) | def test_create_deployment_package_size_check(self, mock_build_deps, t... method test_resolve_pyproject_with_uv (line 249) | def test_resolve_pyproject_with_uv(self, mock_which, mock_run, tmp_path): method test_install_dependencies_with_uv (line 269) | def test_install_dependencies_with_uv(self, mock_which, mock_run, tmp_... method test_build_uv_command (line 289) | def test_build_uv_command(self, tmp_path): method test_build_uv_command_with_cross_compile (line 303) | def test_build_uv_command_with_cross_compile(self, tmp_path): method test_should_cross_compile (line 315) | def test_should_cross_compile(self): method test_build_direct_code_deploy (line 321) | def test_build_direct_code_deploy(self, tmp_path): method test_build_direct_code_deploy_with_subdirs (line 350) | def test_build_direct_code_deploy_with_subdirs(self, tmp_path): method test_merge_zips_with_dependencies (line 371) | def test_merge_zips_with_dependencies(self, tmp_path): method test_merge_zips_code_overwrites_dependencies (line 396) | def test_merge_zips_code_overwrites_dependencies(self, tmp_path): method test_merge_zips_without_dependencies (line 418) | def test_merge_zips_without_dependencies(self, tmp_path): method test_get_ignore_patterns (line 433) | def test_get_ignore_patterns(self): method test_should_ignore_file (line 443) | def test_should_ignore_file(self): method test_should_ignore_directory (line 455) | def test_should_ignore_directory(self): method test_upload_to_s3 (line 468) | def test_upload_to_s3(self, mock_codebuild_class, tmp_path): method test_runtime_version_normalization (line 493) | def test_runtime_version_normalization(self, tmp_path): class TestFixShebangsInBinDir (line 516) | class TestFixShebangsInBinDir: method test_fixes_hardcoded_venv_shebang (line 519) | def test_fixes_hardcoded_venv_shebang(self, tmp_path): method test_fixes_home_dir_shebang (line 535) | def test_fixes_home_dir_shebang(self, tmp_path): method test_leaves_portable_shebang_unchanged (line 550) | def test_leaves_portable_shebang_unchanged(self, tmp_path): method test_leaves_env_python_shebang_unchanged (line 564) | def test_leaves_env_python_shebang_unchanged(self, tmp_path): method test_no_bin_dir (line 578) | def test_no_bin_dir(self, tmp_path): method test_skips_binary_files (line 586) | def test_skips_binary_files(self, tmp_path): method test_fixes_multiple_scripts (line 598) | def test_fixes_multiple_scripts(self, tmp_path): method test_fixes_shebang_with_plain_python (line 620) | def test_fixes_shebang_with_plain_python(self, tmp_path): method test_skips_non_python_shebangs (line 633) | def test_skips_non_python_shebangs(self, tmp_path): method test_skips_files_without_shebang (line 647) | def test_skips_files_without_shebang(self, tmp_path): method test_preserves_script_body (line 661) | def test_preserves_script_body(self, tmp_path): FILE: tests/utils/runtime/test_policy_template.py class TestPolicyTemplate (line 14) | class TestPolicyTemplate: method test_render_trust_policy_template (line 17) | def test_render_trust_policy_template(self): method test_render_execution_policy_template (line 40) | def test_render_execution_policy_template(self): method test_validate_rendered_policy_valid (line 66) | def test_validate_rendered_policy_valid(self): method test_validate_rendered_policy_invalid (line 76) | def test_validate_rendered_policy_invalid(self): method test_template_files_exist (line 83) | def test_template_files_exist(self): method test_policy_has_required_permissions (line 95) | def test_policy_has_required_permissions(self): method test_conditional_ecr_permissions_container (line 132) | def test_conditional_ecr_permissions_container(self): method test_conditional_ecr_permissions_direct_code (line 147) | def test_conditional_ecr_permissions_direct_code(self): method test_conditional_ecr_scoped_to_repository (line 162) | def test_conditional_ecr_scoped_to_repository(self): method test_conditional_ecr_wildcard_when_no_repository (line 180) | def test_conditional_ecr_wildcard_when_no_repository(self): method test_conditional_a2a_runtime_permissions (line 196) | def test_conditional_a2a_runtime_permissions(self): method test_conditional_memory_permissions (line 234) | def test_conditional_memory_permissions(self): method test_conditional_memory_scoped_to_memory_id (line 261) | def test_conditional_memory_scoped_to_memory_id(self): method test_code_interpreter_always_included (line 282) | def test_code_interpreter_always_included(self): method test_all_combinations_valid_json (line 300) | def test_all_combinations_valid_json(self): method test_execution_policy_uses_correct_partition (line 340) | def test_execution_policy_uses_correct_partition(self, region, expecte... method test_defaults_are_secure (line 357) | def test_defaults_are_secure(self): FILE: tests/utils/runtime/test_schema.py class TestNetworkConfiguration (line 18) | class TestNetworkConfiguration: method test_network_mode_validation_invalid (line 21) | def test_network_mode_validation_invalid(self): method test_network_mode_config_required_for_vpc (line 31) | def test_network_mode_config_required_for_vpc(self): method test_network_mode_config_to_aws_dict_with_config (line 40) | def test_network_mode_config_to_aws_dict_with_config(self): method test_network_mode_config_to_aws_dict_without_config (line 57) | def test_network_mode_config_to_aws_dict_without_config(self): class TestProtocolConfiguration (line 67) | class TestProtocolConfiguration: method test_protocol_validation_invalid (line 70) | def test_protocol_validation_invalid(self): method test_protocol_validation_case_insensitive (line 79) | def test_protocol_validation_case_insensitive(self): method test_protocol_to_aws_dict (line 94) | def test_protocol_to_aws_dict(self): class TestAWSConfig (line 102) | class TestAWSConfig: method test_account_validation_invalid_length (line 105) | def test_account_validation_invalid_length(self): method test_account_validation_non_numeric (line 114) | def test_account_validation_non_numeric(self): method test_account_validation_valid (line 123) | def test_account_validation_valid(self): method test_account_validation_none_allowed (line 129) | def test_account_validation_none_allowed(self): class TestBedrockAgentCoreAgentSchema (line 136) | class TestBedrockAgentCoreAgentSchema: method _create_valid_agent_config (line 139) | def _create_valid_agent_config(self) -> BedrockAgentCoreAgentSchema: method test_validate_missing_name (line 154) | def test_validate_missing_name(self): method test_validate_missing_entrypoint (line 165) | def test_validate_missing_entrypoint(self): method test_validate_missing_aws_region_for_cloud (line 176) | def test_validate_missing_aws_region_for_cloud(self): method test_validate_missing_aws_account_for_cloud (line 187) | def test_validate_missing_aws_account_for_cloud(self): method test_validate_missing_execution_role_for_cloud (line 198) | def test_validate_missing_execution_role_for_cloud(self): method test_validate_for_local_skips_aws_checks (line 209) | def test_validate_for_local_skips_aws_checks(self): method test_validate_returns_empty_for_valid_config (line 224) | def test_validate_returns_empty_for_valid_config(self): class TestBedrockAgentCoreConfigSchema (line 233) | class TestBedrockAgentCoreConfigSchema: method _create_test_agent (line 236) | def _create_test_agent(self, name: str) -> BedrockAgentCoreAgentSchema: method test_get_agent_config_no_agents_configured (line 247) | def test_get_agent_config_no_agents_configured(self): method test_get_agent_config_no_default_and_multiple_agents (line 259) | def test_get_agent_config_no_default_and_multiple_agents(self): method test_get_agent_config_agent_not_found (line 271) | def test_get_agent_config_agent_not_found(self): method test_get_agent_config_single_agent_auto_default (line 284) | def test_get_agent_config_single_agent_auto_default(self): method test_get_agent_config_by_name (line 296) | def test_get_agent_config_by_name(self): method test_get_agent_config_uses_default (line 306) | def test_get_agent_config_uses_default(self): class TestAwsJwtConfig (line 317) | class TestAwsJwtConfig: method test_default_values (line 320) | def test_default_values(self): method test_valid_es384_algorithm (line 332) | def test_valid_es384_algorithm(self): method test_valid_rs256_algorithm (line 343) | def test_valid_rs256_algorithm(self): method test_invalid_signing_algorithm (line 354) | def test_invalid_signing_algorithm(self): method test_valid_duration_min (line 364) | def test_valid_duration_min(self): method test_valid_duration_max (line 371) | def test_valid_duration_max(self): method test_invalid_duration_too_short (line 378) | def test_invalid_duration_too_short(self): method test_invalid_duration_too_long (line 388) | def test_invalid_duration_too_long(self): method test_with_audiences (line 398) | def test_with_audiences(self): method test_with_issuer_url (line 409) | def test_with_issuer_url(self): method test_full_configuration (line 420) | def test_full_configuration(self): class TestIdentityConfigAwsJwt (line 439) | class TestIdentityConfigAwsJwt: method test_identity_config_is_enabled_with_oauth_only (line 442) | def test_identity_config_is_enabled_with_oauth_only(self): method test_identity_config_is_not_enabled (line 462) | def test_identity_config_is_not_enabled(self): method test_identity_config_provider_names (line 471) | def test_identity_config_provider_names(self): class TestAwsJwtConfigAtAgentLevel (line 497) | class TestAwsJwtConfigAtAgentLevel: method test_agent_schema_has_aws_jwt (line 500) | def test_agent_schema_has_aws_jwt(self): method test_agent_schema_default_aws_jwt (line 522) | def test_agent_schema_default_aws_jwt(self): class TestTypeScriptSchemaValidation (line 543) | class TestTypeScriptSchemaValidation: method test_language_field_python (line 546) | def test_language_field_python(self): method test_language_field_typescript (line 555) | def test_language_field_typescript(self): method test_language_field_invalid (line 565) | def test_language_field_invalid(self): method test_node_version_field (line 574) | def test_node_version_field(self): method test_node_version_field_optional (line 585) | def test_node_version_field_optional(self): method test_typescript_direct_code_deploy_invalid (line 593) | def test_typescript_direct_code_deploy_invalid(self): method test_language_defaults_to_python (line 604) | def test_language_defaults_to_python(self): FILE: tests/utils/test_aws.py class TestAws (line 12) | class TestAws: method test_get_account_id (line 13) | def test_get_account_id(self, mock_boto3_clients): method test_get_region (line 19) | def test_get_region(self, mock_boto3_clients): method test_ensure_valid_aws_creds_success (line 30) | def test_ensure_valid_aws_creds_success(self, mock_get_account_id): method test_ensure_valid_aws_creds_no_creds (line 40) | def test_ensure_valid_aws_creds_no_creds(self, mock_get_account_id): method test_ensure_valid_aws_creds_partial_creds (line 50) | def test_ensure_valid_aws_creds_partial_creds(self, mock_get_account_id): method test_ensure_valid_aws_creds_expired (line 61) | def test_ensure_valid_aws_creds_expired(self, mock_get_account_id, err... method test_ensure_valid_aws_creds_invalid (line 73) | def test_ensure_valid_aws_creds_invalid(self, mock_get_account_id, err... method test_ensure_valid_aws_creds_generic_client_error (line 84) | def test_ensure_valid_aws_creds_generic_client_error(self, mock_get_ac... method test_ensure_valid_aws_creds_unknown_exception (line 97) | def test_ensure_valid_aws_creds_unknown_exception(self, mock_get_accou... FILE: tests/utils/test_endpoints.py class TestEndpoints (line 9) | class TestEndpoints: method test_get_data_plane_endpoint (line 16) | def test_get_data_plane_endpoint(self, region, expected_endpoint): method test_get_control_plane_endpoint (line 25) | def test_get_control_plane_endpoint(self, region, expected_endpoint): FILE: tests/utils/test_lambda_utils.py class TestCreateLambdaFunction (line 12) | class TestCreateLambdaFunction: method mock_session (line 16) | def mock_session(self): method mock_logger (line 23) | def mock_logger(self): method sample_lambda_code (line 28) | def sample_lambda_code(self): method test_create_lambda_function_success (line 35) | def test_create_lambda_function_success(self, mock_session, mock_logge... method test_create_lambda_function_with_existing_role (line 72) | def test_create_lambda_function_with_existing_role(self, mock_session,... method test_create_lambda_function_already_exists (line 112) | def test_create_lambda_function_already_exists(self, mock_session, moc... method test_create_lambda_function_zip_creation (line 151) | def test_create_lambda_function_zip_creation(self, mock_session, mock_... method test_create_lambda_function_iam_policy_attachment (line 191) | def test_create_lambda_function_iam_policy_attachment(self, mock_sessi... method test_create_lambda_function_invoke_permission (line 224) | def test_create_lambda_function_invoke_permission(self, mock_session, ... method test_create_lambda_function_with_custom_description (line 261) | def test_create_lambda_function_with_custom_description(self, mock_ses... FILE: tests/utils/test_logging_config.py class TestSetupToolkitLogging (line 17) | class TestSetupToolkitLogging: method setup_method (line 20) | def setup_method(self): method test_setup_cli_mode (line 32) | def test_setup_cli_mode(self): method test_setup_sdk_mode (line 39) | def test_setup_sdk_mode(self): method test_duplicate_setup_prevention (line 46) | def test_duplicate_setup_prevention(self): method test_invalid_mode_raises_error (line 53) | def test_invalid_mode_raises_error(self): method test_default_mode_is_sdk (line 58) | def test_default_mode_is_sdk(self): class TestCliLoggingSetup (line 65) | class TestCliLoggingSetup: method setup_method (line 68) | def setup_method(self): method test_cli_logging_setup_with_rich (line 76) | def test_cli_logging_setup_with_rich(self, mock_console, mock_rich_han... method test_cli_logging_fallback_without_rich (line 89) | def test_cli_logging_fallback_without_rich(self, mock_basic_logging, m... class TestSdkLoggingSetup (line 95) | class TestSdkLoggingSetup: method setup_method (line 98) | def setup_method(self): method test_sdk_logging_setup (line 104) | def test_sdk_logging_setup(self): method test_sdk_logging_no_duplicate_handlers (line 113) | def test_sdk_logging_no_duplicate_handlers(self): class TestLoggingStateManagement (line 122) | class TestLoggingStateManagement: method setup_method (line 125) | def setup_method(self): method test_is_logging_configured_initial_state (line 129) | def test_is_logging_configured_initial_state(self): method test_is_logging_configured_after_setup (line 133) | def test_is_logging_configured_after_setup(self): method test_reset_logging_config (line 138) | def test_reset_logging_config(self): class TestIntegrationScenarios (line 147) | class TestIntegrationScenarios: method setup_method (line 150) | def setup_method(self): method test_cli_then_sdk_no_duplication (line 158) | def test_cli_then_sdk_no_duplication(self): method test_sdk_then_cli_no_duplication (line 169) | def test_sdk_then_cli_no_duplication(self): method test_multiple_sdk_setups (line 180) | def test_multiple_sdk_setups(self): method test_actual_logging_output_sdk (line 189) | def test_actual_logging_output_sdk(self, caplog): method test_logger_hierarchy (line 204) | def test_logger_hierarchy(self): FILE: tests_integ/cli/identity/test_identity_aws_jwt.py function _strip_ansi (line 15) | def _strip_ansi(text: str) -> str: class TestIdentityAwsJwt (line 21) | class TestIdentityAwsJwt(BaseCLIRuntimeTest): method setup (line 27) | def setup(self): method get_command_invocations (line 32) | def get_command_invocations(self) -> List[CommandInvocation]: method run (line 97) | def run(self, tmp_path) -> None: method validate_configure (line 165) | def validate_configure(self, result: Result): method validate_setup_aws_jwt (line 173) | def validate_setup_aws_jwt(self, result: Result): method validate_list_aws_jwt (line 191) | def validate_list_aws_jwt(self, result: Result): method validate_add_audience (line 203) | def validate_add_audience(self, result: Result): method validate_list_multiple_audiences (line 211) | def validate_list_multiple_audiences(self, result: Result): method validate_config_file (line 220) | def validate_config_file(self, result: Result): class TestIdentityAwsJwtValidation (line 242) | class TestIdentityAwsJwtValidation(BaseCLIRuntimeTest): method setup (line 248) | def setup(self): method get_command_invocations (line 252) | def get_command_invocations(self) -> List[CommandInvocation]: method validate_invalid_algorithm (line 296) | def validate_invalid_algorithm(self, result: Result): method validate_duration_too_short (line 304) | def validate_duration_too_short(self, result: Result): method validate_duration_too_long (line 312) | def validate_duration_too_long(self, result: Result): function test_identity_aws_jwt_flow (line 321) | def test_identity_aws_jwt_flow(tmp_path): function test_identity_aws_jwt_validation (line 328) | def test_identity_aws_jwt_validation(tmp_path): FILE: tests_integ/cli/identity/test_identity_flow.py function _strip_ansi (line 17) | def _strip_ansi(text: str) -> str: class TestIdentityFlow (line 23) | class TestIdentityFlow(BaseCLIRuntimeTest): method setup (line 29) | def setup(self): method get_command_invocations (line 60) | def get_command_invocations(self) -> List[CommandInvocation]: method run (line 125) | def run(self, tmp_path) -> None: method _load_cognito_config (line 167) | def _load_cognito_config(self): method _build_jwt_config_command (line 175) | def _build_jwt_config_command(self) -> List[str]: method _build_create_provider_command (line 204) | def _build_create_provider_command(self) -> List[str]: method validate_setup_cognito (line 228) | def validate_setup_cognito(self, result: Result): method validate_configure (line 234) | def validate_configure(self, result: Result): method validate_jwt_config (line 240) | def validate_jwt_config(self, result: Result): method validate_create_provider (line 245) | def validate_create_provider(self, result: Result): method validate_create_workload (line 251) | def validate_create_workload(self, result: Result): method validate_list_providers (line 257) | def validate_list_providers(self, result: Result): method validate_cleanup (line 264) | def validate_cleanup(self, result: Result): function test_identity_user_flow (line 271) | def test_identity_user_flow(tmp_path): FILE: tests_integ/cli/identity/test_identity_m2m.py function _strip_ansi (line 14) | def _strip_ansi(text: str) -> str: class TestIdentityM2M (line 20) | class TestIdentityM2M(BaseCLIRuntimeTest): method setup (line 26) | def setup(self): method get_command_invocations (line 32) | def get_command_invocations(self) -> List[CommandInvocation]: method validate_setup_m2m (line 60) | def validate_setup_m2m(self, result: Result): method validate_m2m_config_file (line 81) | def validate_m2m_config_file(self, result: Result): method validate_cleanup_m2m (line 106) | def validate_cleanup_m2m(self, result: Result): function test_identity_m2m_flow (line 138) | def test_identity_m2m_flow(tmp_path): FILE: tests_integ/cli/runtime/base_test.py class CommandInvocation (line 18) | class CommandInvocation: class BaseCLIRuntimeTest (line 24) | class BaseCLIRuntimeTest(ABC): method run (line 30) | def run(self, tmp_path) -> None: method setup (line 61) | def setup(self) -> None: method get_command_invocations (line 66) | def get_command_invocations(self) -> List[CommandInvocation]: FILE: tests_integ/cli/runtime/test_simple_agent.py class TestSimpleAgent (line 15) | class TestSimpleAgent(BaseCLIRuntimeTest): method setup (line 21) | def setup(self): method _setup_role_trust_policy (line 54) | def _setup_role_trust_policy(self): method get_command_invocations (line 112) | def get_command_invocations(self) -> List[CommandInvocation]: method validate_configure (line 150) | def validate_configure(self, result: Result): method validate_launch (line 171) | def validate_launch(self, result: Result): method validate_status (line 183) | def validate_status(self, result: Result): method validate_invoke (line 193) | def validate_invoke(self, result: Result): function test (line 205) | def test(tmp_path): FILE: tests_integ/gateway/test_cognito_token.py function test_cognito_token_methods (line 15) | def test_cognito_token_methods(): FILE: tests_integ/gateway/test_create_gateway_role.py function test_create_role (line 10) | def test_create_role(): FILE: tests_integ/gateway/test_egress_auth.py function test_egress_auth (line 16) | def test_egress_auth(): function create_lambda_zip (line 221) | def create_lambda_zip(code): FILE: tests_integ/gateway/test_gateway_cognito.py function test_cognito_gateway (line 15) | def test_cognito_gateway(): FILE: tests_integ/identity/access_token_3LO.py class StreamingQueue (line 7) | class StreamingQueue: method __init__ (line 8) | def __init__(self): method put (line 12) | async def put(self, item): method finish (line 15) | async def finish(self): method stream (line 19) | async def stream(self): function agent_task (line 31) | async def agent_task(): function agent_invocation (line 41) | async def agent_invocation(payload): function on_auth_url (line 46) | async def on_auth_url(url: str): function need_token_3LO_async (line 58) | async def need_token_3LO_async(*, access_token: str): FILE: tests_integ/memory/test_create_memory.py function entrypoint (line 11) | def entrypoint(_payload): function create_memory (line 18) | def create_memory(): FILE: tests_integ/observability/test_observability_delivery_integration.py class TestObservabilityDeliveryIntegration (line 26) | class TestObservabilityDeliveryIntegration: method region (line 30) | def region(self): method account_id (line 35) | def account_id(self): method test_resource_id (line 41) | def test_resource_id(self): method manager (line 46) | def manager(self, region): method cleanup_resources (line 51) | def cleanup_resources(self, manager): method test_enable_and_disable_observability_memory (line 67) | def test_enable_and_disable_observability_memory( method test_enable_observability_gateway (line 107) | def test_enable_observability_gateway(self, manager, test_resource_id,... method test_custom_log_group (line 124) | def test_custom_log_group(self, manager, test_resource_id, account_id,... method test_enable_logs_only (line 147) | def test_enable_logs_only(self, manager, test_resource_id, account_id,... method test_enable_traces_only (line 166) | def test_enable_traces_only(self, manager, test_resource_id, account_i... method test_idempotent_enable (line 184) | def test_idempotent_enable(self, manager, test_resource_id, account_id... class TestConvenienceFunctionIntegration (line 209) | class TestConvenienceFunctionIntegration: method test_resource_id (line 213) | def test_resource_id(self): method test_convenience_function (line 217) | def test_convenience_function(self, test_resource_id): class TestWithRealAgentCoreResources (line 247) | class TestWithRealAgentCoreResources: method real_memory_id (line 257) | def real_memory_id(self): method real_gateway_id (line 265) | def real_gateway_id(self): method test_enable_observability_real_memory (line 272) | def test_enable_observability_real_memory(self, real_memory_id): method test_enable_observability_real_gateway (line 294) | def test_enable_observability_real_gateway(self, real_gateway_id): FILE: tests_integ/policy/test_policy_gateway_integration.py function initialize_clients (line 32) | def initialize_clients(region): function setup_infrastructure (line 40) | def setup_infrastructure(clients): function test_direct_http (line 152) | def test_direct_http(config, access_token): function test_agent (line 175) | def test_agent(config, access_token): function test_policy_generation (line 209) | def test_policy_generation(config, clients): function test_encryption_and_tags (line 253) | def test_encryption_and_tags(config, clients): function test_secure_policy_engine_enforcement (line 304) | def test_secure_policy_engine_enforcement(config, access_token, clients): function test_policy_from_generation_asset (line 365) | def test_policy_from_generation_asset(config, clients): function cleanup (line 435) | def cleanup(config, clients): function main (line 464) | def main(): FILE: tests_integ/strands_agent/agent.py function agent_invocation (line 9) | async def agent_invocation(payload): FILE: tests_integ/tools/my_mcp_client.py function main (line 7) | async def main(): FILE: tests_integ/tools/my_mcp_client_remote.py function main (line 9) | async def main(): FILE: tests_integ/tools/my_mcp_server.py function add_numbers (line 8) | def add_numbers(a: int, b: int) -> int: function multiply_numbers (line 14) | def multiply_numbers(a: int, b: int) -> int: function greet_user (line 20) | def greet_user(name: str) -> str: