Coverage report: 19%

Files Functions Classes

coverage.py v7.14.3, created at 2026-07-09 09:19 +0800

File   statements missing excluded   coverage
agentos/__init__.py   119 0 0   100%
agentos/agent/__init__.py   3 0 0   100%
agentos/agent/agent_builder.py   85 85 0   0%
agentos/agent/model_router.py   110 44 0   60%
agentos/agent/pipeline.py   122 82 0   33%
agentos/agent/production.py   166 100 0   40%
agentos/agent/production_agent.py   34 34 0   0%
agentos/agent/tests/test_production.py   327 225 0   31%
agentos/agent/tool_agent.py   281 211 0   25%
agentos/agents/__init__.py   0 0 0   100%
agentos/agents/market.py   61 61 0   0%
agentos/agents/market/__init__.py   6 0 0   100%
agentos/api/__init__.py   2 0 0   100%
agentos/api/middleware.py   74 32 0   57%
agentos/api/rate_limiter.py   50 50 0   0%
agentos/api/server.py   282 155 0   45%
agentos/api/server_old_backup.py   54 54 0   0%
agentos/api/sse.py   110 58 0   47%
agentos/api/streaming.py   103 62 0   40%
agentos/api/versioning.py   179 115 0   36%
agentos/api/websocket.py   263 263 0   0%
agentos/background/__init__.py   3 0 0   100%
agentos/background/supervisor.py   284 185 0   35%
agentos/background/task_manager.py   328 223 0   32%
agentos/benchmarks/__init__.py   2 0 0   100%
agentos/benchmarks/runner.py   89 47 0   47%
agentos/cache.py   18 18 0   0%
agentos/cache/__init__.py   4 0 0   100%
agentos/cache/embedder.py   108 73 10   32%
agentos/cache/llm_cache.py   154 100 0   35%
agentos/cache/response_cache.py   131 73 0   44%
agentos/channels/__init__.py   5 5 0   0%
agentos/channels/adapters/__init__.py   11 11 0   0%
agentos/channels/adapters/dingtalk.py   56 56 0   0%
agentos/channels/adapters/discord.py   75 75 0   0%
agentos/channels/adapters/feishu.py   83 83 0   0%
agentos/channels/adapters/line.py   131 131 0   0%
agentos/channels/adapters/qq.py   66 66 0   0%
agentos/channels/adapters/slack.py   83 83 0   0%
agentos/channels/adapters/telegram.py   93 93 0   0%
agentos/channels/adapters/wechat.py   79 79 0   0%
agentos/channels/adapters/wecom.py   81 81 0   0%
agentos/channels/adapters/whatsapp.py   119 119 0   0%
agentos/channels/base.py   61 61 18   0%
agentos/channels/gateway.py   127 127 0   0%
agentos/channels/message.py   65 65 0   0%
agentos/channels/router.py   67 67 0   0%
agentos/checkpoint/__init__.py   5 0 0   100%
agentos/checkpoint/base.py   42 3 14   93%
agentos/checkpoint/engine.py   183 183 2   0%
agentos/checkpoint/factory.py   14 7 0   50%
agentos/checkpoint/postgres.py   68 47 0   31%
agentos/checkpoint/sqlite.py   56 36 0   36%
agentos/cli/__init__.py   0 0 0   100%
agentos/cli/config_panel.py   154 129 0   16%
agentos/cli/errors.py   109 91 0   17%
agentos/cli/init.py   275 253 0   8%
agentos/cli/main.py   653 629 0   4%
agentos/cli/rollback.py   195 195 0   0%
agentos/cli/serve.py   24 11 0   54%
agentos/comm/__init__.py   2 0 0   100%
agentos/comm/layer.py   122 80 0   34%
agentos/concurrency/__init__.py   2 0 0   100%
agentos/concurrency/batch.py   129 58 0   55%
agentos/concurrent/__init__.py   2 2 0   0%
agentos/concurrent/parallel.py   182 182 0   0%
agentos/config/__init__.py   4 0 0   100%
agentos/config/loader.py   284 42 0   85%
agentos/config/presets.py   32 10 0   69%
agentos/config/validator.py   106 75 0   29%
agentos/config_validator.py   91 91 0   0%
agentos/conversation/__init__.py   0 0 0   100%
agentos/conversation/conversation.py   205 126 0   39%
agentos/core/__init__.py   12 0 0   100%
agentos/core/async_loop.py   99 57 0   42%
agentos/core/auth.py   308 308 23   0%
agentos/core/background.py   242 242 1   0%
agentos/core/cache.py   308 308 22   0%
agentos/core/circuit_breaker.py   154 154 1   0%
agentos/core/code_agent.py   172 128 0   26%
agentos/core/config.py   263 263 0   0%
agentos/core/context.py   81 36 0   56%
agentos/core/cost_tracker.py   180 96 0   47%
agentos/core/di.py   80 53 2   34%
agentos/core/distributed_lock.py   196 196 0   0%
agentos/core/event_bus.py   174 174 0   0%
agentos/core/feature_flags.py   175 175 0   0%
agentos/core/handoff.py   47 22 0   53%
agentos/core/health.py   79 79 0   0%
agentos/core/lifecycle.py   170 170 1   0%
agentos/core/loop.py   312 211 0   32%
agentos/core/middleware.py   201 104 2   48%
agentos/core/observability.py   251 251 0   0%
agentos/core/prompt_manager.py   193 193 0   0%
agentos/core/rate_limiter.py   166 166 0   0%
agentos/core/resource_manager.py   288 288 0   0%
agentos/core/response_cache.py   160 160 0   0%
agentos/core/retry.py   133 133 1   0%
agentos/core/secrets.py   225 225 0   0%
agentos/core/session.py   27 9 0   67%
agentos/core/state_machine.py   133 66 0   50%
agentos/core/streaming.py   56 21 0   62%
agentos/core/streaming_optimizer.py   187 187 1   0%
agentos/core/task_router.py   158 158 0   0%
agentos/cost.py   2 2 0   0%
agentos/cost/__init__.py   3 0 0   100%
agentos/cost/token_counter.py   130 86 0   34%
agentos/cost/tracker.py   169 95 0   44%
agentos/dashboard/__init__.py   2 2 0   0%
agentos/dashboard/server.py   115 115 0   0%
agentos/dashboard/tracker.py   99 99 0   0%
agentos/deployment.py   10 10 0   0%
agentos/deployment/__init__.py   2 0 0   100%
agentos/deployment/docker.py   76 46 0   39%
agentos/desktop/__init__.py   11 1 0   91%
agentos/desktop/server.py   241 213 0   12%
agentos/desktop/shell.py   74 74 0   0%
agentos/desktop/skill_store_server.py   96 96 0   0%
agentos/desktop/tui.py   350 313 0   11%
agentos/docs/__init__.py   2 0 0   100%
agentos/docs/generator.py   181 131 0   28%
agentos/enterprise.py   72 72 0   0%
agentos/enterprise/__init__.py   5 0 0   100%
agentos/enterprise/api_keys.py   110 57 0   48%
agentos/enterprise/audit.py   122 62 0   49%
agentos/enterprise/auth.py   206 98 0   52%
agentos/enterprise/tenants.py   138 81 0   41%
agentos/errors.py   12 12 0   0%
agentos/errors/__init__.py   2 0 0   100%
agentos/errors/handler.py   101 57 0   44%
agentos/eval/__init__.py   2 0 0   100%
agentos/eval/benchmark.py   243 135 0   44%
agentos/evaluation/__init__.py   416 257 0   38%
agentos/evaluation/benchmark.py   68 68 0   0%
agentos/evaluation/regression.py   150 150 0   0%
agentos/evaluation/scorers.py   176 132 0   25%
agentos/evaluation/suite.py   295 295 0   0%
agentos/evolution/__init__.py   5 0 0   100%
agentos/evolution/autopilot.py   274 193 0   30%
agentos/evolution/engine.py   116 73 0   37%
agentos/evolution/learner.py   109 83 0   24%
agentos/evolution/signals.py   192 116 0   40%
agentos/experiments.py   17 17 0   0%
agentos/experiments/__init__.py   2 0 0   100%
agentos/experiments/runner.py   143 83 0   42%
agentos/feedback.py   11 11 0   0%
agentos/feedback/__init__.py   2 0 0   100%
agentos/feedback/learner.py   94 58 0   38%
agentos/guardrails/__init__.py   4 4 0   0%
agentos/guardrails/engine.py   100 100 0   0%
agentos/guardrails/policy.py   68 68 0   0%
agentos/guardrails/rules.py   46 46 0   0%
agentos/health.py   11 11 0   0%
agentos/health/__init__.py   111 76 0   32%
agentos/hitl/__init__.py   5 5 0   0%
agentos/hitl/approver.py   121 121 0   0%
agentos/hitl/gradio_ui.py   266 266 0   0%
agentos/hitl/presets.py   7 7 0   0%
agentos/llm.py   48 48 0   0%
agentos/llm/__init__.py   8 0 0   100%
agentos/llm/anthropic_provider.py   159 131 0   18%
agentos/llm/base.py   108 27 8   75%
agentos/llm/deepseek_provider.py   15 6 0   60%
agentos/llm/factory.py   23 16 0   30%
agentos/llm/ollama_provider.py   22 10 0   55%
agentos/llm/openai_provider.py   103 77 0   25%
agentos/llm/pangu_provider.py   22 10 0   55%
agentos/llm/providers/__init__.py   4 4 0   0%
agentos/llm/providers/anthropic.py   62 62 0   0%
agentos/llm/providers/base_http.py   48 48 0   0%
agentos/llm/providers/deepseek.py   6 6 0   0%
agentos/llm/providers/openai.py   6 6 0   0%
agentos/llm/smart_cache.py   142 89 0   37%
agentos/llm/tests/__init__.py   0 0 0   100%
agentos/llm/tests/test_providers.py   170 170 0   0%
agentos/log.py   8 8 0   0%
agentos/log/__init__.py   2 0 0   100%
agentos/log/formatter.py   44 26 0   41%
agentos/marketplace/__init__.py   382 382 21   0%
agentos/marketplace/bridge.py   228 228 0   0%
agentos/marketplace/ecosystem_bridge.py   299 299 0   0%
agentos/marketplace/importer.py   241 241 0   0%
agentos/marketplace/manifest.py   117 117 0   0%
agentos/marketplace/registry.py   268 268 1   0%
agentos/mcp/__init__.py   314 233 13   26%
agentos/mcp/adapter.py   63 40 0   37%
agentos/mcp/builtin_servers.py   459 345 0   25%
agentos/mcp/sampling.py   202 202 0   0%
agentos/mcp/server.py   220 160 0   27%
agentos/memory/__init__.py   14 0 0   100%
agentos/memory/compressor.py   31 22 0   29%
agentos/memory/consolidation.py   266 167 0   37%
agentos/memory/conversation.py   146 85 0   42%
agentos/memory/long_term.py   103 75 0   27%
agentos/memory/pager.py   194 139 0   28%
agentos/memory/persistence.py   190 154 0   19%
agentos/memory/pyramid.py   111 70 0   37%
agentos/memory/retriever.py   179 127 0   29%
agentos/memory/session.py   231 157 0   32%
agentos/memory/short_term.py   32 21 0   34%
agentos/memory/summarizer.py   132 87 0   34%
agentos/memory/working.py   35 18 0   49%
agentos/models/__init__.py   7 0 0   100%
agentos/models/__init___20260705_134105_910.py   5 5 0   0%
agentos/models/agent.py   47 0 0   100%
agentos/models/backends/__init__.py   0 0 0   100%
agentos/models/backends/anthropic.py   101 74 0   27%
agentos/models/backends/gemini.py   153 116 0   24%
agentos/models/backends/ollama.py   98 72 0   27%
agentos/models/backends/openai.py   92 65 0   29%
agentos/models/error.py   95 38 0   60%
agentos/models/resilience.py   202 128 0   37%
agentos/models/response.py   63 7 0   89%
agentos/models/router.py   41 6 0   85%
agentos/models/routing_strategy.py   43 18 0   58%
agentos/monitoring.py   25 25 0   0%
agentos/monitoring/__init__.py   2 0 0   100%
agentos/monitoring/alerts.py   92 39 0   58%
agentos/multimodal/__init__.py   373 265 7   29%
agentos/multimodal/manager.py   165 165 0   0%
agentos/multimodal/provider.py   179 179 10   0%
agentos/observability/__init__.py   352 203 0   42%
agentos/observability/cost_analytics.py   236 163 0   31%
agentos/observability/logging.py   86 86 0   0%
agentos/observability/metrics.py   169 88 0   48%
agentos/observability/otel_bridge.py   298 298 3   0%
agentos/observability/tracer.py   81 34 0   58%
agentos/observability/tracing.py   80 80 0   0%
agentos/orchestration/__init__.py   30 1 0   97%
agentos/orchestration/a2a_router.py   55 18 0   67%
agentos/orchestration/distributed.py   177 95 0   46%
agentos/orchestration/graph.py   183 126 0   31%
agentos/orchestration/graph_executor.py   185 125 0   32%
agentos/orchestration/parallel.py   167 114 0   32%
agentos/orchestration/swarm_coordinator.py   6 6 0   0%
agentos/orchestration/task_decomposer.py   280 201 0   28%
agentos/plugin_manager.py   44 21 0   52%
agentos/plugins.py   16 16 0   0%
agentos/plugins/__init__.py   386 269 0   30%
agentos/plugins/discovery.py   112 112 5   0%
agentos/plugins/lifecycle.py   165 165 0   0%
agentos/plugins/loader.py   159 159 0   0%
agentos/plugins/registry.py   133 133 0   0%
agentos/prompt/__init__.py   2 0 0   100%
agentos/prompt/hub.py   164 95 0   42%
agentos/prompts.py   9 9 0   0%
agentos/prompts/__init__.py   4 0 0   100%
agentos/prompts/few_shot.py   110 69 0   37%
agentos/prompts/manager.py   93 66 0   29%
agentos/prompts/optimizer.py   81 34 0   58%
agentos/protocols/__init__.py   58 15 0   74%
agentos/protocols/a2a.py   480 298 0   38%
agentos/protocols/a2a_store.py   128 84 13   34%
agentos/protocols/a2a_streaming.py   127 80 0   37%
agentos/protocols/agent_card.py   120 69 0   42%
agentos/protocols/compliance.py   298 298 0   0%
agentos/protocols/contracts.py   162 162 0   0%
agentos/protocols/grpc.py   414 259 12   37%
agentos/protocols/mcp.py   81 43 10   47%
agentos/protocols/output.py   64 40 0   38%
agentos/protocols/registry.py   359 220 0   39%
agentos/queue.py   20 20 0   0%
agentos/queue/__init__.py   3 0 0   100%
agentos/queue/rate_limiter.py   114 61 0   46%
agentos/queue/task_queue.py   149 85 0   43%
agentos/rag.py   11 11 0   0%
agentos/rag/__init__.py   19 5 0   74%
agentos/rag/citation.py   118 118 0   0%
agentos/rag/hybrid.py   100 100 0   0%
agentos/rag/hybrid_search.py   268 206 0   23%
agentos/rag/loader.py   80 64 0   20%
agentos/rag/pipeline.py   56 41 0   27%
agentos/rag/reranker.py   141 141 0   0%
agentos/rag/store.py   69 48 15   30%
agentos/sandbox/__init__.py   255 255 0   0%
agentos/security/__init__.py   5 0 0   100%
agentos/security/audit_logger.py   155 104 0   33%
agentos/security/auditor.py   204 145 0   29%
agentos/security/guard.py   218 150 0   31%
agentos/security/guardrails.py   156 156 0   0%
agentos/security/sandbox.py   210 118 0   44%
agentos/security/sandbox_executor.py   265 200 0   25%
agentos/server/__init__.py   3 0 0   100%
agentos/server/agent_api.py   122 65 0   47%
agentos/server/daemon.py   347 272 0   22%
agentos/server/marketplace_platform.py   358 358 0   0%
agentos/server/marketplace_server.py   67 67 0   0%
agentos/server/mcp_server.py   156 98 0   37%
agentos/state/__init__.py   2 2 0   0%
agentos/state/schema.py   329 329 0   0%
agentos/storage.py   4 4 0   0%
agentos/storage/__init__.py   2 0 0   100%
agentos/storage/base.py   28 13 10   54%
agentos/subagent.py   28 28 0   0%
agentos/subagent/__init__.py   4 0 0   100%
agentos/subagent/collaboration.py   205 135 0   34%
agentos/subagent/manager.py   134 89 0   34%
agentos/subagent/parent_child.py   163 86 0   47%
agentos/swarm.py   13 13 0   0%
agentos/swarm/__init__.py   12 0 0   100%
agentos/swarm/agent_memory.py   315 243 0   23%
agentos/swarm/agent_monitor.py   218 158 1   28%
agentos/swarm/code_sandbox.py   155 113 0   27%
agentos/swarm/coordinator.py   654 489 0   25%
agentos/swarm/eval_feedback_loop.py   131 91 0   31%
agentos/swarm/execution_trace.py   184 117 0   36%
agentos/swarm/human_loop.py   119 62 1   48%
agentos/swarm/patterns.py   158 103 0   35%
agentos/swarm/result_fusion.py   135 113 0   16%
agentos/swarm/task_decomposer.py   86 60 0   30%
agentos/swarm/tool_registry.py   319 221 0   31%
agentos/system/__init__.py   6 0 0   100%
agentos/system/approval.py   84 48 0   43%
agentos/system/browser.py   191 145 0   24%
agentos/system/file_ops.py   192 154 0   20%
agentos/system/permissions.py   118 60 0   49%
agentos/system/shell_exec.py   152 101 0   34%
agentos/testing/__init__.py   2 0 0   100%
agentos/testing/fixtures.py   69 38 0   45%
agentos/tests/__init__.py   0 0 0   100%
agentos/tests/test_1_1_4_features.py   180 180 0   0%
agentos/tests/test_a2a.py   236 236 0   0%
agentos/tests/test_agent_builder.py   87 87 0   0%
agentos/tests/test_auth.py   341 341 0   0%
agentos/tests/test_cache.py   361 361 0   0%
agentos/tests/test_circuit_breaker.py   260 260 0   0%
agentos/tests/test_config.py   237 237 0   0%
agentos/tests/test_conversation.py   102 102 0   0%
agentos/tests/test_core_rate_limiter.py   233 233 0   0%
agentos/tests/test_cost_types.py   41 41 0   0%
agentos/tests/test_distributed_lock.py   295 295 0   0%
agentos/tests/test_event_bus.py   279 279 0   0%
agentos/tests/test_feature_flags.py   261 261 0   0%
agentos/tests/test_guardrails.py   391 391 0   0%
agentos/tests/test_hitl.py   94 94 0   0%
agentos/tests/test_lifecycle.py   265 265 0   0%
agentos/tests/test_mcp.py   133 133 0   0%
agentos/tests/test_production_agent.py   66 66 0   0%
agentos/tests/test_rate_limiter.py   236 236 0   0%
agentos/tests/test_resource_manager.py   256 256 0   0%
agentos/tests/test_retry.py   240 240 0   0%
agentos/tests/test_retry_queue.py   308 308 0   0%
agentos/tests/test_sandbox_executor.py   42 42 0   0%
agentos/tests/test_scheduler.py   374 374 0   0%
agentos/tests/test_schema_enforcer.py   83 83 0   0%
agentos/tests/test_secrets.py   322 322 0   0%
agentos/tests/test_serial_cache.py   361 361 0   0%
agentos/tests/test_startup_accelerator.py   317 317 0   0%
agentos/tests/test_subagent_parent_child.py   250 250 0   0%
agentos/tests/test_task_scheduler.py   348 348 0   0%
agentos/tests/test_token_counter.py   248 248 0   0%
agentos/tests/test_workflow.py   586 586 0   0%
agentos/tools/__init__.py   17 0 0   100%
agentos/tools/async_executor.py   248 248 0   0%
agentos/tools/audit_logger.py   108 67 0   38%
agentos/tools/base.py   46 7 0   85%
agentos/tools/bridge.py   39 28 0   28%
agentos/tools/circuit_breaker.py   175 138 0   21%
agentos/tools/code_agent.py   47 28 0   40%
agentos/tools/config_manager.py   151 151 0   0%
agentos/tools/connection_pool.py   234 234 0   0%
agentos/tools/cors.py   100 100 0   0%
agentos/tools/csp.py   131 131 0   0%
agentos/tools/data_tools.py   107 87 0   19%
agentos/tools/data_validator.py   96 96 1   0%
agentos/tools/di_container.py   100 100 0   0%
agentos/tools/event_bus.py   112 112 0   0%
agentos/tools/feature_flag.py   75 75 0   0%
agentos/tools/file_tools.py   64 38 0   41%
agentos/tools/function_calling.py   100 57 0   43%
agentos/tools/fusion.py   157 107 0   32%
agentos/tools/generator.py   145 111 0   23%
agentos/tools/http_tools.py   92 73 0   21%
agentos/tools/id_generator.py   75 75 0   0%
agentos/tools/jwt.py   108 108 0   0%
agentos/tools/key_rotation.py   118 118 0   0%
agentos/tools/memory_optimizer.py   213 213 0   0%
agentos/tools/metrics.py   198 151 0   24%
agentos/tools/orchestrator.py   300 201 0   33%
agentos/tools/password_hasher.py   55 55 0   0%
agentos/tools/pipeline.py   145 145 3   0%
agentos/tools/policy_engine.py   210 210 0   0%
agentos/tools/rate_limiter.py   107 78 0   27%
agentos/tools/registry.py   40 24 0   40%
agentos/tools/request_deduplicator.py   142 142 0   0%
agentos/tools/retry_queue.py   121 121 0   0%
agentos/tools/risk.py   42 18 0   57%
agentos/tools/scheduler.py   238 238 0   0%
agentos/tools/search_tools.py   104 81 0   22%
agentos/tools/serial_cache.py   198 198 0   0%
agentos/tools/skill_tool.py   93 93 0   0%
agentos/tools/snapshot_manager.py   78 78 7   0%
agentos/tools/startup_accelerator.py   181 181 0   0%
agentos/tools/task_scheduler.py   210 210 0   0%
agentos/tools/totp.py   79 79 0   0%
agentos/tools/url_signer.py   49 49 0   0%
agentos/tools/validation.py   169 115 0   32%
agentos/tools/web_tools.py   24 14 0   42%
agentos/validation/__init__.py   0 0 0   100%
agentos/validation/schema_enforcer.py   156 112 0   28%
agentos/vectorstore/__init__.py   2 0 0   100%
agentos/vectorstore/db.py   153 120 8   22%
agentos/workflow/__init__.py   510 510 0   0%
agentos/workflows/__init__.py   5 0 0   100%
agentos/workflows/engine.py   52 19 0   63%
agentos/workflows/templates.py   125 53 0   58%
Total   54060 44002 247   19%

No items found using the specified filter.