webagents 0.2.3__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {webagents-0.2.3 → webagents-0.3.0}/.gitignore +2 -0
- {webagents-0.2.3 → webagents-0.3.0}/PKG-INFO +67 -13
- {webagents-0.2.3 → webagents-0.3.0}/README.md +23 -5
- webagents-0.3.0/compliance/AGENT.md +158 -0
- webagents-0.3.0/compliance/runner/__init__.py +18 -0
- webagents-0.3.0/compliance/runner/executor.py +250 -0
- webagents-0.3.0/compliance/runner/parser.py +300 -0
- webagents-0.3.0/compliance/runner/skill.py +333 -0
- webagents-0.3.0/compliance/runner/validator.py +352 -0
- webagents-0.3.0/compliance/schema.md +184 -0
- webagents-0.3.0/compliance/tests/auth/aoauth-basic.md +247 -0
- webagents-0.3.0/compliance/tests/multiagent/handoff-basic.md +227 -0
- webagents-0.3.0/compliance/tests/transport/completions-basic.md +172 -0
- webagents-0.3.0/compliance/tests/transport/completions-streaming.md +185 -0
- webagents-0.3.0/compliance/tests/transport/completions-tools.md +264 -0
- webagents-0.3.0/docs/discovery.md +42 -0
- webagents-0.3.0/docs/getting-started.md +88 -0
- webagents-0.3.0/docs/index.md +29 -0
- webagents-0.3.0/docs/nli.md +62 -0
- webagents-0.3.0/docs/skills.md +70 -0
- webagents-0.3.0/docs/transports.md +47 -0
- webagents-0.3.0/docs/trust.md +117 -0
- webagents-0.3.0/docs/uamp.md +48 -0
- webagents-0.3.0/mkdocs.yml +27 -0
- webagents-0.3.0/pyproject.toml +113 -0
- {webagents-0.2.3 → webagents-0.3.0}/pytest.ini +3 -2
- {webagents-0.2.3 → webagents-0.3.0}/requirements-ecosystem.txt +9 -0
- {webagents-0.2.3 → webagents-0.3.0}/requirements.txt +10 -1
- {webagents-0.2.3 → webagents-0.3.0}/tests/agents/core/test_base_agent_http.py +31 -21
- {webagents-0.2.3 → webagents-0.3.0}/tests/agents/core/test_base_agent_init.py +5 -8
- {webagents-0.2.3 → webagents-0.3.0}/tests/agents/core/test_base_agent_quick.py +3 -4
- {webagents-0.2.3 → webagents-0.3.0}/tests/agents/core/test_base_agent_scopes.py +8 -6
- {webagents-0.2.3 → webagents-0.3.0}/tests/agents/core/test_http_capabilities_integration.py +49 -36
- webagents-0.3.0/tests/agents/core/test_router.py +1056 -0
- webagents-0.3.0/tests/cli/__init__.py +1 -0
- webagents-0.3.0/tests/cli/client/__init__.py +1 -0
- webagents-0.3.0/tests/cli/client/test_daemon_client.py +95 -0
- webagents-0.3.0/tests/cli/test_commands.py +195 -0
- webagents-0.3.0/tests/cli/test_repl.py +73 -0
- webagents-0.3.0/tests/cli/test_template.py +82 -0
- webagents-0.3.0/tests/daemon/__init__.py +1 -0
- webagents-0.3.0/tests/daemon/test_cron.py +105 -0
- webagents-0.3.0/tests/daemon/test_integration.py +110 -0
- webagents-0.3.0/tests/daemon/test_registry.py +136 -0
- webagents-0.3.0/tests/docs/test_doc_examples.py +189 -0
- webagents-0.3.0/tests/docs/test_snippet_syntax.py +62 -0
- webagents-0.3.0/tests/integration/test_connected_agents.py +125 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/integration/test_discovery_skill_integration.py +11 -6
- webagents-0.3.0/tests/integration/test_dynamic_agents_integration.py +253 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/integration/test_external_tools_integration.py +30 -21
- {webagents-0.2.3 → webagents-0.3.0}/tests/integration/test_integration_litellm.py +18 -28
- {webagents-0.2.3 → webagents-0.3.0}/tests/integration/test_integration_openai.py +58 -67
- webagents-0.3.0/tests/integration/test_x402_agent_ab_http_integration.py +928 -0
- webagents-0.3.0/tests/integration/test_x402_agent_ab_integration.py +694 -0
- webagents-0.3.0/tests/integration/test_x402_tool_completions.py +589 -0
- webagents-0.3.0/tests/interop/serve_echo.py +56 -0
- webagents-0.3.0/tests/interop/test_adapter_compat.py +200 -0
- webagents-0.3.0/tests/interop/test_cross_language.py +197 -0
- webagents-0.3.0/tests/loader/__init__.py +1 -0
- webagents-0.3.0/tests/loader/test_agent_md.py +225 -0
- webagents-0.3.0/tests/loader/test_hierarchy.py +222 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/run_http_tests.py +1 -1
- {webagents-0.2.3 → webagents-0.3.0}/tests/server/conftest.py +65 -8
- webagents-0.3.0/tests/server/plugins/__init__.py +1 -0
- webagents-0.3.0/tests/server/plugins/test_local_file_source.py +102 -0
- webagents-0.3.0/tests/server/plugins/test_plugin_loader.py +68 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/server/test_dynamic_agents.py +3 -1
- {webagents-0.2.3 → webagents-0.3.0}/tests/server/test_http_server_integration.py +33 -29
- {webagents-0.2.3 → webagents-0.3.0}/tests/server/test_monitoring.py +12 -2
- {webagents-0.2.3 → webagents-0.3.0}/tests/server/test_server_core.py +24 -11
- {webagents-0.2.3 → webagents-0.3.0}/tests/server/test_server_streaming.py +14 -9
- {webagents-0.2.3 → webagents-0.3.0}/tests/server/test_streaming_compliance.py +9 -5
- {webagents-0.2.3 → webagents-0.3.0}/tests/server/test_tool_execution.py +2 -1
- {webagents-0.2.3 → webagents-0.3.0}/tests/skills/core/test_mcp_skill.py +44 -36
- webagents-0.3.0/tests/skills/local/__init__.py +1 -0
- webagents-0.3.0/tests/skills/local/browser/__init__.py +1 -0
- webagents-0.3.0/tests/skills/local/browser/test_browser_automation_skill.py +231 -0
- webagents-0.3.0/tests/skills/local/browser/test_search_skill.py +315 -0
- webagents-0.3.0/tests/skills/local/test_filesystem_skill.py +117 -0
- webagents-0.3.0/tests/skills/local/test_session_manager_skill.py +89 -0
- webagents-0.3.0/tests/skills/local/test_shell_skill.py +70 -0
- webagents-0.3.0/tests/state/__init__.py +1 -0
- webagents-0.3.0/tests/state/test_local.py +78 -0
- webagents-0.3.0/tests/state/test_registry.py +127 -0
- webagents-0.3.0/tests/test_a2a_payment.py +128 -0
- webagents-0.3.0/tests/test_acp_payment.py +145 -0
- webagents-0.3.0/tests/test_api_routes.py +532 -0
- webagents-0.3.0/tests/test_auth_skill.py +279 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/test_basic_agent.py +24 -33
- webagents-0.3.0/tests/test_byok.py +214 -0
- webagents-0.3.0/tests/test_cancel_and_streaming.py +214 -0
- webagents-0.3.0/tests/test_chats_skill.py +328 -0
- webagents-0.3.0/tests/test_commands.py +226 -0
- webagents-0.3.0/tests/test_completions_payment_preflight.py +63 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/test_decorators.py +127 -21
- {webagents-0.2.3 → webagents-0.3.0}/tests/test_discovery_skill.py +48 -7
- webagents-0.3.0/tests/test_extension_caching.py +196 -0
- webagents-0.3.0/tests/test_fireworks_skill.py +269 -0
- webagents-0.3.0/tests/test_inbound_trust.py +129 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/test_litellm_skill.py +16 -13
- webagents-0.3.0/tests/test_llm_proxy_skill.py +326 -0
- webagents-0.3.0/tests/test_local_auth_skill.py +613 -0
- webagents-0.3.0/tests/test_long_term_memory_skill.py +46 -0
- webagents-0.3.0/tests/test_lsp_skill.py +633 -0
- webagents-0.3.0/tests/test_nli_skill.py +491 -0
- webagents-0.3.0/tests/test_payment_simplification.py +400 -0
- webagents-0.3.0/tests/test_payment_skill.py +1137 -0
- webagents-0.3.0/tests/test_payment_skill_usage.py +206 -0
- webagents-0.3.0/tests/test_payment_transport_agnostic.py +93 -0
- webagents-0.3.0/tests/test_payment_x402_skill.py +354 -0
- webagents-0.3.0/tests/test_persistence.py +348 -0
- webagents-0.3.0/tests/test_planner_skill.py +28 -0
- webagents-0.3.0/tests/test_plugin_skill.py +946 -0
- webagents-0.3.0/tests/test_portal_connect_skill.py +333 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/test_prompt_decorator.py +27 -61
- webagents-0.3.0/tests/test_skill_integration.py +359 -0
- webagents-0.3.0/tests/test_social_skill.py +162 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/test_supabase_skill.py +14 -2
- webagents-0.3.0/tests/test_transport_a2a.py +691 -0
- webagents-0.3.0/tests/test_transport_acp.py +1274 -0
- webagents-0.3.0/tests/test_transport_completions.py +651 -0
- webagents-0.3.0/tests/test_transport_realtime.py +1061 -0
- webagents-0.3.0/tests/test_trust.py +184 -0
- webagents-0.3.0/tests/test_uamp_payment_negotiation.py +82 -0
- webagents-0.3.0/tests/test_uamp_skill.py +189 -0
- webagents-0.3.0/tests/test_ucp_commerce.py +437 -0
- webagents-0.3.0/tests/test_ucp_integration.py +224 -0
- webagents-0.3.0/tests/test_ucp_skill.py +1055 -0
- webagents-0.3.0/tests/test_vector_memory_skill.py +51 -0
- webagents-0.3.0/tests/test_webui_skill.py +485 -0
- webagents-0.3.0/tests/test_xai_skill.py +251 -0
- webagents-0.3.0/tests/uamp/__init__.py +1 -0
- webagents-0.3.0/tests/uamp/test_adapters.py +797 -0
- webagents-0.3.0/tests/uamp/test_events.py +299 -0
- webagents-0.3.0/uv.lock +5939 -0
- webagents-0.3.0/webagents/__init__.py +54 -0
- webagents-0.3.0/webagents/__main__.py +17 -0
- webagents-0.3.0/webagents/agents/builtin/ROBUTLER.md +119 -0
- webagents-0.3.0/webagents/agents/builtin/__init__.py +15 -0
- webagents-0.3.0/webagents/agents/core/__init__.py +45 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/core/base_agent.py +1084 -58
- webagents-0.3.0/webagents/agents/core/router.py +686 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/__init__.py +17 -7
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/base.py +102 -1
- webagents-0.3.0/webagents/agents/skills/core/llm/__init__.py +56 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/anthropic/README.md +32 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/anthropic/__init__.py +1 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/anthropic/skill.py +536 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/anthropic/uamp_adapter.py +590 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/fireworks/__init__.py +1 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/fireworks/skill.py +234 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/fireworks/uamp_adapter.py +97 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/google/__init__.py +16 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/google/skill.py +855 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/google/uamp_adapter.py +598 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/models.py +67 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/openai/__init__.py +7 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/openai/skill.py +255 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/openai/uamp_adapter.py +513 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/proxy/__init__.py +11 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/proxy/skill.py +500 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/xai/README.md +28 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/xai/__init__.py +1 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/xai/skill.py +268 -0
- webagents-0.3.0/webagents/agents/skills/core/llm/xai/uamp_adapter.py +124 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/core/mcp/README.md +1 -1
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/core/memory/vector_memory/skill.py +7 -7
- webagents-0.3.0/webagents/agents/skills/core/transport/__init__.py +28 -0
- webagents-0.3.0/webagents/agents/skills/core/transport/a2a/__init__.py +2 -0
- webagents-0.3.0/webagents/agents/skills/core/transport/a2a/skill.py +465 -0
- webagents-0.3.0/webagents/agents/skills/core/transport/a2a/uamp_adapter.py +240 -0
- webagents-0.3.0/webagents/agents/skills/core/transport/acp/__init__.py +2 -0
- webagents-0.3.0/webagents/agents/skills/core/transport/acp/skill.py +1346 -0
- webagents-0.3.0/webagents/agents/skills/core/transport/acp/uamp_adapter.py +357 -0
- webagents-0.3.0/webagents/agents/skills/core/transport/completions/__init__.py +2 -0
- webagents-0.3.0/webagents/agents/skills/core/transport/completions/skill.py +355 -0
- webagents-0.3.0/webagents/agents/skills/core/transport/completions/uamp_adapter.py +275 -0
- webagents-0.3.0/webagents/agents/skills/core/transport/realtime/__init__.py +2 -0
- webagents-0.3.0/webagents/agents/skills/core/transport/realtime/skill.py +596 -0
- webagents-0.3.0/webagents/agents/skills/core/transport/realtime/uamp_adapter.py +231 -0
- webagents-0.3.0/webagents/agents/skills/core/transport/uamp/__init__.py +10 -0
- webagents-0.3.0/webagents/agents/skills/core/transport/uamp/skill.py +963 -0
- webagents-0.3.0/webagents/agents/skills/ecosystem/fal/__init__.py +2 -0
- webagents-0.3.0/webagents/agents/skills/ecosystem/fal/sonauto/__init__.py +4 -0
- webagents-0.3.0/webagents/agents/skills/ecosystem/fal/sonauto/skill.py +492 -0
- webagents-0.3.0/webagents/agents/skills/ecosystem/google/veo/__init__.py +4 -0
- webagents-0.3.0/webagents/agents/skills/ecosystem/google/veo/skill.py +543 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/openai/skill.py +1 -2
- webagents-0.3.0/webagents/agents/skills/ecosystem/ucp/README.md +457 -0
- webagents-0.3.0/webagents/agents/skills/ecosystem/ucp/__init__.py +69 -0
- webagents-0.3.0/webagents/agents/skills/ecosystem/ucp/client.py +516 -0
- webagents-0.3.0/webagents/agents/skills/ecosystem/ucp/discovery.py +304 -0
- webagents-0.3.0/webagents/agents/skills/ecosystem/ucp/exceptions.py +197 -0
- webagents-0.3.0/webagents/agents/skills/ecosystem/ucp/handlers/__init__.py +35 -0
- webagents-0.3.0/webagents/agents/skills/ecosystem/ucp/handlers/base.py +199 -0
- webagents-0.3.0/webagents/agents/skills/ecosystem/ucp/handlers/elaisium.py +353 -0
- webagents-0.3.0/webagents/agents/skills/ecosystem/ucp/handlers/google_pay.py +255 -0
- webagents-0.3.0/webagents/agents/skills/ecosystem/ucp/handlers/robutler.py +169 -0
- webagents-0.3.0/webagents/agents/skills/ecosystem/ucp/handlers/stripe.py +297 -0
- webagents-0.3.0/webagents/agents/skills/ecosystem/ucp/schemas.py +286 -0
- webagents-0.3.0/webagents/agents/skills/ecosystem/ucp/server.py +517 -0
- webagents-0.3.0/webagents/agents/skills/ecosystem/ucp/skill.py +1288 -0
- webagents-0.3.0/webagents/agents/skills/local/__init__.py +25 -0
- webagents-0.3.0/webagents/agents/skills/local/auth/README.md +223 -0
- webagents-0.3.0/webagents/agents/skills/local/auth/__init__.py +21 -0
- webagents-0.3.0/webagents/agents/skills/local/auth/config.py +112 -0
- webagents-0.3.0/webagents/agents/skills/local/auth/grants/__init__.py +14 -0
- webagents-0.3.0/webagents/agents/skills/local/auth/grants/authorization_code.py +325 -0
- webagents-0.3.0/webagents/agents/skills/local/auth/grants/client_credentials.py +163 -0
- webagents-0.3.0/webagents/agents/skills/local/auth/jwks.py +7 -0
- webagents-0.3.0/webagents/agents/skills/local/auth/providers/__init__.py +16 -0
- webagents-0.3.0/webagents/agents/skills/local/auth/providers/base.py +104 -0
- webagents-0.3.0/webagents/agents/skills/local/auth/providers/google.py +244 -0
- webagents-0.3.0/webagents/agents/skills/local/auth/providers/robutler.py +276 -0
- webagents-0.3.0/webagents/agents/skills/local/auth/skill.py +811 -0
- webagents-0.3.0/webagents/agents/skills/local/browser/__init__.py +13 -0
- webagents-0.3.0/webagents/agents/skills/local/browser/automation.py +611 -0
- webagents-0.3.0/webagents/agents/skills/local/browser/search.py +387 -0
- webagents-0.3.0/webagents/agents/skills/local/checkpoint/__init__.py +4 -0
- webagents-0.3.0/webagents/agents/skills/local/checkpoint/skill.py +523 -0
- webagents-0.3.0/webagents/agents/skills/local/cli/__init__.py +7 -0
- webagents-0.3.0/webagents/agents/skills/local/cli/skill.py +202 -0
- webagents-0.3.0/webagents/agents/skills/local/filesystem/README.md +64 -0
- webagents-0.3.0/webagents/agents/skills/local/filesystem/__init__.py +3 -0
- webagents-0.3.0/webagents/agents/skills/local/filesystem/skill.py +497 -0
- webagents-0.3.0/webagents/agents/skills/local/lsp/README.md +183 -0
- webagents-0.3.0/webagents/agents/skills/local/lsp/__init__.py +6 -0
- webagents-0.3.0/webagents/agents/skills/local/lsp/languages.py +94 -0
- webagents-0.3.0/webagents/agents/skills/local/lsp/skill.py +510 -0
- webagents-0.3.0/webagents/agents/skills/local/mcp/README.md +45 -0
- webagents-0.3.0/webagents/agents/skills/local/mcp/skill.py +695 -0
- webagents-0.3.0/webagents/agents/skills/local/memory/__init__.py +3 -0
- webagents-0.3.0/webagents/agents/skills/local/memory/skill.py +352 -0
- webagents-0.3.0/webagents/agents/skills/local/plugin/README.md +373 -0
- webagents-0.3.0/webagents/agents/skills/local/plugin/__init__.py +30 -0
- webagents-0.3.0/webagents/agents/skills/local/plugin/components/__init__.py +19 -0
- webagents-0.3.0/webagents/agents/skills/local/plugin/components/command_runner.py +319 -0
- webagents-0.3.0/webagents/agents/skills/local/plugin/components/hook_runner.py +243 -0
- webagents-0.3.0/webagents/agents/skills/local/plugin/components/skill_runner.py +312 -0
- webagents-0.3.0/webagents/agents/skills/local/plugin/executor.py +274 -0
- webagents-0.3.0/webagents/agents/skills/local/plugin/loader.py +350 -0
- webagents-0.3.0/webagents/agents/skills/local/plugin/marketplace.py +335 -0
- webagents-0.3.0/webagents/agents/skills/local/plugin/schema.py +193 -0
- webagents-0.3.0/webagents/agents/skills/local/plugin/skill.py +604 -0
- webagents-0.3.0/webagents/agents/skills/local/rag/README.md +34 -0
- webagents-0.3.0/webagents/agents/skills/local/rag/__init__.py +9 -0
- webagents-0.3.0/webagents/agents/skills/local/rag/skill.py +209 -0
- webagents-0.3.0/webagents/agents/skills/local/sandbox/README.md +46 -0
- webagents-0.3.0/webagents/agents/skills/local/sandbox/skill.py +198 -0
- webagents-0.3.0/webagents/agents/skills/local/session/README.md +27 -0
- webagents-0.3.0/webagents/agents/skills/local/session/__init__.py +9 -0
- webagents-0.3.0/webagents/agents/skills/local/session/skill.py +773 -0
- webagents-0.3.0/webagents/agents/skills/local/shell/README.md +36 -0
- webagents-0.3.0/webagents/agents/skills/local/shell/__init__.py +3 -0
- webagents-0.3.0/webagents/agents/skills/local/shell/skill.py +182 -0
- webagents-0.3.0/webagents/agents/skills/local/testrunner/__init__.py +18 -0
- webagents-0.3.0/webagents/agents/skills/local/testrunner/executor.py +250 -0
- webagents-0.3.0/webagents/agents/skills/local/testrunner/parser.py +300 -0
- webagents-0.3.0/webagents/agents/skills/local/testrunner/skill.py +340 -0
- webagents-0.3.0/webagents/agents/skills/local/testrunner/validator.py +352 -0
- webagents-0.3.0/webagents/agents/skills/local/todo/README.md +25 -0
- webagents-0.3.0/webagents/agents/skills/local/todo/skill.py +79 -0
- webagents-0.3.0/webagents/agents/skills/local/web/README.md +24 -0
- webagents-0.3.0/webagents/agents/skills/local/web/skill.py +122 -0
- webagents-0.3.0/webagents/agents/skills/local/webui/README.md +125 -0
- webagents-0.3.0/webagents/agents/skills/local/webui/__init__.py +9 -0
- webagents-0.3.0/webagents/agents/skills/local/webui/skill.py +173 -0
- webagents-0.3.0/webagents/agents/skills/robutler/__init__.py +36 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/auth/skill.py +77 -1
- webagents-0.3.0/webagents/agents/skills/robutler/chats/__init__.py +10 -0
- webagents-0.3.0/webagents/agents/skills/robutler/chats/skill.py +255 -0
- webagents-0.3.0/webagents/agents/skills/robutler/discovery/__init__.py +12 -0
- webagents-0.3.0/webagents/agents/skills/robutler/discovery/skill.py +402 -0
- webagents-0.3.0/webagents/agents/skills/robutler/integrations/__init__.py +13 -0
- webagents-0.3.0/webagents/agents/skills/robutler/integrations/skill.py +420 -0
- webagents-0.3.0/webagents/agents/skills/robutler/kv/__init__.py +3 -0
- webagents-0.3.0/webagents/agents/skills/robutler/kv/skill.py +340 -0
- webagents-0.3.0/webagents/agents/skills/robutler/namespace/__init__.py +4 -0
- webagents-0.3.0/webagents/agents/skills/robutler/namespace/skill.py +328 -0
- webagents-0.3.0/webagents/agents/skills/robutler/nli/__init__.py +12 -0
- webagents-0.3.0/webagents/agents/skills/robutler/nli/signing.py +136 -0
- webagents-0.3.0/webagents/agents/skills/robutler/nli/skill.py +1202 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/payments/__init__.py +1 -1
- webagents-0.3.0/webagents/agents/skills/robutler/payments/skill.py +790 -0
- webagents-0.3.0/webagents/agents/skills/robutler/payments_x402/__init__.py +11 -0
- webagents-0.3.0/webagents/agents/skills/robutler/payments_x402/exceptions.py +61 -0
- webagents-0.3.0/webagents/agents/skills/robutler/payments_x402/schemes.py +206 -0
- webagents-0.3.0/webagents/agents/skills/robutler/payments_x402/skill.py +481 -0
- webagents-0.3.0/webagents/agents/skills/robutler/portal_connect/__init__.py +5 -0
- webagents-0.3.0/webagents/agents/skills/robutler/portal_connect/skill.py +292 -0
- webagents-0.3.0/webagents/agents/skills/robutler/portal_ws/__init__.py +5 -0
- webagents-0.3.0/webagents/agents/skills/robutler/portal_ws/skill.py +212 -0
- webagents-0.3.0/webagents/agents/skills/robutler/publish/__init__.py +4 -0
- webagents-0.3.0/webagents/agents/skills/robutler/publish/skill.py +221 -0
- webagents-0.3.0/webagents/agents/skills/robutler/social/__init__.py +3 -0
- webagents-0.3.0/webagents/agents/skills/robutler/social/skill.py +254 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/tools/decorators.py +297 -21
- webagents-0.3.0/webagents/cli/__init__.py +40 -0
- webagents-0.3.0/webagents/cli/client/__init__.py +10 -0
- webagents-0.3.0/webagents/cli/client/auto_start.py +56 -0
- webagents-0.3.0/webagents/cli/client/daemon_client.py +251 -0
- webagents-0.3.0/webagents/cli/commands/__init__.py +43 -0
- webagents-0.3.0/webagents/cli/commands/agent.py +476 -0
- webagents-0.3.0/webagents/cli/commands/auth.py +105 -0
- webagents-0.3.0/webagents/cli/commands/checkpoint.py +183 -0
- webagents-0.3.0/webagents/cli/commands/config.py +198 -0
- webagents-0.3.0/webagents/cli/commands/cron.py +113 -0
- webagents-0.3.0/webagents/cli/commands/daemon.py +220 -0
- webagents-0.3.0/webagents/cli/commands/discover.py +89 -0
- webagents-0.3.0/webagents/cli/commands/index.py +98 -0
- webagents-0.3.0/webagents/cli/commands/intent.py +102 -0
- webagents-0.3.0/webagents/cli/commands/namespace.py +182 -0
- webagents-0.3.0/webagents/cli/commands/register.py +105 -0
- webagents-0.3.0/webagents/cli/commands/session.py +176 -0
- webagents-0.3.0/webagents/cli/commands/skill.py +130 -0
- webagents-0.3.0/webagents/cli/commands/sync.py +111 -0
- webagents-0.3.0/webagents/cli/commands/template.py +187 -0
- webagents-0.3.0/webagents/cli/commands/ui.py +243 -0
- webagents-0.3.0/webagents/cli/completions.py +134 -0
- webagents-0.3.0/webagents/cli/config.py +171 -0
- webagents-0.3.0/webagents/cli/daemon/__init__.py +16 -0
- webagents-0.3.0/webagents/cli/daemon/cron.py +242 -0
- webagents-0.3.0/webagents/cli/daemon/manager.py +371 -0
- webagents-0.3.0/webagents/cli/daemon/registry.py +203 -0
- webagents-0.3.0/webagents/cli/daemon/sandbox.py +230 -0
- webagents-0.3.0/webagents/cli/daemon/server.py +490 -0
- webagents-0.3.0/webagents/cli/daemon/service/__init__.py +15 -0
- webagents-0.3.0/webagents/cli/daemon/service/launchd.py +164 -0
- webagents-0.3.0/webagents/cli/daemon/service/systemd.py +143 -0
- webagents-0.3.0/webagents/cli/daemon/watcher.py +183 -0
- webagents-0.3.0/webagents/cli/loader/__init__.py +34 -0
- webagents-0.3.0/webagents/cli/loader/agent_md.py +227 -0
- webagents-0.3.0/webagents/cli/loader/context.py +198 -0
- webagents-0.3.0/webagents/cli/loader/hierarchy.py +275 -0
- webagents-0.3.0/webagents/cli/loader/schema.py +105 -0
- webagents-0.3.0/webagents/cli/main.py +145 -0
- webagents-0.3.0/webagents/cli/platform/__init__.py +16 -0
- webagents-0.3.0/webagents/cli/platform/api.py +333 -0
- webagents-0.3.0/webagents/cli/platform/auth.py +201 -0
- webagents-0.3.0/webagents/cli/platform/discovery.py +241 -0
- webagents-0.3.0/webagents/cli/platform/namespaces.py +243 -0
- webagents-0.3.0/webagents/cli/platform/websocket.py +244 -0
- webagents-0.3.0/webagents/cli/repl/__init__.py +9 -0
- webagents-0.3.0/webagents/cli/repl/completions.py +116 -0
- webagents-0.3.0/webagents/cli/repl/history.py +148 -0
- webagents-0.3.0/webagents/cli/repl/session.py +1199 -0
- webagents-0.3.0/webagents/cli/repl/slash_commands.py +743 -0
- webagents-0.3.0/webagents/cli/repl/tui.py +2541 -0
- webagents-0.3.0/webagents/cli/state/__init__.py +22 -0
- webagents-0.3.0/webagents/cli/state/local.py +204 -0
- webagents-0.3.0/webagents/cli/state/registry.py +256 -0
- webagents-0.3.0/webagents/cli/state/sessions.py +196 -0
- webagents-0.3.0/webagents/cli/state/sync.py +144 -0
- webagents-0.3.0/webagents/cli/templates/__init__.py +75 -0
- webagents-0.3.0/webagents/cli/templates/assistant/TEMPLATE.md +48 -0
- webagents-0.3.0/webagents/cli/templates/content/TEMPLATE.md +51 -0
- webagents-0.3.0/webagents/cli/templates/github.py +155 -0
- webagents-0.3.0/webagents/cli/templates/planning/TEMPLATE.md +54 -0
- webagents-0.3.0/webagents/cli/ui/__init__.py +10 -0
- webagents-0.3.0/webagents/cli/ui/console.py +203 -0
- webagents-0.3.0/webagents/cli/ui/panels.py +141 -0
- webagents-0.3.0/webagents/cli/ui/splash.py +131 -0
- webagents-0.3.0/webagents/cli/webui/.gitignore +22 -0
- webagents-0.3.0/webagents/cli/webui/index.html +13 -0
- webagents-0.3.0/webagents/cli/webui/package.json +37 -0
- webagents-0.3.0/webagents/cli/webui/pnpm-lock.yaml +2743 -0
- webagents-0.3.0/webagents/cli/webui/postcss.config.js +6 -0
- webagents-0.3.0/webagents/cli/webui/src/App.tsx +71 -0
- webagents-0.3.0/webagents/cli/webui/src/components/ChatPanel.tsx +415 -0
- webagents-0.3.0/webagents/cli/webui/src/components/CommandPalette.tsx +68 -0
- webagents-0.3.0/webagents/cli/webui/src/components/DetailsPanel.tsx +101 -0
- webagents-0.3.0/webagents/cli/webui/src/components/Markdown.tsx +311 -0
- webagents-0.3.0/webagents/cli/webui/src/components/MessageList.tsx +88 -0
- webagents-0.3.0/webagents/cli/webui/src/components/Sidebar.tsx +146 -0
- webagents-0.3.0/webagents/cli/webui/src/components/ToolResult.tsx +39 -0
- webagents-0.3.0/webagents/cli/webui/src/hooks/useAgents.ts +29 -0
- webagents-0.3.0/webagents/cli/webui/src/hooks/useChat.ts +340 -0
- webagents-0.3.0/webagents/cli/webui/src/index.css +152 -0
- webagents-0.3.0/webagents/cli/webui/src/main.tsx +10 -0
- webagents-0.3.0/webagents/cli/webui/tailwind.config.js +57 -0
- webagents-0.3.0/webagents/cli/webui/tsconfig.json +32 -0
- webagents-0.3.0/webagents/cli/webui/tsconfig.node.json +11 -0
- webagents-0.3.0/webagents/cli/webui/vite.config.ts +33 -0
- webagents-0.3.0/webagents/crypto/__init__.py +7 -0
- webagents-0.3.0/webagents/crypto/jwks.py +349 -0
- webagents-0.3.0/webagents/daemon_entry.py +15 -0
- webagents-0.3.0/webagents/robutler_entry.py +15 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/server/context/context_vars.py +7 -2
- {webagents-0.2.3 → webagents-0.3.0}/webagents/server/core/app.py +708 -227
- {webagents-0.2.3 → webagents-0.3.0}/webagents/server/core/middleware.py +40 -1
- {webagents-0.2.3 → webagents-0.3.0}/webagents/server/core/models.py +17 -1
- {webagents-0.2.3 → webagents-0.3.0}/webagents/server/core/monitoring.py +6 -0
- webagents-0.3.0/webagents/server/dev_entry.py +52 -0
- webagents-0.3.0/webagents/server/extensions/__init__.py +26 -0
- webagents-0.3.0/webagents/server/extensions/cache_invalidation.py +213 -0
- webagents-0.3.0/webagents/server/extensions/interface.py +151 -0
- webagents-0.3.0/webagents/server/extensions/loader.py +76 -0
- webagents-0.3.0/webagents/server/extensions/local_file_source.py +415 -0
- webagents-0.3.0/webagents/server/extensions/websocket_agents.py +261 -0
- webagents-0.3.0/webagents/server/storage/__init__.py +10 -0
- webagents-0.3.0/webagents/server/storage/json_store.py +49 -0
- webagents-0.3.0/webagents/server/storage/litesql_store.py +71 -0
- webagents-0.3.0/webagents/server/sync/__init__.py +9 -0
- webagents-0.3.0/webagents/server/sync/manager.py +116 -0
- webagents-0.3.0/webagents/trust.py +221 -0
- webagents-0.3.0/webagents/uamp/__init__.py +160 -0
- webagents-0.3.0/webagents/uamp/events.py +1022 -0
- webagents-0.3.0/webagents/uamp/types.py +296 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/utils/logging.py +45 -27
- webagents-0.2.3/.github/workflows/ci.yml +0 -63
- webagents-0.2.3/.github/workflows/docs.yml +0 -71
- webagents-0.2.3/.github/workflows/publish.yml +0 -59
- webagents-0.2.3/.vscode/settings.json +0 -7
- webagents-0.2.3/CONTRIBUTING.md +0 -57
- webagents-0.2.3/RELEASE.md +0 -130
- webagents-0.2.3/docs/agent/endpoints.md +0 -122
- webagents-0.2.3/docs/agent/handoffs.md +0 -409
- webagents-0.2.3/docs/agent/hooks.md +0 -464
- webagents-0.2.3/docs/agent/lifecycle.md +0 -232
- webagents-0.2.3/docs/agent/overview.md +0 -218
- webagents-0.2.3/docs/agent/prompts.md +0 -312
- webagents-0.2.3/docs/agent/skills.md +0 -224
- webagents-0.2.3/docs/agent/tools.md +0 -465
- webagents-0.2.3/docs/agent/widgets.md +0 -494
- webagents-0.2.3/docs/assets/Circle_Icon_W.png +0 -0
- webagents-0.2.3/docs/assets/Robutler_Logo_300.png +0 -0
- webagents-0.2.3/docs/assets/Robutler_Logo_Full.png +0 -0
- webagents-0.2.3/docs/assets/Robutler_OG_Card_B.png +0 -0
- webagents-0.2.3/docs/assets/Robutler_OG_Card_Nvidia_Yel.png +0 -0
- webagents-0.2.3/docs/assets/openai_widgets.png +0 -0
- webagents-0.2.3/docs/assets/robutler-logo.svg +0 -1
- webagents-0.2.3/docs/assets/robutler_logo.png +0 -0
- webagents-0.2.3/docs/assets/widgets.png +0 -0
- webagents-0.2.3/docs/blog/.authors.yml +0 -5
- webagents-0.2.3/docs/blog/index.md +0 -2
- webagents-0.2.3/docs/developers/contributing.md +0 -281
- webagents-0.2.3/docs/developers/development.md +0 -270
- webagents-0.2.3/docs/dynamic-agents.md +0 -178
- webagents-0.2.3/docs/gen_ref_pages.py +0 -38
- webagents-0.2.3/docs/index.md +0 -170
- webagents-0.2.3/docs/javascripts/mathjax.js +0 -12
- webagents-0.2.3/docs/license.md +0 -9
- webagents-0.2.3/docs/quickstart.md +0 -106
- webagents-0.2.3/docs/requirements.txt +0 -7
- webagents-0.2.3/docs/server-architecture.md +0 -222
- webagents-0.2.3/docs/server.md +0 -147
- webagents-0.2.3/docs/skills/core/llm.md +0 -40
- webagents-0.2.3/docs/skills/core/mcp.md +0 -41
- webagents-0.2.3/docs/skills/core/memory.md +0 -47
- webagents-0.2.3/docs/skills/custom.md +0 -96
- webagents-0.2.3/docs/skills/ecosystem/crewai.md +0 -267
- webagents-0.2.3/docs/skills/ecosystem/database.md +0 -71
- webagents-0.2.3/docs/skills/ecosystem/filesystem.md +0 -40
- webagents-0.2.3/docs/skills/ecosystem/google.md +0 -229
- webagents-0.2.3/docs/skills/ecosystem/index.md +0 -216
- webagents-0.2.3/docs/skills/ecosystem/mongodb.md +0 -72
- webagents-0.2.3/docs/skills/ecosystem/n8n.md +0 -66
- webagents-0.2.3/docs/skills/ecosystem/openai.md +0 -481
- webagents-0.2.3/docs/skills/ecosystem/replicate.md +0 -129
- webagents-0.2.3/docs/skills/ecosystem/x_com.md +0 -69
- webagents-0.2.3/docs/skills/ecosystem/zapier.md +0 -66
- webagents-0.2.3/docs/skills/overview.md +0 -39
- webagents-0.2.3/docs/skills/platform/auth.md +0 -125
- webagents-0.2.3/docs/skills/platform/discovery.md +0 -54
- webagents-0.2.3/docs/skills/platform/files.md +0 -236
- webagents-0.2.3/docs/skills/platform/kv.md +0 -171
- webagents-0.2.3/docs/skills/platform/nli.md +0 -51
- webagents-0.2.3/docs/skills/platform/notifications.md +0 -116
- webagents-0.2.3/docs/skills/platform/payments.md +0 -164
- webagents-0.2.3/docs/stylesheets/extra.css +0 -346
- webagents-0.2.3/examples/minimal_quickstart.py +0 -18
- webagents-0.2.3/examples/server_demo.py +0 -188
- webagents-0.2.3/examples/simple_demo.py +0 -50
- webagents-0.2.3/mkdocs.yml +0 -153
- webagents-0.2.3/pyproject.toml +0 -70
- webagents-0.2.3/tests/integration/test_dynamic_agents_integration.py +0 -321
- webagents-0.2.3/tests/skills/core/test_mcp_skill_backup.py +0 -1547
- webagents-0.2.3/tests/test_auth_skill.py +0 -426
- webagents-0.2.3/tests/test_long_term_memory_skill.py +0 -412
- webagents-0.2.3/tests/test_memory_skills.py +0 -284
- webagents-0.2.3/tests/test_nli_skill.py +0 -576
- webagents-0.2.3/tests/test_payment_skill.py +0 -1166
- webagents-0.2.3/tests/test_planner_skill.py +0 -367
- webagents-0.2.3/tests/test_vector_memory_skill.py +0 -505
- webagents-0.2.3/tests/test_webagents_storage_skill.py +0 -392
- webagents-0.2.3/webagents/__init__.py +0 -27
- webagents-0.2.3/webagents/__main__.py +0 -55
- webagents-0.2.3/webagents/agents/core/__init__.py +0 -19
- webagents-0.2.3/webagents/agents/skills/core/llm/anthropic/__init__.py +0 -1
- webagents-0.2.3/webagents/agents/skills/core/llm/litellm/__init__.py +0 -10
- webagents-0.2.3/webagents/agents/skills/core/llm/litellm/skill.py +0 -1417
- webagents-0.2.3/webagents/agents/skills/core/llm/openai/__init__.py +0 -1
- webagents-0.2.3/webagents/agents/skills/core/llm/xai/__init__.py +0 -1
- webagents-0.2.3/webagents/agents/skills/robutler/__init__.py +0 -11
- webagents-0.2.3/webagents/agents/skills/robutler/discovery/__init__.py +0 -16
- webagents-0.2.3/webagents/agents/skills/robutler/discovery/skill.py +0 -230
- webagents-0.2.3/webagents/agents/skills/robutler/kv/__init__.py +0 -6
- webagents-0.2.3/webagents/agents/skills/robutler/kv/skill.py +0 -80
- webagents-0.2.3/webagents/agents/skills/robutler/nli/__init__.py +0 -13
- webagents-0.2.3/webagents/agents/skills/robutler/nli/skill.py +0 -843
- webagents-0.2.3/webagents/agents/skills/robutler/payments/skill.py +0 -660
- {webagents-0.2.3 → webagents-0.3.0}/LICENSE +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/agents/core/test_handoffs.py +0 -0
- {webagents-0.2.3/webagents/agents/handoffs → webagents-0.3.0/tests/docs}/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/fixtures/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/integration/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/integration/integration_config.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/integration/openai_integration_config.md +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/integration/test_payment_skill_integration.py +0 -0
- {webagents-0.2.3/webagents/agents/interfaces → webagents-0.3.0/tests/interop}/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/server/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/server/test_models.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/skills/core/conftest.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/skills/core/mcp_test_config.json +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/test_crewai_skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/test_mongodb_skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/test_n8n_skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/test_replicate_skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/test_x_com.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/tests/test_zapier_skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/core/handoffs.py +0 -0
- {webagents-0.2.3/webagents/agents/lifecycle → webagents-0.3.0/webagents/agents/handoffs}/__init__.py +0 -0
- {webagents-0.2.3/webagents/agents/skills/core/guardrails → webagents-0.3.0/webagents/agents/interfaces}/__init__.py +0 -0
- {webagents-0.2.3/webagents/agents/skills/core/llm → webagents-0.3.0/webagents/agents/lifecycle}/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/core/__init__.py +0 -0
- {webagents-0.2.3/webagents/agents/skills/ecosystem → webagents-0.3.0/webagents/agents/skills/core/guardrails}/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/core/mcp/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/core/mcp/skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/core/memory/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/core/memory/long_term_memory/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/core/memory/long_term_memory/memory_skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/core/memory/short_term_memory/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/core/memory/short_term_memory/skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/core/planning/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/core/planning/planner.py +0 -0
- {webagents-0.2.3/webagents/agents/skills/ecosystem/filesystem → webagents-0.3.0/webagents/agents/skills/ecosystem}/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/crewai/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/crewai/skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/database/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/database/skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/google/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/google/calendar/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/google/calendar/skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/mongodb/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/mongodb/skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/n8n/README.md +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/n8n/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/n8n/skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/openai/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/replicate/README.md +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/replicate/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/replicate/skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/web/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/x_com/README.md +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/x_com/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/x_com/skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/zapier/README.md +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/zapier/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/ecosystem/zapier/skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/examples/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/examples/music_player.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/auth/README.md +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/auth/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/crm/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/crm/skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/discovery/README.md +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/handoff/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/handoff/skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/message_history/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/message_history/skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/messages/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/notifications/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/notifications/skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/payments/exceptions.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/storage/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/storage/files/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/storage/files/skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/storage/json/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/storage/json/skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/storage/kv/skill.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/skills/robutler/storage.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/tools/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/tracing/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/widgets/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/widgets/renderer.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/agents/workflows/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/scripts/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/server/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/server/context/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/server/core/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/server/endpoints/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/server/interfaces/__init__.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/server/middleware.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/server/models.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/server/monitoring.py +0 -0
- {webagents-0.2.3 → webagents-0.3.0}/webagents/utils/__init__.py +0 -0
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: webagents
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Foundation framework for the Web of Agents - build, serve and monetize AI agents
|
|
5
|
-
|
|
5
|
+
Project-URL: Homepage, https://robutler.ai/webagents
|
|
6
|
+
Project-URL: Repository, https://github.com/robutlerai/webagents
|
|
7
|
+
Project-URL: Issues, https://github.com/robutlerai/webagents/issues
|
|
8
|
+
Project-URL: Documentation, https://robutler.ai/webagents/docs
|
|
9
|
+
Author: robutler.ai
|
|
6
10
|
License: MIT License
|
|
7
11
|
|
|
8
12
|
Copyright (c) 2025 Robutler
|
|
@@ -24,31 +28,63 @@ License: MIT License
|
|
|
24
28
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
29
|
SOFTWARE.
|
|
26
30
|
License-File: LICENSE
|
|
31
|
+
Keywords: agents,ai,llm,skills,tools,uamp,webagents
|
|
32
|
+
Classifier: Development Status :: 4 - Beta
|
|
33
|
+
Classifier: Intended Audience :: Developers
|
|
34
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
35
|
+
Classifier: Programming Language :: Python :: 3
|
|
36
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
37
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
38
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
39
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
40
|
+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
27
41
|
Requires-Python: >=3.10
|
|
42
|
+
Requires-Dist: apscheduler>=3.10.0
|
|
28
43
|
Requires-Dist: colorama>=0.4.6
|
|
29
|
-
Requires-Dist:
|
|
44
|
+
Requires-Dist: croniter>=2.0.0
|
|
30
45
|
Requires-Dist: fastapi>=0.100.0
|
|
31
46
|
Requires-Dist: fastmcp>=2.3.0
|
|
32
47
|
Requires-Dist: httpx>=0.24.0
|
|
33
|
-
Requires-Dist:
|
|
48
|
+
Requires-Dist: openai>=1.0.0
|
|
34
49
|
Requires-Dist: pillow>=10.0.0
|
|
35
|
-
Requires-Dist:
|
|
50
|
+
Requires-Dist: prompt-toolkit>=3.0.0
|
|
36
51
|
Requires-Dist: pydantic-settings>=2.0.0
|
|
37
52
|
Requires-Dist: pydantic>=2.7.0
|
|
38
|
-
Requires-Dist: pymongo>=4.0.0
|
|
39
53
|
Requires-Dist: python-dotenv>=1.0.0
|
|
40
|
-
Requires-Dist:
|
|
54
|
+
Requires-Dist: rich>=13.0.0
|
|
41
55
|
Requires-Dist: tiktoken>=0.5.0
|
|
42
|
-
Requires-Dist:
|
|
56
|
+
Requires-Dist: typer>=0.12.0
|
|
43
57
|
Requires-Dist: uvicorn>=0.23.0
|
|
58
|
+
Requires-Dist: watchdog>=4.0.0
|
|
59
|
+
Requires-Dist: websockets>=12.0
|
|
60
|
+
Provides-Extra: all
|
|
61
|
+
Requires-Dist: anthropic>=0.3.0; extra == 'all'
|
|
62
|
+
Requires-Dist: chromadb>=1.4.0; extra == 'all'
|
|
63
|
+
Requires-Dist: google-genai>=1.0.0; extra == 'all'
|
|
64
|
+
Requires-Dist: multilspy>=0.0.15; extra == 'all'
|
|
65
|
+
Requires-Dist: sentence-transformers>=2.2.0; extra == 'all'
|
|
66
|
+
Requires-Dist: textual>=1.0.0; extra == 'all'
|
|
67
|
+
Requires-Dist: trafilatura>=1.12.0; extra == 'all'
|
|
44
68
|
Provides-Extra: dev
|
|
45
69
|
Requires-Dist: black>=23.0.0; extra == 'dev'
|
|
46
70
|
Requires-Dist: mypy>=1.0.0; extra == 'dev'
|
|
47
71
|
Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
|
|
48
72
|
Requires-Dist: pytest>=7.0.0; extra == 'dev'
|
|
49
73
|
Requires-Dist: ruff>=0.0.270; extra == 'dev'
|
|
74
|
+
Provides-Extra: embeddings
|
|
75
|
+
Requires-Dist: chromadb>=1.4.0; extra == 'embeddings'
|
|
76
|
+
Requires-Dist: sentence-transformers>=2.2.0; extra == 'embeddings'
|
|
50
77
|
Provides-Extra: examples
|
|
51
78
|
Requires-Dist: openai-agents>=0.0.16; extra == 'examples'
|
|
79
|
+
Provides-Extra: llm
|
|
80
|
+
Requires-Dist: anthropic>=0.3.0; extra == 'llm'
|
|
81
|
+
Requires-Dist: google-genai>=1.0.0; extra == 'llm'
|
|
82
|
+
Provides-Extra: lsp
|
|
83
|
+
Requires-Dist: multilspy>=0.0.15; extra == 'lsp'
|
|
84
|
+
Provides-Extra: scraping
|
|
85
|
+
Requires-Dist: trafilatura>=1.12.0; extra == 'scraping'
|
|
86
|
+
Provides-Extra: tui
|
|
87
|
+
Requires-Dist: textual>=1.0.0; extra == 'tui'
|
|
52
88
|
Description-Content-Type: text/markdown
|
|
53
89
|
|
|
54
90
|
# WebAgents - core framework for the Web of Agents
|
|
@@ -86,19 +122,19 @@ WebAgents includes everything you need: core framework, LLM integration, and eco
|
|
|
86
122
|
### Create Your First Agent
|
|
87
123
|
|
|
88
124
|
```python
|
|
89
|
-
from webagents
|
|
125
|
+
from webagents import BaseAgent
|
|
90
126
|
|
|
91
127
|
# Create a basic agent
|
|
92
128
|
agent = BaseAgent(
|
|
93
129
|
name="assistant",
|
|
94
130
|
instructions="You are a helpful AI assistant.",
|
|
95
|
-
model="
|
|
131
|
+
model="litellm/gpt-4o-mini" # Automatically creates LLM skill
|
|
96
132
|
)
|
|
97
133
|
|
|
98
134
|
# Run chat completion
|
|
99
135
|
messages = [{"role": "user", "content": "Hello! What can you help me with?"}]
|
|
100
136
|
response = await agent.run(messages=messages)
|
|
101
|
-
print(response
|
|
137
|
+
print(response["choices"][0]["message"]["content"])
|
|
102
138
|
```
|
|
103
139
|
|
|
104
140
|
### Serve Your Agent
|
|
@@ -148,7 +184,7 @@ class NotificationsSkill(Skill):
|
|
|
148
184
|
# React to incoming messages
|
|
149
185
|
return context
|
|
150
186
|
|
|
151
|
-
@http("
|
|
187
|
+
@http("/webhook", method="post")
|
|
152
188
|
async def handle_webhook(self, request):
|
|
153
189
|
# Custom HTTP endpoint
|
|
154
190
|
return {"status": "received"}
|
|
@@ -190,7 +226,7 @@ def generate_thumbnail(url: str, size: int = 256) -> dict:
|
|
|
190
226
|
|
|
191
227
|
agent = BaseAgent(
|
|
192
228
|
name="thumbnail-generator",
|
|
193
|
-
model="
|
|
229
|
+
model="litellm/gpt-4o-mini",
|
|
194
230
|
skills={
|
|
195
231
|
"payments": PaymentSkill(),
|
|
196
232
|
},
|
|
@@ -228,6 +264,24 @@ WebAgents enables dynamic real-time orchestration where each AI agent acts as a
|
|
|
228
264
|
- **[Agent Architecture](https://robutler.ai/webagents/agent/overview/)** - Understand agent communication
|
|
229
265
|
- **[Custom Skills](https://robutler.ai/webagents/skills/custom/)** - Build your own capabilities
|
|
230
266
|
|
|
267
|
+
## Native/Built-in Tools
|
|
268
|
+
|
|
269
|
+
The Python adapters support provider-native tools alongside standard function tools. When `convert_tools()` receives a mixed array:
|
|
270
|
+
|
|
271
|
+
- **Function tools** (`type: "function"`) are converted to the provider's format
|
|
272
|
+
- **Native tools** (any other `type`) are passed through to the provider API
|
|
273
|
+
|
|
274
|
+
Example:
|
|
275
|
+
|
|
276
|
+
```python
|
|
277
|
+
tools = [
|
|
278
|
+
{"type": "function", "function": {"name": "get_weather", "parameters": {...}}},
|
|
279
|
+
{"type": "web_search"}, # Provider-native tool
|
|
280
|
+
]
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
Google adapter wraps function tools in `function_declarations` and emits native tools as separate entries. Anthropic adapter converts function tools to `name/description/input_schema` and passes native tools through.
|
|
284
|
+
|
|
231
285
|
## 🤝 Contributing
|
|
232
286
|
|
|
233
287
|
We welcome contributions! Please see our [Contributing Guide](https://robutler.ai/webagents/developers/contributing/) for details.
|
|
@@ -33,19 +33,19 @@ WebAgents includes everything you need: core framework, LLM integration, and eco
|
|
|
33
33
|
### Create Your First Agent
|
|
34
34
|
|
|
35
35
|
```python
|
|
36
|
-
from webagents
|
|
36
|
+
from webagents import BaseAgent
|
|
37
37
|
|
|
38
38
|
# Create a basic agent
|
|
39
39
|
agent = BaseAgent(
|
|
40
40
|
name="assistant",
|
|
41
41
|
instructions="You are a helpful AI assistant.",
|
|
42
|
-
model="
|
|
42
|
+
model="litellm/gpt-4o-mini" # Automatically creates LLM skill
|
|
43
43
|
)
|
|
44
44
|
|
|
45
45
|
# Run chat completion
|
|
46
46
|
messages = [{"role": "user", "content": "Hello! What can you help me with?"}]
|
|
47
47
|
response = await agent.run(messages=messages)
|
|
48
|
-
print(response
|
|
48
|
+
print(response["choices"][0]["message"]["content"])
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
### Serve Your Agent
|
|
@@ -95,7 +95,7 @@ class NotificationsSkill(Skill):
|
|
|
95
95
|
# React to incoming messages
|
|
96
96
|
return context
|
|
97
97
|
|
|
98
|
-
@http("
|
|
98
|
+
@http("/webhook", method="post")
|
|
99
99
|
async def handle_webhook(self, request):
|
|
100
100
|
# Custom HTTP endpoint
|
|
101
101
|
return {"status": "received"}
|
|
@@ -137,7 +137,7 @@ def generate_thumbnail(url: str, size: int = 256) -> dict:
|
|
|
137
137
|
|
|
138
138
|
agent = BaseAgent(
|
|
139
139
|
name="thumbnail-generator",
|
|
140
|
-
model="
|
|
140
|
+
model="litellm/gpt-4o-mini",
|
|
141
141
|
skills={
|
|
142
142
|
"payments": PaymentSkill(),
|
|
143
143
|
},
|
|
@@ -175,6 +175,24 @@ WebAgents enables dynamic real-time orchestration where each AI agent acts as a
|
|
|
175
175
|
- **[Agent Architecture](https://robutler.ai/webagents/agent/overview/)** - Understand agent communication
|
|
176
176
|
- **[Custom Skills](https://robutler.ai/webagents/skills/custom/)** - Build your own capabilities
|
|
177
177
|
|
|
178
|
+
## Native/Built-in Tools
|
|
179
|
+
|
|
180
|
+
The Python adapters support provider-native tools alongside standard function tools. When `convert_tools()` receives a mixed array:
|
|
181
|
+
|
|
182
|
+
- **Function tools** (`type: "function"`) are converted to the provider's format
|
|
183
|
+
- **Native tools** (any other `type`) are passed through to the provider API
|
|
184
|
+
|
|
185
|
+
Example:
|
|
186
|
+
|
|
187
|
+
```python
|
|
188
|
+
tools = [
|
|
189
|
+
{"type": "function", "function": {"name": "get_weather", "parameters": {...}}},
|
|
190
|
+
{"type": "web_search"}, # Provider-native tool
|
|
191
|
+
]
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Google adapter wraps function tools in `function_declarations` and emits native tools as separate entries. Anthropic adapter converts function tools to `name/description/input_schema` and passes native tools through.
|
|
195
|
+
|
|
178
196
|
## 🤝 Contributing
|
|
179
197
|
|
|
180
198
|
We welcome contributions! Please see our [Contributing Guide](https://robutler.ai/webagents/developers/contributing/) for details.
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: compliance-tester
|
|
3
|
+
description: Agentic compliance test runner for WebAgents SDK implementations
|
|
4
|
+
namespace: compliance
|
|
5
|
+
version: "1.0.0"
|
|
6
|
+
model: openai/gpt-4o
|
|
7
|
+
skills:
|
|
8
|
+
- testrunner:
|
|
9
|
+
base_url: "http://localhost:8765"
|
|
10
|
+
timeout: 60
|
|
11
|
+
tags:
|
|
12
|
+
- testing
|
|
13
|
+
- compliance
|
|
14
|
+
- automation
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Compliance Test Runner Agent
|
|
18
|
+
|
|
19
|
+
You are an expert test automation agent specialized in running compliance tests against WebAgents SDK implementations.
|
|
20
|
+
|
|
21
|
+
## Your Mission
|
|
22
|
+
|
|
23
|
+
Execute compliance tests from Markdown specification files and provide detailed reports on pass/fail status with actionable insights.
|
|
24
|
+
|
|
25
|
+
## How to Run Tests
|
|
26
|
+
|
|
27
|
+
When asked to run compliance tests, follow this workflow:
|
|
28
|
+
|
|
29
|
+
### 1. Load Test Specification
|
|
30
|
+
|
|
31
|
+
Use `load_test` to parse the Markdown test file:
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
load_test("tests/transport/completions-basic.md")
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
This returns a structured spec with:
|
|
38
|
+
- `name`: Test suite name
|
|
39
|
+
- `setup`: Agent configuration requirements
|
|
40
|
+
- `cases`: Array of test cases to execute
|
|
41
|
+
|
|
42
|
+
### 2. Execute Each Test Case
|
|
43
|
+
|
|
44
|
+
For each test case in the spec:
|
|
45
|
+
|
|
46
|
+
1. **Make the HTTP request** using `http_request`:
|
|
47
|
+
```
|
|
48
|
+
http_request(
|
|
49
|
+
method="POST",
|
|
50
|
+
path="/chat/completions",
|
|
51
|
+
body={"model": "test-agent", "messages": [...]},
|
|
52
|
+
stream=false
|
|
53
|
+
)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
2. **Validate strict assertions** using `validate_strict`:
|
|
57
|
+
```
|
|
58
|
+
validate_strict(response, {
|
|
59
|
+
"status": 200,
|
|
60
|
+
"body": {"object": "chat.completion"}
|
|
61
|
+
})
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
3. **Validate natural language assertions** using `validate_assertion`:
|
|
65
|
+
```
|
|
66
|
+
validate_assertion(response, "Response contains a helpful greeting")
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
For natural language assertions, use your reasoning to determine if the response satisfies the intent of the assertion. Consider semantic meaning, not just exact matching.
|
|
70
|
+
|
|
71
|
+
4. **Report the result** using `report_result`:
|
|
72
|
+
```
|
|
73
|
+
report_result(
|
|
74
|
+
test_name="completions-basic",
|
|
75
|
+
case_name="Simple Message",
|
|
76
|
+
passed=true,
|
|
77
|
+
details="All assertions passed"
|
|
78
|
+
)
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### 3. Generate Summary
|
|
82
|
+
|
|
83
|
+
After all tests complete, call `get_results_summary` to produce a final report.
|
|
84
|
+
|
|
85
|
+
## Test Result Interpretation
|
|
86
|
+
|
|
87
|
+
### Strict Assertions
|
|
88
|
+
These are deterministic and must match exactly:
|
|
89
|
+
- `status: 200` - HTTP status code must be 200
|
|
90
|
+
- `body.object: "chat.completion"` - Exact field match
|
|
91
|
+
- `body.choices: length(1)` - Array must have exactly 1 element
|
|
92
|
+
- `body.choices[0].message.content: type(string)` - Must be a string
|
|
93
|
+
- `body.choices[0].message.content: contains("Alice")` - Must contain substring
|
|
94
|
+
|
|
95
|
+
### Natural Language Assertions
|
|
96
|
+
Use your judgment to evaluate:
|
|
97
|
+
- "Response status is 200" - Verify the status code
|
|
98
|
+
- "Response contains a greeting" - Check if content is greeting-like
|
|
99
|
+
- "The assistant was helpful" - Evaluate response quality
|
|
100
|
+
- "Tool was called with correct arguments" - Check tool call parameters
|
|
101
|
+
|
|
102
|
+
## Reporting Format
|
|
103
|
+
|
|
104
|
+
When reporting results, be clear and concise:
|
|
105
|
+
|
|
106
|
+
**For passing tests:**
|
|
107
|
+
```
|
|
108
|
+
✓ [Test Name] - All assertions passed
|
|
109
|
+
- Strict: status=200, body.object=chat.completion ✓
|
|
110
|
+
- Natural: "Response contains greeting" ✓
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
**For failing tests:**
|
|
114
|
+
```
|
|
115
|
+
✗ [Test Name] - 1 of 3 assertions failed
|
|
116
|
+
- Strict: status=200 ✓
|
|
117
|
+
- Strict: body.choices length(1) ✗ (got 0)
|
|
118
|
+
- Natural: "Response contains greeting" - SKIPPED (previous failure)
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Available Test Suites
|
|
122
|
+
|
|
123
|
+
Run tests from these directories:
|
|
124
|
+
- `tests/transport/` - Transport layer tests (completions, streaming)
|
|
125
|
+
- `tests/multiagent/` - Multi-agent handoff tests
|
|
126
|
+
- `tests/auth/` - Authentication tests
|
|
127
|
+
|
|
128
|
+
## Example Execution
|
|
129
|
+
|
|
130
|
+
```
|
|
131
|
+
User: Run the completions-basic tests
|
|
132
|
+
|
|
133
|
+
Agent: I'll run the completions-basic compliance tests.
|
|
134
|
+
|
|
135
|
+
1. Loading test specification...
|
|
136
|
+
→ Found 6 test cases
|
|
137
|
+
|
|
138
|
+
2. Executing tests...
|
|
139
|
+
|
|
140
|
+
✓ 1. Simple Message
|
|
141
|
+
- status: 200 ✓
|
|
142
|
+
- body.object: chat.completion ✓
|
|
143
|
+
- body.choices[0].message.role: assistant ✓
|
|
144
|
+
- "Response echoes input" ✓
|
|
145
|
+
|
|
146
|
+
✓ 2. System Message
|
|
147
|
+
- status: 200 ✓
|
|
148
|
+
- "Response has pirate-like language" ✓
|
|
149
|
+
|
|
150
|
+
✗ 3. Empty Messages Array
|
|
151
|
+
- Expected status 400, got 200 ✗
|
|
152
|
+
|
|
153
|
+
3. Summary:
|
|
154
|
+
Total: 6 | Passed: 5 | Failed: 1
|
|
155
|
+
|
|
156
|
+
Failed tests need investigation:
|
|
157
|
+
- "Empty Messages Array" should return 400 for empty messages
|
|
158
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Compliance Test Runner for WebAgents SDKs.
|
|
3
|
+
|
|
4
|
+
An agentic test runner that reads human-readable test specifications
|
|
5
|
+
and validates SDK implementations.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from .skill import TestRunnerSkill
|
|
9
|
+
from .parser import TestParser
|
|
10
|
+
from .executor import TestExecutor
|
|
11
|
+
from .validator import StrictValidator
|
|
12
|
+
|
|
13
|
+
__all__ = [
|
|
14
|
+
"TestRunnerSkill",
|
|
15
|
+
"TestParser",
|
|
16
|
+
"TestExecutor",
|
|
17
|
+
"StrictValidator",
|
|
18
|
+
]
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Test executor for running compliance tests.
|
|
3
|
+
|
|
4
|
+
Orchestrates test execution using the TestRunnerSkill.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
import asyncio
|
|
8
|
+
import time
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
from typing import Dict, Any, List, Optional
|
|
11
|
+
from dataclasses import dataclass
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@dataclass
|
|
15
|
+
class ExecutionOptions:
|
|
16
|
+
"""Options for test execution."""
|
|
17
|
+
base_url: str = "http://localhost:8765"
|
|
18
|
+
cache_mode: str = "read_write" # read_write, write_only, disabled
|
|
19
|
+
temperature: float = 0.0
|
|
20
|
+
timeout: int = 60
|
|
21
|
+
strict_only: bool = False
|
|
22
|
+
tags: Optional[List[str]] = None
|
|
23
|
+
skip_tags: Optional[List[str]] = None
|
|
24
|
+
parallel: int = 1
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class TestExecutor:
|
|
28
|
+
"""
|
|
29
|
+
Executes compliance tests against an SDK server.
|
|
30
|
+
|
|
31
|
+
Can run in two modes:
|
|
32
|
+
1. Agentic: Uses AI to validate natural language assertions
|
|
33
|
+
2. Strict-only: Only runs deterministic assertions (faster, no LLM)
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
def __init__(self, options: ExecutionOptions):
|
|
37
|
+
self.options = options
|
|
38
|
+
self.results: List[Dict[str, Any]] = []
|
|
39
|
+
|
|
40
|
+
async def run_file(self, path: Path) -> Dict[str, Any]:
|
|
41
|
+
"""
|
|
42
|
+
Run all tests in a single file.
|
|
43
|
+
|
|
44
|
+
Args:
|
|
45
|
+
path: Path to test file
|
|
46
|
+
|
|
47
|
+
Returns:
|
|
48
|
+
Test results for the file
|
|
49
|
+
"""
|
|
50
|
+
from .parser import TestParser
|
|
51
|
+
from .skill import TestRunnerSkill
|
|
52
|
+
from .validator import StrictValidator
|
|
53
|
+
|
|
54
|
+
parser = TestParser()
|
|
55
|
+
spec = parser.parse(path)
|
|
56
|
+
|
|
57
|
+
# Check tags
|
|
58
|
+
if self.options.tags:
|
|
59
|
+
if not any(tag in spec.get("tags", []) for tag in self.options.tags):
|
|
60
|
+
return {
|
|
61
|
+
"name": spec["name"],
|
|
62
|
+
"skipped": True,
|
|
63
|
+
"reason": "No matching tags",
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if self.options.skip_tags:
|
|
67
|
+
if any(tag in spec.get("tags", []) for tag in self.options.skip_tags):
|
|
68
|
+
return {
|
|
69
|
+
"name": spec["name"],
|
|
70
|
+
"skipped": True,
|
|
71
|
+
"reason": "Skipped tag",
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
skill = TestRunnerSkill(
|
|
75
|
+
base_url=self.options.base_url,
|
|
76
|
+
timeout=self.options.timeout,
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
try:
|
|
80
|
+
results = []
|
|
81
|
+
|
|
82
|
+
for case in spec.get("cases", []):
|
|
83
|
+
start_time = time.time()
|
|
84
|
+
|
|
85
|
+
case_result = await self._run_case(skill, spec, case)
|
|
86
|
+
|
|
87
|
+
case_result["duration_ms"] = (time.time() - start_time) * 1000
|
|
88
|
+
results.append(case_result)
|
|
89
|
+
|
|
90
|
+
passed = sum(1 for r in results if r.get("passed", False))
|
|
91
|
+
failed = sum(1 for r in results if not r.get("passed", False) and not r.get("skipped", False))
|
|
92
|
+
skipped = sum(1 for r in results if r.get("skipped", False))
|
|
93
|
+
|
|
94
|
+
return {
|
|
95
|
+
"name": spec["name"],
|
|
96
|
+
"file": str(path),
|
|
97
|
+
"cases": results,
|
|
98
|
+
"passed": passed,
|
|
99
|
+
"failed": failed,
|
|
100
|
+
"skipped": skipped,
|
|
101
|
+
}
|
|
102
|
+
finally:
|
|
103
|
+
await skill.shutdown()
|
|
104
|
+
|
|
105
|
+
async def _run_case(
|
|
106
|
+
self,
|
|
107
|
+
skill: "TestRunnerSkill",
|
|
108
|
+
spec: Dict[str, Any],
|
|
109
|
+
case: Dict[str, Any],
|
|
110
|
+
) -> Dict[str, Any]:
|
|
111
|
+
"""Run a single test case."""
|
|
112
|
+
from .validator import StrictValidator
|
|
113
|
+
|
|
114
|
+
case_name = case.get("name", "unnamed")
|
|
115
|
+
request = case.get("request")
|
|
116
|
+
|
|
117
|
+
if not request:
|
|
118
|
+
return {
|
|
119
|
+
"name": case_name,
|
|
120
|
+
"skipped": True,
|
|
121
|
+
"reason": "No request defined",
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
# Make request
|
|
125
|
+
response = await skill.http_request(
|
|
126
|
+
method=request.get("method", "POST"),
|
|
127
|
+
path=request.get("path", "/chat/completions"),
|
|
128
|
+
body=request.get("body"),
|
|
129
|
+
headers=request.get("headers"),
|
|
130
|
+
stream=request.get("stream", False),
|
|
131
|
+
)
|
|
132
|
+
|
|
133
|
+
# Handle request error
|
|
134
|
+
if response.get("error"):
|
|
135
|
+
if case.get("expected") == "failure":
|
|
136
|
+
return {
|
|
137
|
+
"name": case_name,
|
|
138
|
+
"passed": True,
|
|
139
|
+
"reason": "Expected failure occurred",
|
|
140
|
+
}
|
|
141
|
+
return {
|
|
142
|
+
"name": case_name,
|
|
143
|
+
"passed": False,
|
|
144
|
+
"reason": f"Request error: {response.get('error')}",
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
assertion_results = []
|
|
148
|
+
all_passed = True
|
|
149
|
+
|
|
150
|
+
# Run strict assertions
|
|
151
|
+
strict = case.get("strict")
|
|
152
|
+
if strict:
|
|
153
|
+
validator = StrictValidator()
|
|
154
|
+
strict_result = validator.validate(response, strict)
|
|
155
|
+
|
|
156
|
+
assertion_results.append({
|
|
157
|
+
"type": "strict",
|
|
158
|
+
"passed": strict_result["passed"],
|
|
159
|
+
"details": strict_result["results"],
|
|
160
|
+
})
|
|
161
|
+
|
|
162
|
+
if not strict_result["passed"]:
|
|
163
|
+
all_passed = False
|
|
164
|
+
|
|
165
|
+
# Run natural language assertions (if not strict-only mode)
|
|
166
|
+
if not self.options.strict_only:
|
|
167
|
+
for assertion in case.get("assertions", []):
|
|
168
|
+
# In agentic mode, we'd use LLM to validate
|
|
169
|
+
# For now, we just record the assertion for the agent
|
|
170
|
+
assertion_results.append({
|
|
171
|
+
"type": "natural",
|
|
172
|
+
"assertion": assertion,
|
|
173
|
+
"passed": None, # To be validated by agent
|
|
174
|
+
"needs_validation": True,
|
|
175
|
+
})
|
|
176
|
+
|
|
177
|
+
# Check expected outcome
|
|
178
|
+
expected = case.get("expected", "success")
|
|
179
|
+
if expected == "failure":
|
|
180
|
+
# For expected failures, check if we got an error response
|
|
181
|
+
if response.get("status", 200) >= 400:
|
|
182
|
+
all_passed = True
|
|
183
|
+
else:
|
|
184
|
+
all_passed = False
|
|
185
|
+
|
|
186
|
+
return {
|
|
187
|
+
"name": case_name,
|
|
188
|
+
"passed": all_passed,
|
|
189
|
+
"response": {
|
|
190
|
+
"status": response.get("status"),
|
|
191
|
+
"body_preview": str(response.get("body", ""))[:200],
|
|
192
|
+
},
|
|
193
|
+
"assertions": assertion_results,
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
async def run_directory(self, path: Path) -> Dict[str, Any]:
|
|
197
|
+
"""
|
|
198
|
+
Run all tests in a directory.
|
|
199
|
+
|
|
200
|
+
Args:
|
|
201
|
+
path: Path to test directory
|
|
202
|
+
|
|
203
|
+
Returns:
|
|
204
|
+
Aggregated test results
|
|
205
|
+
"""
|
|
206
|
+
test_files = list(path.glob("**/*.md"))
|
|
207
|
+
|
|
208
|
+
results = []
|
|
209
|
+
for test_file in test_files:
|
|
210
|
+
result = await self.run_file(test_file)
|
|
211
|
+
results.append(result)
|
|
212
|
+
|
|
213
|
+
total_passed = sum(r.get("passed", 0) for r in results if not r.get("skipped"))
|
|
214
|
+
total_failed = sum(r.get("failed", 0) for r in results if not r.get("skipped"))
|
|
215
|
+
total_skipped = sum(1 for r in results if r.get("skipped"))
|
|
216
|
+
|
|
217
|
+
return {
|
|
218
|
+
"total": len(results),
|
|
219
|
+
"passed": total_passed,
|
|
220
|
+
"failed": total_failed,
|
|
221
|
+
"skipped": total_skipped,
|
|
222
|
+
"suites": results,
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
def print_results(self, results: Dict[str, Any]) -> None:
|
|
226
|
+
"""Print results to console."""
|
|
227
|
+
print("\nCompliance Test Results")
|
|
228
|
+
print("=" * 50)
|
|
229
|
+
|
|
230
|
+
for suite in results.get("suites", []):
|
|
231
|
+
if suite.get("skipped"):
|
|
232
|
+
print(f"\n⊘ {suite['name']}: SKIPPED ({suite.get('reason', '')})")
|
|
233
|
+
continue
|
|
234
|
+
|
|
235
|
+
status = "✓" if suite.get("failed", 0) == 0 else "✗"
|
|
236
|
+
print(f"\n{status} {suite['name']}: {suite.get('passed', 0)}/{suite.get('passed', 0) + suite.get('failed', 0)} passed")
|
|
237
|
+
|
|
238
|
+
for case in suite.get("cases", []):
|
|
239
|
+
case_status = "✓" if case.get("passed") else "✗"
|
|
240
|
+
print(f" {case_status} {case.get('name', 'unnamed')}")
|
|
241
|
+
|
|
242
|
+
if not case.get("passed") and case.get("assertions"):
|
|
243
|
+
for assertion in case["assertions"]:
|
|
244
|
+
if not assertion.get("passed", True):
|
|
245
|
+
print(f" → {assertion.get('details', assertion.get('assertion', ''))}")
|
|
246
|
+
|
|
247
|
+
print("\n" + "=" * 50)
|
|
248
|
+
print(f"Summary: {results.get('passed', 0)}/{results.get('passed', 0) + results.get('failed', 0)} tests passed")
|
|
249
|
+
if results.get("skipped"):
|
|
250
|
+
print(f" {results.get('skipped')} skipped")
|