Fix a2a_wrapper imports and add clean usage example

- Remove top-level imports from fuzzforge_ai/__init__.py to avoid dependency issues
- Fix config_bridge.py exception handling (remove undefined exc variable)
- Add examples/test_a2a_simple.py demonstrating clean a2a_wrapper usage
- Update package to use explicit imports: from fuzzforge_ai.a2a_wrapper import send_agent_task

All functionality preserved, imports are now explicit and modular.
This commit is contained in:
Songbird
2025-10-14 14:27:25 +02:00
parent 11f294abdb
commit 55120d2924
4 changed files with 189 additions and 8 deletions
+6 -6
View File
@@ -3,6 +3,11 @@ FuzzForge AI Module - Agent-to-Agent orchestration system
This module integrates the fuzzforge_ai components into FuzzForge,
providing intelligent AI agent capabilities for security analysis.
Usage:
from fuzzforge_ai.a2a_wrapper import send_agent_task
from fuzzforge_ai.agent import FuzzForgeAgent
from fuzzforge_ai.config_manager import ConfigManager
"""
# Copyright (c) 2025 FuzzingLabs
#
@@ -16,9 +21,4 @@ providing intelligent AI agent capabilities for security analysis.
# Additional attribution and requirements are provided in the NOTICE file.
__version__ = "0.6.0"
from .agent import FuzzForgeAgent
from .config_manager import ConfigManager
__all__ = ['FuzzForgeAgent', 'ConfigManager']
__version__ = "0.6.0"
+2 -2
View File
@@ -21,10 +21,10 @@ except ImportError: # pragma: no cover - used when CLI not available
raise ImportError(
"ProjectConfigManager is unavailable. Install the FuzzForge CLI "
"package or supply a compatible configuration object."
) from exc
)
def __getattr__(name): # pragma: no cover - defensive
raise ImportError("ProjectConfigManager unavailable") from exc
raise ImportError("ProjectConfigManager unavailable")
ProjectConfigManager = _ProjectConfigManager