logosai-forge 0.5.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.
- logosai_forge-0.5.0/PKG-INFO +205 -0
- logosai_forge-0.5.0/README.md +363 -0
- logosai_forge-0.5.0/README_PYPI.md +185 -0
- logosai_forge-0.5.0/config/__init__.py +57 -0
- logosai_forge-0.5.0/config/agentic_pipeline.yaml +90 -0
- logosai_forge-0.5.0/config/llm_config.yaml +203 -0
- logosai_forge-0.5.0/config/system_config.py +202 -0
- logosai_forge-0.5.0/core/__init__.py +67 -0
- logosai_forge-0.5.0/core/advanced_code_generator.py +688 -0
- logosai_forge-0.5.0/core/agent_executor.py +509 -0
- logosai_forge-0.5.0/core/agent_pattern_learner.py +295 -0
- logosai_forge-0.5.0/core/agent_registrar.py +370 -0
- logosai_forge-0.5.0/core/agent_registry.py +693 -0
- logosai_forge-0.5.0/core/agentic/__init__.py +17 -0
- logosai_forge-0.5.0/core/agentic/agent_risk_classifier.py +56 -0
- logosai_forge-0.5.0/core/agentic/agent_tester.py +223 -0
- logosai_forge-0.5.0/core/agentic/base.py +480 -0
- logosai_forge-0.5.0/core/agentic/capability_planner.py +185 -0
- logosai_forge-0.5.0/core/agentic/code_assembler_agent.py +861 -0
- logosai_forge-0.5.0/core/agentic/code_generator_agent.py +2402 -0
- logosai_forge-0.5.0/core/agentic/code_improver_agent.py +1260 -0
- logosai_forge-0.5.0/core/agentic/collab_adapters.py +75 -0
- logosai_forge-0.5.0/core/agentic/collaboration.py +91 -0
- logosai_forge-0.5.0/core/agentic/collaborative_evolution.py +104 -0
- logosai_forge-0.5.0/core/agentic/dynamic_agent_factory.py +78 -0
- logosai_forge-0.5.0/core/agentic/error_healer_agent.py +327 -0
- logosai_forge-0.5.0/core/agentic/failure_collector_agent.py +383 -0
- logosai_forge-0.5.0/core/agentic/forge_v6_system.py +2047 -0
- logosai_forge-0.5.0/core/agentic/function_decomposer_agent.py +276 -0
- logosai_forge-0.5.0/core/agentic/grown_library.py +288 -0
- logosai_forge-0.5.0/core/agentic/growth_diagnostics.py +66 -0
- logosai_forge-0.5.0/core/agentic/healer_grower_dialogue.py +93 -0
- logosai_forge-0.5.0/core/agentic/mutual_growth.py +55 -0
- logosai_forge-0.5.0/core/agentic/pattern_analyzer_agent.py +188 -0
- logosai_forge-0.5.0/core/agentic/pattern_fix_trigger.py +190 -0
- logosai_forge-0.5.0/core/agentic/query_analyzer_agent.py +369 -0
- logosai_forge-0.5.0/core/agentic/strategy_agent.py +267 -0
- logosai_forge-0.5.0/core/agentic/test_gate_wired.py +127 -0
- logosai_forge-0.5.0/core/agentic/test_growing_contract.py +99 -0
- logosai_forge-0.5.0/core/agentic/test_grown_library.py +410 -0
- logosai_forge-0.5.0/core/agentic/test_grown_lifecycle.py +228 -0
- logosai_forge-0.5.0/core/agentic/test_korean_reuse.py +206 -0
- logosai_forge-0.5.0/core/agentic/test_self_growing_transient.py +104 -0
- logosai_forge-0.5.0/core/agentic/test_slice_gate_verbs.py +206 -0
- logosai_forge-0.5.0/core/agentic/test_slice_path.py +371 -0
- logosai_forge-0.5.0/core/agentic/test_validator_agent.py +325 -0
- logosai_forge-0.5.0/core/agentic/workflow_debate_agent.py +268 -0
- logosai_forge-0.5.0/core/agentic_engine.py +541 -0
- logosai_forge-0.5.0/core/apiintegrationagent_a9a53380.py +127 -0
- logosai_forge-0.5.0/core/approval_queue.py +279 -0
- logosai_forge-0.5.0/core/ast_code_generator.py +1064 -0
- logosai_forge-0.5.0/core/auto_template_generator.py +821 -0
- logosai_forge-0.5.0/core/backtick_sanitizer.py +244 -0
- logosai_forge-0.5.0/core/block_quality_monitor.py +251 -0
- logosai_forge-0.5.0/core/building_blocks/__init__.py +26 -0
- logosai_forge-0.5.0/core/building_blocks/composition_engine.py +214 -0
- logosai_forge-0.5.0/core/building_blocks/duplicate_detector.py +404 -0
- logosai_forge-0.5.0/core/building_blocks/registry.py +261 -0
- logosai_forge-0.5.0/core/building_blocks/reusability_analyzer.py +303 -0
- logosai_forge-0.5.0/core/building_blocks/schema.py +204 -0
- logosai_forge-0.5.0/core/business_logic/__init__.py +10 -0
- logosai_forge-0.5.0/core/business_logic/final_logic_generator.py +431 -0
- logosai_forge-0.5.0/core/business_logic/logic_generator.py +585 -0
- logosai_forge-0.5.0/core/business_logic/ultimate_final_generator.py +472 -0
- logosai_forge-0.5.0/core/business_logic/ultimate_logic_generator.py +456 -0
- logosai_forge-0.5.0/core/business_logic_extractor.py +339 -0
- logosai_forge-0.5.0/core/business_logic_v2/__init__.py +37 -0
- logosai_forge-0.5.0/core/business_logic_v2/business_logic_generator_v2.py +1414 -0
- logosai_forge-0.5.0/core/business_logic_v2/code_assembler.py +819 -0
- logosai_forge-0.5.0/core/business_logic_v2/enhanced_complexity_calculator.py +367 -0
- logosai_forge-0.5.0/core/business_logic_v2/enhanced_self_healing.py +526 -0
- logosai_forge-0.5.0/core/business_logic_v2/function_generator.py +1519 -0
- logosai_forge-0.5.0/core/business_logic_v2/lightweight_validator.py +333 -0
- logosai_forge-0.5.0/core/business_logic_v2/logic_synthesizer.py +789 -0
- logosai_forge-0.5.0/core/business_logic_v2/performance_monitor.py +401 -0
- logosai_forge-0.5.0/core/business_logic_v2/query_analyzer.py +1457 -0
- logosai_forge-0.5.0/core/business_logic_v2/self_healing.py +890 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/__init__.py +203 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/common_slices.py +1535 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/composition_engine.py +1198 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/comprehensive_pipeline_test.py +448 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/core_slices.py +559 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/domain_slices/__init__.py +93 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/domain_slices/customer_slices.py +1031 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/domain_slices/finance_slices.py +1301 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/domain_slices/hr_slices.py +346 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/domain_slices/inventory_slices.py +489 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/domain_slices/ml_ai_slices.py +1159 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/domain_slices/order_slices.py +511 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/domain_slices/project_slices.py +495 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/fill_slices.py +225 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/filled_loader.py +81 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/filled_slices.json +5604 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/generated_slices.json +714 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/library.py +392 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/models.py +308 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/pipeline_test_results.json +66 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/self_growing.py +962 -0
- logosai_forge-0.5.0/core/business_logic_v2/slice_library/specialized_slices.json +632 -0
- logosai_forge-0.5.0/core/business_logic_v2/workflow_designer.py +160 -0
- logosai_forge-0.5.0/core/business_logic_v2/workflow_orchestrator.py +680 -0
- logosai_forge-0.5.0/core/business_logic_validator.py +375 -0
- logosai_forge-0.5.0/core/business_patterns/__init__.py +22 -0
- logosai_forge-0.5.0/core/business_patterns/gemini_lite_matcher.py +313 -0
- logosai_forge-0.5.0/core/business_patterns/gemini_pattern_matcher.py +354 -0
- logosai_forge-0.5.0/core/business_patterns/llm_pattern_matcher.py +329 -0
- logosai_forge-0.5.0/core/business_patterns/pattern_library.py +131 -0
- logosai_forge-0.5.0/core/business_patterns/pattern_matcher.py +388 -0
- logosai_forge-0.5.0/core/business_patterns/patterns/__init__.py +6 -0
- logosai_forge-0.5.0/core/business_patterns/patterns/analytics_patterns.py +1100 -0
- logosai_forge-0.5.0/core/business_patterns/patterns/automation_patterns.py +1220 -0
- logosai_forge-0.5.0/core/business_patterns/patterns/communication_patterns.py +886 -0
- logosai_forge-0.5.0/core/business_patterns/patterns/content_patterns.py +1089 -0
- logosai_forge-0.5.0/core/business_patterns/patterns/data_patterns.py +660 -0
- logosai_forge-0.5.0/core/business_patterns/patterns/ecommerce_patterns.py +894 -0
- logosai_forge-0.5.0/core/business_patterns/patterns/filtering_patterns.py +235 -0
- logosai_forge-0.5.0/core/business_patterns/patterns/integration_patterns.py +959 -0
- logosai_forge-0.5.0/core/business_patterns/patterns/monitoring_patterns.py +342 -0
- logosai_forge-0.5.0/core/business_patterns/patterns/pricing_patterns.py +282 -0
- logosai_forge-0.5.0/core/business_patterns/patterns/security_patterns.py +1124 -0
- logosai_forge-0.5.0/core/business_patterns/patterns/user_management_patterns.py +934 -0
- logosai_forge-0.5.0/core/business_patterns/patterns/workflow_patterns.py +756 -0
- logosai_forge-0.5.0/core/calculatoragent_408925b7.py +144 -0
- logosai_forge-0.5.0/core/circuit_breaker.py +230 -0
- logosai_forge-0.5.0/core/clean_agent_generator.py +434 -0
- logosai_forge-0.5.0/core/code_fixer.py +1038 -0
- logosai_forge-0.5.0/core/code_generator.py +1069 -0
- logosai_forge-0.5.0/core/code_post_processor.py +229 -0
- logosai_forge-0.5.0/core/component_extractor.py +284 -0
- logosai_forge-0.5.0/core/context_manager.py +421 -0
- logosai_forge-0.5.0/core/dataanalysisagent_17f47b7b.py +132 -0
- logosai_forge-0.5.0/core/db_template_manager.py +603 -0
- logosai_forge-0.5.0/core/direct_gemini_client.py +127 -0
- logosai_forge-0.5.0/core/domain_modules/__init__.py +87 -0
- logosai_forge-0.5.0/core/domain_modules/data_analysis.py +349 -0
- logosai_forge-0.5.0/core/domain_modules/general.py +310 -0
- logosai_forge-0.5.0/core/domain_modules/inventory_management.py +288 -0
- logosai_forge-0.5.0/core/domain_modules/voice_analysis.py +260 -0
- logosai_forge-0.5.0/core/enhanced_code_parser.py +377 -0
- logosai_forge-0.5.0/core/enhanced_forge_pipeline.py +197 -0
- logosai_forge-0.5.0/core/enhanced_forge_system.py +440 -0
- logosai_forge-0.5.0/core/enhanced_query_analyzer.py +378 -0
- logosai_forge-0.5.0/core/enhanced_smart_template_generator.py +2215 -0
- logosai_forge-0.5.0/core/enhanced_template_generator.py +526 -0
- logosai_forge-0.5.0/core/enhanced_template_matcher.py +968 -0
- logosai_forge-0.5.0/core/env_validator.py +99 -0
- logosai_forge-0.5.0/core/error_collector.py +243 -0
- logosai_forge-0.5.0/core/evolution_engine.py +722 -0
- logosai_forge-0.5.0/core/exceptions.py +127 -0
- logosai_forge-0.5.0/core/final_answer_adapter.py +222 -0
- logosai_forge-0.5.0/core/final_forge_system.backup_20250816_213829.py +1683 -0
- logosai_forge-0.5.0/core/final_forge_system.py +4768 -0
- logosai_forge-0.5.0/core/final_forge_system_llm.py +860 -0
- logosai_forge-0.5.0/core/fixed_progressive_generator.py +388 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210321.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210321.py +66 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210322.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210322.py +48 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210617.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210617.py +38 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210620.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210620.py +36 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210621.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210621.py +36 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210622.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210622.py +38 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210623.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210623.py +38 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210635.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210635.py +38 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210638.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210638.py +36 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210639.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210639.py +36 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210640.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210640.py +38 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210641.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210641.py +38 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210700.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_210700.py +38 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_211202.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_211202.py +66 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_211204.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_211204.py +48 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_211205.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_211205.py +38 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_211206.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_211206.py +36 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_211207.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_211207.py +38 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_211230.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_211230.py +66 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_212326.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_212326.py +66 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_212328.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_212328.py +48 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_212329.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_212329.py +36 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_212330.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/custom_agent_20250825_212330.py +36 -0
- logosai_forge-0.5.0/core/forge/agents/generated/customer_agent_20250825_210322.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/customer_agent_20250825_210322.py +36 -0
- logosai_forge-0.5.0/core/forge/agents/generated/recommendation_agent_20250825_210619.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/recommendation_agent_20250825_210619.py +38 -0
- logosai_forge-0.5.0/core/forge/agents/generated/recommendation_agent_20250825_210637.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/recommendation_agent_20250825_210637.py +38 -0
- logosai_forge-0.5.0/core/forge/agents/generated/user_recommendation_agent_20250825_210621.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/user_recommendation_agent_20250825_210621.py +38 -0
- logosai_forge-0.5.0/core/forge/agents/generated/user_recommendation_agent_20250825_210639.json +23 -0
- logosai_forge-0.5.0/core/forge/agents/generated/user_recommendation_agent_20250825_210639.py +38 -0
- logosai_forge-0.5.0/core/forge_pipeline.py +789 -0
- logosai_forge-0.5.0/core/forge_v2_system.py +1190 -0
- logosai_forge-0.5.0/core/function_composition.py +158 -0
- logosai_forge-0.5.0/core/function_extractor.py +161 -0
- logosai_forge-0.5.0/core/function_graph.py +282 -0
- logosai_forge-0.5.0/core/function_registry.py +152 -0
- logosai_forge-0.5.0/core/function_telemetry.py +145 -0
- logosai_forge-0.5.0/core/generation_artifacts.py +381 -0
- logosai_forge-0.5.0/core/helper_library.py +376 -0
- logosai_forge-0.5.0/core/helper_post_processor.py +298 -0
- logosai_forge-0.5.0/core/improved_code_generator.py +281 -0
- logosai_forge-0.5.0/core/intelligent_data_generator.py +461 -0
- logosai_forge-0.5.0/core/intelligent_error_handler.py +578 -0
- logosai_forge-0.5.0/core/intelligent_matcher.py +592 -0
- logosai_forge-0.5.0/core/json_utils.py +131 -0
- logosai_forge-0.5.0/core/learning_system.py +590 -0
- logosai_forge-0.5.0/core/llm_cache.py +195 -0
- logosai_forge-0.5.0/core/llm_client.py +325 -0
- logosai_forge-0.5.0/core/llm_context_manager.py +55 -0
- logosai_forge-0.5.0/core/llm_dynamic_analyzer.py +595 -0
- logosai_forge-0.5.0/core/llm_integration.py +403 -0
- logosai_forge-0.5.0/core/llm_manager.py +402 -0
- logosai_forge-0.5.0/core/llm_orchestrator.py +578 -0
- logosai_forge-0.5.0/core/llm_pattern_matcher.py +291 -0
- logosai_forge-0.5.0/core/llm_router.py +87 -0
- logosai_forge-0.5.0/core/logging_config.py +71 -0
- logosai_forge-0.5.0/core/next_gen/__init__.py +19 -0
- logosai_forge-0.5.0/core/next_gen/ast_smart_assembler.py +965 -0
- logosai_forge-0.5.0/core/next_gen/business_logic_generator.py +791 -0
- logosai_forge-0.5.0/core/next_gen/class_based_prompt_system.py +119 -0
- logosai_forge-0.5.0/core/next_gen/enhanced_prompt_system.py +389 -0
- logosai_forge-0.5.0/core/next_gen/improved_prompt_system.py +389 -0
- logosai_forge-0.5.0/core/next_gen/intelligent_analyzer.py +420 -0
- logosai_forge-0.5.0/core/next_gen/llm_integration.py +487 -0
- logosai_forge-0.5.0/core/next_gen/powerful_prompt_system.py +152 -0
- logosai_forge-0.5.0/core/next_gen/simple_prompt_system.py +61 -0
- logosai_forge-0.5.0/core/next_gen/smart_assembler.py +542 -0
- logosai_forge-0.5.0/core/next_gen/smart_integration.py +645 -0
- logosai_forge-0.5.0/core/next_gen/template_manager.py +577 -0
- logosai_forge-0.5.0/core/next_gen/validator.py +513 -0
- logosai_forge-0.5.0/core/ontology_v7/__init__.py +25 -0
- logosai_forge-0.5.0/core/ontology_v7/bulk_index.py +194 -0
- logosai_forge-0.5.0/core/ontology_v7/extend_kg_domains.py +710 -0
- logosai_forge-0.5.0/core/ontology_v7/kg_checkpoint.json +7418 -0
- logosai_forge-0.5.0/core/ontology_v7/local_kg.py +163 -0
- logosai_forge-0.5.0/core/ontology_v7/schema.py +110 -0
- logosai_forge-0.5.0/core/ontology_v7/v7_code_generator.py +187 -0
- logosai_forge-0.5.0/core/optimized_streaming_executor.py +385 -0
- logosai_forge-0.5.0/core/pattern_debug_tracer.py +425 -0
- logosai_forge-0.5.0/core/pattern_force_mode.py +311 -0
- logosai_forge-0.5.0/core/pattern_template_integrator.py +718 -0
- logosai_forge-0.5.0/core/performance_monitor.py +629 -0
- logosai_forge-0.5.0/core/pipeline/__init__.py +10 -0
- logosai_forge-0.5.0/core/pipeline/advanced_pipeline.py +259 -0
- logosai_forge-0.5.0/core/pipeline/integrated_pipeline.py +394 -0
- logosai_forge-0.5.0/core/production/__init__.py +19 -0
- logosai_forge-0.5.0/core/production/api_server.py +264 -0
- logosai_forge-0.5.0/core/production/cache.py +209 -0
- logosai_forge-0.5.0/core/production/error_handler.py +271 -0
- logosai_forge-0.5.0/core/production/monitor.py +303 -0
- logosai_forge-0.5.0/core/production/pipeline.py +354 -0
- logosai_forge-0.5.0/core/production_feedback.py +243 -0
- logosai_forge-0.5.0/core/progressive_code_generator.py +426 -0
- logosai_forge-0.5.0/core/prompts/__init__.py +19 -0
- logosai_forge-0.5.0/core/prompts/helper_function_prompt.py +72 -0
- logosai_forge-0.5.0/core/prompts/prompt_manager.py +519 -0
- logosai_forge-0.5.0/core/prompts/prompt_registry.py +156 -0
- logosai_forge-0.5.0/core/query_analyzer.py +545 -0
- logosai_forge-0.5.0/core/retry_handler.py +488 -0
- logosai_forge-0.5.0/core/sandbox_executor.py +505 -0
- logosai_forge-0.5.0/core/self_evolution/__init__.py +22 -0
- logosai_forge-0.5.0/core/self_evolution/adapters/__init__.py +7 -0
- logosai_forge-0.5.0/core/self_evolution/adapters/evaluation_adapter.py +136 -0
- logosai_forge-0.5.0/core/self_evolution/adapters/growing_adapter.py +299 -0
- logosai_forge-0.5.0/core/self_evolution/adapters/healing_adapter.py +130 -0
- logosai_forge-0.5.0/core/self_evolution/config.py +49 -0
- logosai_forge-0.5.0/core/self_evolution/models.py +128 -0
- logosai_forge-0.5.0/core/self_evolution/orchestrator.py +135 -0
- logosai_forge-0.5.0/core/self_generation_system.py +503 -0
- logosai_forge-0.5.0/core/self_healing_module.py +585 -0
- logosai_forge-0.5.0/core/self_healing_system.py +431 -0
- logosai_forge-0.5.0/core/simple_single_pass_generator.py +257 -0
- logosai_forge-0.5.0/core/simplified_code_generator.py +2031 -0
- logosai_forge-0.5.0/core/slice_library/__init__.py +12 -0
- logosai_forge-0.5.0/core/slice_library/common_slices.py +3 -0
- logosai_forge-0.5.0/core/slice_library/core_slices.py +3 -0
- logosai_forge-0.5.0/core/slice_library/domain_slices.py +3 -0
- logosai_forge-0.5.0/core/slice_library/library.py +3 -0
- logosai_forge-0.5.0/core/smart_forge_system.py +400 -0
- logosai_forge-0.5.0/core/smart_llm_selector.py +335 -0
- logosai_forge-0.5.0/core/smart_sample_generator.py +318 -0
- logosai_forge-0.5.0/core/smart_template_generator.py +856 -0
- logosai_forge-0.5.0/core/smart_token_manager.py +311 -0
- logosai_forge-0.5.0/core/standalone_agent_generator.py +381 -0
- logosai_forge-0.5.0/core/streaming_executor.py +1324 -0
- logosai_forge-0.5.0/core/stub_markers.py +27 -0
- logosai_forge-0.5.0/core/template_analyzer.py +411 -0
- logosai_forge-0.5.0/core/template_based_generator.py +3493 -0
- logosai_forge-0.5.0/core/template_combiner/__init__.py +21 -0
- logosai_forge-0.5.0/core/template_combiner/combiner.py +782 -0
- logosai_forge-0.5.0/core/template_combiner/conflict_resolver.py +91 -0
- logosai_forge-0.5.0/core/template_combiner/dependency_manager.py +120 -0
- logosai_forge-0.5.0/core/template_combiner/orchestrator.py +143 -0
- logosai_forge-0.5.0/core/template_combiner/ultimate_combiner.py +322 -0
- logosai_forge-0.5.0/core/template_gap_analyzer.py +286 -0
- logosai_forge-0.5.0/core/template_manager.py +690 -0
- logosai_forge-0.5.0/core/template_matcher.py +790 -0
- logosai_forge-0.5.0/core/template_system/base_templates.py +446 -0
- logosai_forge-0.5.0/core/template_system/generation_rules.py +251 -0
- logosai_forge-0.5.0/core/template_system/template_manager.py +305 -0
- logosai_forge-0.5.0/core/template_system/usage_tracker.py +467 -0
- logosai_forge-0.5.0/core/unified_agent_generator.py +937 -0
- logosai_forge-0.5.0/core/unified_agentic_generator.py +831 -0
- logosai_forge-0.5.0/core/unified_business_logic_generator.py +598 -0
- logosai_forge-0.5.0/core/unified_forge_pipeline.py +361 -0
- logosai_forge-0.5.0/core/unified_forge_pipeline_with_logging.py +441 -0
- logosai_forge-0.5.0/core/unified_logging_system.py +280 -0
- logosai_forge-0.5.0/core/unified_pattern_matcher.py +505 -0
- logosai_forge-0.5.0/core/unified_query_analyzer.py +836 -0
- logosai_forge-0.5.0/core/unified_template_generator.py +526 -0
- logosai_forge-0.5.0/core/universal_code_parser.py +509 -0
- logosai_forge-0.5.0/core/validator.py +518 -0
- logosai_forge-0.5.0/logosai_forge/__init__.py +24 -0
- logosai_forge-0.5.0/logosai_forge/client.py +224 -0
- logosai_forge-0.5.0/logosai_forge.egg-info/PKG-INFO +205 -0
- logosai_forge-0.5.0/logosai_forge.egg-info/SOURCES.txt +563 -0
- logosai_forge-0.5.0/logosai_forge.egg-info/dependency_links.txt +1 -0
- logosai_forge-0.5.0/logosai_forge.egg-info/requires.txt +7 -0
- logosai_forge-0.5.0/logosai_forge.egg-info/top_level.txt +5 -0
- logosai_forge-0.5.0/pyproject.toml +40 -0
- logosai_forge-0.5.0/setup.cfg +4 -0
- logosai_forge-0.5.0/templates/agentic/unified_agentic_template.py.template +180 -0
- logosai_forge-0.5.0/templates/agentic_agent.py.template +206 -0
- logosai_forge-0.5.0/templates/api_integration_agent.py.template +468 -0
- logosai_forge-0.5.0/templates/auto_generated/education_create_agent_20250826_112954.py.template +87 -0
- logosai_forge-0.5.0/templates/auto_generated/general_analyze_agent_20250826_113011.py.template +102 -0
- logosai_forge-0.5.0/templates/auto_generated/general_monitor_agent_20250826_113005.py.template +93 -0
- logosai_forge-0.5.0/templates/auto_generated/healthcare_general_agent_20250826_112951.py.template +89 -0
- logosai_forge-0.5.0/templates/auto_generated/security_monitor_agent_20250826_112958.py.template +98 -0
- logosai_forge-0.5.0/templates/base_agent.py.template +130 -0
- logosai_forge-0.5.0/templates/comprehensive_agent.py.template +453 -0
- logosai_forge-0.5.0/templates/data_analysis_agent.py.template +622 -0
- logosai_forge-0.5.0/templates/database_integration_agent.py.template +792 -0
- logosai_forge-0.5.0/templates/document_processing_agent.py.template +868 -0
- logosai_forge-0.5.0/templates/functions/analysis/customer_behavior.py +278 -0
- logosai_forge-0.5.0/templates/functions/analysis/financial_analysis.py +457 -0
- logosai_forge-0.5.0/templates/functions/analysis/statistical.py +183 -0
- logosai_forge-0.5.0/templates/functions/analysis/time_series.py +224 -0
- logosai_forge-0.5.0/templates/functions/browser/__init__.py +1 -0
- logosai_forge-0.5.0/templates/functions/browser/interaction.py +80 -0
- logosai_forge-0.5.0/templates/functions/browser/navigation.py +108 -0
- logosai_forge-0.5.0/templates/functions/data_io/csv_reader.py +181 -0
- logosai_forge-0.5.0/templates/functions/data_io/database_connector.py +148 -0
- logosai_forge-0.5.0/templates/functions/data_io/excel_handler.py +107 -0
- logosai_forge-0.5.0/templates/functions/data_io/json_parser.py +195 -0
- logosai_forge-0.5.0/templates/functions/data_io/pdf_extractor.py +152 -0
- logosai_forge-0.5.0/templates/functions/database/crud_operations.py +235 -0
- logosai_forge-0.5.0/templates/functions/desktop/__init__.py +1 -0
- logosai_forge-0.5.0/templates/functions/desktop/app_control.py +111 -0
- logosai_forge-0.5.0/templates/functions/desktop/gmail_ctrl.py +75 -0
- logosai_forge-0.5.0/templates/functions/desktop/kakaotalk_ctrl.py +57 -0
- logosai_forge-0.5.0/templates/functions/desktop/keyboard.py +83 -0
- logosai_forge-0.5.0/templates/functions/desktop/notion_ctrl.py +69 -0
- logosai_forge-0.5.0/templates/functions/desktop/scripting.py +63 -0
- logosai_forge-0.5.0/templates/functions/desktop/ui_control.py +76 -0
- logosai_forge-0.5.0/templates/functions/enterprise/__init__.py +15 -0
- logosai_forge-0.5.0/templates/functions/enterprise/audit_logger.py +274 -0
- logosai_forge-0.5.0/templates/functions/enterprise/backup_restore.py +359 -0
- logosai_forge-0.5.0/templates/functions/enterprise/data_masking.py +225 -0
- logosai_forge-0.5.0/templates/functions/enterprise/monitoring_alert.py +369 -0
- logosai_forge-0.5.0/templates/functions/file_ops/__init__.py +1 -0
- logosai_forge-0.5.0/templates/functions/file_ops/document_index.py +113 -0
- logosai_forge-0.5.0/templates/functions/file_ops/file_analysis.py +38 -0
- logosai_forge-0.5.0/templates/functions/file_ops/file_reader.py +147 -0
- logosai_forge-0.5.0/templates/functions/file_ops/file_search.py +347 -0
- logosai_forge-0.5.0/templates/functions/file_ops/utils.py +37 -0
- logosai_forge-0.5.0/templates/functions/file_write/__init__.py +1 -0
- logosai_forge-0.5.0/templates/functions/file_write/document_writer.py +169 -0
- logosai_forge-0.5.0/templates/functions/file_write/spreadsheet_writer.py +118 -0
- logosai_forge-0.5.0/templates/functions/file_write/text_writer.py +60 -0
- logosai_forge-0.5.0/templates/functions/integration/email_sender.py +243 -0
- logosai_forge-0.5.0/templates/functions/integration/rest_api_caller.py +162 -0
- logosai_forge-0.5.0/templates/functions/integration/webhook_caller.py +276 -0
- logosai_forge-0.5.0/templates/functions/messaging/__init__.py +1 -0
- logosai_forge-0.5.0/templates/functions/messaging/discord.py +49 -0
- logosai_forge-0.5.0/templates/functions/messaging/email.py +205 -0
- logosai_forge-0.5.0/templates/functions/messaging/kakaotalk.py +121 -0
- logosai_forge-0.5.0/templates/functions/messaging/line.py +37 -0
- logosai_forge-0.5.0/templates/functions/messaging/slack.py +49 -0
- logosai_forge-0.5.0/templates/functions/messaging/teams.py +45 -0
- logosai_forge-0.5.0/templates/functions/messaging/telegram.py +49 -0
- logosai_forge-0.5.0/templates/functions/ml_ai/computer_vision.py +282 -0
- logosai_forge-0.5.0/templates/functions/ml_ai/sentiment_analysis.py +246 -0
- logosai_forge-0.5.0/templates/functions/ml_ai/text_classification.py +237 -0
- logosai_forge-0.5.0/templates/functions/ml_ai/text_summarization.py +195 -0
- logosai_forge-0.5.0/templates/functions/ml_ai/voice_processing.py +318 -0
- logosai_forge-0.5.0/templates/functions/monitoring/kpi_dashboard.py +193 -0
- logosai_forge-0.5.0/templates/functions/parsing/__init__.py +1 -0
- logosai_forge-0.5.0/templates/functions/parsing/date.py +57 -0
- logosai_forge-0.5.0/templates/functions/parsing/email.py +23 -0
- logosai_forge-0.5.0/templates/functions/parsing/filepath.py +33 -0
- logosai_forge-0.5.0/templates/functions/parsing/name.py +48 -0
- logosai_forge-0.5.0/templates/functions/parsing/phone.py +29 -0
- logosai_forge-0.5.0/templates/functions/parsing/sanitizer.py +43 -0
- logosai_forge-0.5.0/templates/functions/parsing/url.py +23 -0
- logosai_forge-0.5.0/templates/functions/registry.json +35315 -0
- logosai_forge-0.5.0/templates/functions/security/encryption_tool.py +294 -0
- logosai_forge-0.5.0/templates/functions/security/password_hasher.py +261 -0
- logosai_forge-0.5.0/templates/functions/security/privacy_compliance.py +417 -0
- logosai_forge-0.5.0/templates/functions/social/social_listening.py +403 -0
- logosai_forge-0.5.0/templates/functions/transformation/data_aggregator.py +220 -0
- logosai_forge-0.5.0/templates/functions/transformation/data_cleaner.py +242 -0
- logosai_forge-0.5.0/templates/functions/vision/__init__.py +1 -0
- logosai_forge-0.5.0/templates/functions/vision/element_finder.py +45 -0
- logosai_forge-0.5.0/templates/functions/vision/quick_check.py +46 -0
- logosai_forge-0.5.0/templates/functions/vision/screen_capture.py +91 -0
- logosai_forge-0.5.0/templates/functions/vision/screen_state.py +44 -0
- logosai_forge-0.5.0/templates/functions/vision/verification.py +45 -0
- logosai_forge-0.5.0/templates/functions/vision/vision_llm.py +44 -0
- logosai_forge-0.5.0/templates/functions/vision_react/__init__.py +1 -0
- logosai_forge-0.5.0/templates/functions/vision_react/act.py +67 -0
- logosai_forge-0.5.0/templates/functions/vision_react/judge.py +99 -0
- logosai_forge-0.5.0/templates/functions/vision_react/locate.py +54 -0
- logosai_forge-0.5.0/templates/functions/vision_react/observe.py +60 -0
- logosai_forge-0.5.0/templates/functions/vision_react/react.py +134 -0
- logosai_forge-0.5.0/templates/functions/visualization/chart_generator.py +272 -0
- logosai_forge-0.5.0/templates/functions/visualization/charts.py +94 -0
- logosai_forge-0.5.0/templates/functions/visualization/reports.py +112 -0
- logosai_forge-0.5.0/templates/functions/web/http_client.py +159 -0
- logosai_forge-0.5.0/templates/functions/web/web_scraper.py +267 -0
- logosai_forge-0.5.0/templates/logosai_agent_template.py.template +728 -0
- logosai_forge-0.5.0/templates/logosai_agent_template_agentic_enhanced.py.template +727 -0
- logosai_forge-0.5.0/templates/logosai_agent_template_clean.py.template +272 -0
- logosai_forge-0.5.0/templates/logosai_agent_template_legacy.py.template +9 -0
- logosai_forge-0.5.0/templates/logosai_agent_template_simplified.py.template +138 -0
- logosai_forge-0.5.0/templates/logosai_agent_template_v2.py.template +458 -0
- logosai_forge-0.5.0/templates/logosai_ultra_simple.py.template +186 -0
- logosai_forge-0.5.0/templates/metadata.json +25 -0
- logosai_forge-0.5.0/templates/multi_tool_agent.py.template +651 -0
- logosai_forge-0.5.0/templates/realtime_monitoring_agent.py.template +769 -0
- logosai_forge-0.5.0/templates/specialized/api_tester.py.template +267 -0
- logosai_forge-0.5.0/templates/specialized/automl_pipeline_template.py.template +449 -0
- logosai_forge-0.5.0/templates/specialized/contract_analyzer_template.py.template +476 -0
- logosai_forge-0.5.0/templates/specialized/csv_excel_analyzer_template.py.template +372 -0
- logosai_forge-0.5.0/templates/specialized/database_manager.py.template +403 -0
- logosai_forge-0.5.0/templates/specialized/email_automation.py.template +1031 -0
- logosai_forge-0.5.0/templates/specialized/file_synchronizer.py.template +485 -0
- logosai_forge-0.5.0/templates/specialized/financial_risk_template.py +232 -0
- logosai_forge-0.5.0/templates/specialized/image_analyzer.py.template +583 -0
- logosai_forge-0.5.0/templates/specialized/kpi_dashboard_template.py.template +242 -0
- logosai_forge-0.5.0/templates/specialized/log_analyzer.py.template +326 -0
- logosai_forge-0.5.0/templates/specialized/news_aggregator.py.template +885 -0
- logosai_forge-0.5.0/templates/specialized/pdf_analyzer.py.template +866 -0
- logosai_forge-0.5.0/templates/specialized/price_monitoring_template.py.template +370 -0
- logosai_forge-0.5.0/templates/specialized/sentiment_analyzer.py.template +1057 -0
- logosai_forge-0.5.0/templates/specialized/stock_analyzer.py.template +958 -0
- logosai_forge-0.5.0/templates/specialized/time_series_forecaster.py.template +908 -0
- logosai_forge-0.5.0/templates/specialized/translator.py.template +179 -0
- logosai_forge-0.5.0/templates/specialized/voice_processor.py.template +286 -0
- logosai_forge-0.5.0/templates/strategic/blockchain_agent.py.template +591 -0
- logosai_forge-0.5.0/templates/strategic/iot_agent.py.template +835 -0
- logosai_forge-0.5.0/templates/strategic/voice_recognition_agent.py.template +566 -0
- logosai_forge-0.5.0/templates/template_metadata.json +187 -0
- logosai_forge-0.5.0/templates/template_metadata_full.json +5265 -0
- logosai_forge-0.5.0/templates/template_registry.json +273 -0
- logosai_forge-0.5.0/templates/template_utils.py.template +744 -0
- logosai_forge-0.5.0/templates/ultra_simple_agent.py.template +73 -0
- logosai_forge-0.5.0/templates/web_scraping_agent.py.template +648 -0
- logosai_forge-0.5.0/templates/workflow_automation_agent.py.template +989 -0
- logosai_forge-0.5.0/tests/test_10_scenarios.py +201 -0
- logosai_forge-0.5.0/tests/test_3_scenarios.py +107 -0
- logosai_forge-0.5.0/tests/test_advanced_pipeline.py +409 -0
- logosai_forge-0.5.0/tests/test_agent_naming.py +92 -0
- logosai_forge-0.5.0/tests/test_agent_restore.py +110 -0
- logosai_forge-0.5.0/tests/test_all_scenarios.py +193 -0
- logosai_forge-0.5.0/tests/test_assembler_dict_contract.py +138 -0
- logosai_forge-0.5.0/tests/test_assembler_escape.py +108 -0
- logosai_forge-0.5.0/tests/test_augmentation_contract.py +189 -0
- logosai_forge-0.5.0/tests/test_business_primitives.py +196 -0
- logosai_forge-0.5.0/tests/test_business_primitives_10.py +143 -0
- logosai_forge-0.5.0/tests/test_business_primitives_2.py +154 -0
- logosai_forge-0.5.0/tests/test_business_primitives_3.py +142 -0
- logosai_forge-0.5.0/tests/test_business_primitives_4.py +147 -0
- logosai_forge-0.5.0/tests/test_business_primitives_5.py +153 -0
- logosai_forge-0.5.0/tests/test_business_primitives_6.py +147 -0
- logosai_forge-0.5.0/tests/test_business_primitives_7.py +146 -0
- logosai_forge-0.5.0/tests/test_business_primitives_8.py +180 -0
- logosai_forge-0.5.0/tests/test_business_primitives_9.py +173 -0
- logosai_forge-0.5.0/tests/test_capability_wiring.py +258 -0
- logosai_forge-0.5.0/tests/test_cleanup_empty_agents.py +106 -0
- logosai_forge-0.5.0/tests/test_collapse_spec_pick.py +121 -0
- logosai_forge-0.5.0/tests/test_conversations_by_agent.py +75 -0
- logosai_forge-0.5.0/tests/test_core_components.py +191 -0
- logosai_forge-0.5.0/tests/test_decomposer_output_contract.py +128 -0
- logosai_forge-0.5.0/tests/test_decomposer_robustness.py +196 -0
- logosai_forge-0.5.0/tests/test_direct_pipeline.py +268 -0
- logosai_forge-0.5.0/tests/test_feedback_wiring.py +139 -0
- logosai_forge-0.5.0/tests/test_filled_slice_registration.py +145 -0
- logosai_forge-0.5.0/tests/test_function_attribution.py +115 -0
- logosai_forge-0.5.0/tests/test_fuzzy_debug.py +158 -0
- logosai_forge-0.5.0/tests/test_gap_trace_propagation.py +80 -0
- logosai_forge-0.5.0/tests/test_gemini_25_performance.py +529 -0
- logosai_forge-0.5.0/tests/test_gemini_25_simulation.py +427 -0
- logosai_forge-0.5.0/tests/test_gemini_lite_real.py +322 -0
- logosai_forge-0.5.0/tests/test_gemini_matcher.py +339 -0
- logosai_forge-0.5.0/tests/test_generation_failure_no_save.py +61 -0
- logosai_forge-0.5.0/tests/test_generation_payload_rules.py +79 -0
- logosai_forge-0.5.0/tests/test_generation_span_fields.py +125 -0
- logosai_forge-0.5.0/tests/test_generation_trace_link.py +97 -0
- logosai_forge-0.5.0/tests/test_harness_env_parity.py +91 -0
- logosai_forge-0.5.0/tests/test_import_parity.py +109 -0
- logosai_forge-0.5.0/tests/test_improved_matcher.py +144 -0
- logosai_forge-0.5.0/tests/test_improver_caller_contract.py +136 -0
- logosai_forge-0.5.0/tests/test_integrated_pipeline.py +436 -0
- logosai_forge-0.5.0/tests/test_interactive_auto_generate.py +135 -0
- logosai_forge-0.5.0/tests/test_key_alignment.py +167 -0
- logosai_forge-0.5.0/tests/test_kg_update_message.py +65 -0
- logosai_forge-0.5.0/tests/test_llm_forge_system.py +172 -0
- logosai_forge-0.5.0/tests/test_llm_matcher.py +224 -0
- logosai_forge-0.5.0/tests/test_local_fixes.py +90 -0
- logosai_forge-0.5.0/tests/test_local_template_assembly.py +71 -0
- logosai_forge-0.5.0/tests/test_monitoring_scenario.py +102 -0
- logosai_forge-0.5.0/tests/test_multiple_scenarios.py +186 -0
- logosai_forge-0.5.0/tests/test_parse_example_types.py +98 -0
- logosai_forge-0.5.0/tests/test_pattern_library.py +308 -0
- logosai_forge-0.5.0/tests/test_pattern_matcher.py +408 -0
- logosai_forge-0.5.0/tests/test_pattern_validation_metric.py +110 -0
- logosai_forge-0.5.0/tests/test_phase3_contracts.py +107 -0
- logosai_forge-0.5.0/tests/test_phase4_deploy_import.py +170 -0
- logosai_forge-0.5.0/tests/test_pipeline_key_contract.py +190 -0
- logosai_forge-0.5.0/tests/test_production_pipeline.py +449 -0
- logosai_forge-0.5.0/tests/test_prompt_improvements.py +257 -0
- logosai_forge-0.5.0/tests/test_quick_server.py +75 -0
- logosai_forge-0.5.0/tests/test_raw_api.py +63 -0
- logosai_forge-0.5.0/tests/test_recovery_loop.py +308 -0
- logosai_forge-0.5.0/tests/test_registrar_ghost_config.py +141 -0
- logosai_forge-0.5.0/tests/test_registrar_pre_gate.py +85 -0
- logosai_forge-0.5.0/tests/test_rest_agent_id.py +64 -0
- logosai_forge-0.5.0/tests/test_scenarios_simple.py +120 -0
- logosai_forge-0.5.0/tests/test_selfgrowing_gate.py +195 -0
- logosai_forge-0.5.0/tests/test_server_scenarios.py +299 -0
- logosai_forge-0.5.0/tests/test_simple_fix.py +73 -0
- logosai_forge-0.5.0/tests/test_single_detailed.py +160 -0
- logosai_forge-0.5.0/tests/test_single_llm_scenario.py +102 -0
- logosai_forge-0.5.0/tests/test_single_quick.py +73 -0
- logosai_forge-0.5.0/tests/test_slice_library_audit.py +100 -0
- logosai_forge-0.5.0/tests/test_smoke_tc_prompting.py +113 -0
- logosai_forge-0.5.0/tests/test_stage9_budget_and_slice_gate.py +178 -0
- logosai_forge-0.5.0/tests/test_step3_logic_generator.py +452 -0
- logosai_forge-0.5.0/tests/test_synthetic_testcase.py +236 -0
- logosai_forge-0.5.0/tests/test_tc_input_contract.py +99 -0
- logosai_forge-0.5.0/tests/test_undefined_ref_completion.py +186 -0
- logosai_forge-0.5.0/tests/test_v6_honest_success.py +123 -0
- logosai_forge-0.5.0/tests/test_v6_naming_and_offload.py +80 -0
- logosai_forge-0.5.0/utils/agentic_detector.py +374 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: logosai-forge
|
|
3
|
+
Version: 0.5.0
|
|
4
|
+
Summary: AI Agent Generation Library — Agents Building Agents
|
|
5
|
+
Author: LogosAI Team
|
|
6
|
+
License: Proprietary (pre-publication)
|
|
7
|
+
Project-URL: Homepage, https://github.com/maior/logosai-forge
|
|
8
|
+
Keywords: ai,agent,code-generation,agentic,logosai
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
12
|
+
Requires-Python: >=3.10
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Requires-Dist: google-generativeai>=0.8.0
|
|
15
|
+
Requires-Dist: loguru>=0.7.0
|
|
16
|
+
Requires-Dist: aiohttp>=3.9.0
|
|
17
|
+
Requires-Dist: pyyaml>=6.0
|
|
18
|
+
Provides-Extra: logosai
|
|
19
|
+
Requires-Dist: logosai>=0.7.0; extra == "logosai"
|
|
20
|
+
|
|
21
|
+
# logosai-forge
|
|
22
|
+
|
|
23
|
+
**FORGE: An AI Agent Code Builder** — agents that create, fix, and evolve other agents.
|
|
24
|
+
|
|
25
|
+
15 agentic AI agents collaborate to autonomously generate, improve, enhance, and self-evolve agent code.
|
|
26
|
+
|
|
27
|
+
## Installation
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pip install logosai-forge
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Quick Start
|
|
34
|
+
|
|
35
|
+
```python
|
|
36
|
+
import asyncio
|
|
37
|
+
from logosai_forge import ForgeClient
|
|
38
|
+
|
|
39
|
+
async def main():
|
|
40
|
+
forge = ForgeClient()
|
|
41
|
+
|
|
42
|
+
# Generate a new agent
|
|
43
|
+
result = await forge.create_agent(
|
|
44
|
+
"Calculate BMI from weight and height",
|
|
45
|
+
test_cases=[{
|
|
46
|
+
"input": {"weight_kg": 70, "height_m": 1.75},
|
|
47
|
+
"expected": {"bmi": 22.9, "category": "normal"}
|
|
48
|
+
}]
|
|
49
|
+
)
|
|
50
|
+
print(result.code)
|
|
51
|
+
|
|
52
|
+
# Fix a broken agent
|
|
53
|
+
result = await forge.improve_agent(agent_code, {
|
|
54
|
+
"error_type": "logic_error",
|
|
55
|
+
"error_message": "Condition is inverted — score>700 should approve",
|
|
56
|
+
"test_input": {"credit_score": 750},
|
|
57
|
+
"expected_output": {"decision": "approved"},
|
|
58
|
+
"actual_output": {"decision": "denied"},
|
|
59
|
+
})
|
|
60
|
+
print(result.changes)
|
|
61
|
+
|
|
62
|
+
# Add missing functions
|
|
63
|
+
result = await forge.enhance_agent(
|
|
64
|
+
existing_code,
|
|
65
|
+
"Add multiply and divide methods"
|
|
66
|
+
)
|
|
67
|
+
print(result.added_functions) # ['_multiply', '_divide']
|
|
68
|
+
|
|
69
|
+
asyncio.run(main())
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Features
|
|
73
|
+
|
|
74
|
+
| Method | Purpose | Example |
|
|
75
|
+
|--------|---------|---------|
|
|
76
|
+
| `create_agent()` | Generate new agent from query | "Calculate shipping cost" |
|
|
77
|
+
| `improve_agent()` | Fix bugs from failure feedback | Inverted condition, wrong formula |
|
|
78
|
+
| `enhance_agent()` | Add missing logic/functions | "Add caching", "Add error handling" |
|
|
79
|
+
|
|
80
|
+
### Self-Evolution Infrastructure (v0.2.16)
|
|
81
|
+
|
|
82
|
+
FORGE now detects duplicate agents, composes agents from reusable blocks, and extracts blocks from existing agents:
|
|
83
|
+
|
|
84
|
+
```python
|
|
85
|
+
# Duplicate detection — avoid creating redundant agents
|
|
86
|
+
# (Automatic in V6 pipeline Stage 0)
|
|
87
|
+
result = await forge.create_agent("File search agent")
|
|
88
|
+
# → Detects existing file_agent, asks: create_new / extend_existing / cancel
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
REST API endpoints:
|
|
92
|
+
- `GET /api/blocks/search?query=&category=` — search 339 reusable blocks
|
|
93
|
+
- `GET /api/blocks/{block_id}` — block detail
|
|
94
|
+
- `POST /api/blocks/compose` — compose agent from selected blocks
|
|
95
|
+
- `POST /api/agents/check-duplicate` — similarity analysis (4-dim: purpose/function/tags/pattern)
|
|
96
|
+
- `POST /api/agents/{id}/extract-blocks` — extract reusable functions from existing agent
|
|
97
|
+
|
|
98
|
+
**Registry**: 339 building blocks (157 templates + 169 slices + 13 extracted), unified adapter over existing FORGE assets.
|
|
99
|
+
|
|
100
|
+
### Desktop Library Integration (v0.2.15)
|
|
101
|
+
|
|
102
|
+
Generated agents automatically use `logosai.desktop` for messaging and desktop control:
|
|
103
|
+
|
|
104
|
+
```python
|
|
105
|
+
# Messaging channels (API-based)
|
|
106
|
+
result = await forge.create_agent("Telegram으로 메시지 보내는 에이전트")
|
|
107
|
+
# → Uses: from logosai.desktop.channels.telegram import TelegramChannel
|
|
108
|
+
|
|
109
|
+
# Desktop app control (GUI automation)
|
|
110
|
+
result = await forge.create_agent("카카오톡으로 메시지 보내는 에이전트")
|
|
111
|
+
# → Uses: from logosai.desktop.apps.kakaotalk import KakaoTalkController
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
**Supported**: Telegram, Slack, Discord, LINE, Teams (API) + KakaoTalk, Gmail, Notion (GUI)
|
|
115
|
+
|
|
116
|
+
### Natural Language Query Parsing (v0.2.15)
|
|
117
|
+
|
|
118
|
+
Generated agents parse natural language into structured parameters via LLM:
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
"5 킬로그램을 파운드로" → _parse_query(LLM) → {"kilograms": 5.0} → business function
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
No code changes needed — `_parse_query()` is auto-generated with exact parameter hints from function specs.
|
|
125
|
+
|
|
126
|
+
### ACP-Compliant Code Generation
|
|
127
|
+
|
|
128
|
+
Generated agents automatically follow the ACP Agent Interface Specification:
|
|
129
|
+
- `process(query, context)` with query str/dict normalization + LLM parameter extraction
|
|
130
|
+
- `AgentResponse` with `content["answer"]` (string)
|
|
131
|
+
- File creation agents return `file_path` + `file_name`
|
|
132
|
+
- Search agents return `files` list with absolute paths
|
|
133
|
+
- Uses python-pptx, openpyxl, subprocess (mdfind, pdfgrep) when appropriate
|
|
134
|
+
|
|
135
|
+
### Function Slice Architecture
|
|
136
|
+
|
|
137
|
+
Agents are built by **combining reusable function slices** (174 slices), not writing entire code from scratch.
|
|
138
|
+
|
|
139
|
+
`improve_agent()` works at function granularity with a dedicated repair pipeline:
|
|
140
|
+
1. Extract functions (AST-based, sync + async)
|
|
141
|
+
2. Diagnose: LLM identifies broken function + root cause
|
|
142
|
+
3. Repair: `_repair_function()` fixes in-place (preserves original signature, not regenerate)
|
|
143
|
+
4. Replace in original code (other functions untouched)
|
|
144
|
+
5. Validate: quick execution check + full test case comparison
|
|
145
|
+
6. Auto-register fixed version to function registry
|
|
146
|
+
|
|
147
|
+
**E2E accuracy**: create_agent 98%, improve_agent 100% (3-run average).
|
|
148
|
+
|
|
149
|
+
Supports large agents (15KB+) with size-based strategy and dynamic timeouts.
|
|
150
|
+
|
|
151
|
+
### Function Template Library
|
|
152
|
+
|
|
153
|
+
153 reusable function templates across 21 categories, including:
|
|
154
|
+
- **API Channels**: Telegram, Slack, Discord, LINE, Teams (`logosai.desktop.channels`)
|
|
155
|
+
- **Desktop Apps**: KakaoTalk, Gmail, Notion AppControllers (`logosai.desktop.apps`)
|
|
156
|
+
- **File Ops**: PDF/Excel/PPTX/DOCX read/write, Spotlight search
|
|
157
|
+
- **Vision**: Screen capture, Vision AI analysis, ReAct loop
|
|
158
|
+
- **Browser**: Chrome automation, form fill, JS injection
|
|
159
|
+
|
|
160
|
+
### Domain Expert Review (v0.2.12)
|
|
161
|
+
|
|
162
|
+
Pipeline Stage 6.5 — after code assembly, a **dynamically created domain expert** reviews the generated code:
|
|
163
|
+
- Automatic domain detection (finance, healthcare, legal, etc.)
|
|
164
|
+
- Confidence gate: low confidence → expert feedback injected into retry loop
|
|
165
|
+
- Enable/disable via YAML config (`domain_review.enabled`)
|
|
166
|
+
|
|
167
|
+
### Function Intelligence
|
|
168
|
+
|
|
169
|
+
- **Telemetry**: per-function call count, success rate, error types (SQLite)
|
|
170
|
+
- **Version Management**: auto-increment versions, quality comparison, rollback
|
|
171
|
+
- **Composition Learning**: tracks which functions work well together (function pairs)
|
|
172
|
+
- **Pattern-Based Generation**: successful functions as reference for new domains
|
|
173
|
+
- **Quality Gate**: success rate < 0.70 → blocked from library admission
|
|
174
|
+
- **Function Graph**: unified ontology connecting templates, pairs, metrics, and type compatibility
|
|
175
|
+
|
|
176
|
+
### Persistent Memory & Observability
|
|
177
|
+
|
|
178
|
+
- Learned patterns survive server restarts (SQLite-backed)
|
|
179
|
+
- All reasoning traces persisted and queryable (agent, time, success)
|
|
180
|
+
- Configuration via YAML (`config/agentic_pipeline.yaml`) + env var overrides
|
|
181
|
+
- Tool Registry for LLM/library dependency injection
|
|
182
|
+
- Context Manager for priority-based LLM token fitting
|
|
183
|
+
|
|
184
|
+
## Setup
|
|
185
|
+
|
|
186
|
+
### Google API Key (required)
|
|
187
|
+
|
|
188
|
+
FORGE uses Gemini LLM for code generation. A Google API Key is required.
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
export GOOGLE_API_KEY="your-google-api-key-here"
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Get your API key: https://aistudio.google.com/apikey
|
|
195
|
+
|
|
196
|
+
## Requirements
|
|
197
|
+
|
|
198
|
+
- Python 3.10+
|
|
199
|
+
- Google API Key (`GOOGLE_API_KEY` environment variable)
|
|
200
|
+
- LogosAI framework (optional, for agent execution)
|
|
201
|
+
|
|
202
|
+
## License
|
|
203
|
+
|
|
204
|
+
Source code will be open-sourced after paper publication.
|
|
205
|
+
Part of the [LogosAI](https://github.com/maior) ecosystem.
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
# FORGE AI
|
|
2
|
+
|
|
3
|
+
**Framework for Orchestrating Reactive Generated Entities**
|
|
4
|
+
|
|
5
|
+
FORGE is an AI-powered agent builder that generates production-ready Python agents from natural language descriptions. Instead of manually coding agents, describe what you need and FORGE handles query analysis, business logic synthesis, code generation, and self-healing validation automatically.
|
|
6
|
+
|
|
7
|
+
> **🆕 2026-06-14 — Collaborative Self-Evolution**: self-healing and self-growing are no longer isolated stages — they **converse** (Healer posts a diagnosis, Grower regenerates and learns) and **grow each other** over time. Runs at V6 Stage 7.5 behind `FORGE_COLLAB_EVOLUTION` (default off). Generation can also be driven directly by logos_api over WebSocket (`FORGE_VIA_API`). See `docs/COLLABORATIVE_SELF_EVOLUTION_DESIGN.md`.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## How It Works
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
User Query ──► Query Analysis ──► Business Logic ──► Code Assembly ──► Self-Healing ──► Agent
|
|
15
|
+
Synthesis + Agentic AI Validation
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
**Input**: `"Create a calculator agent that adds and multiplies numbers"`
|
|
19
|
+
|
|
20
|
+
**Output**: A complete Python agent class (~200 lines) with:
|
|
21
|
+
- Proper class structure inheriting from LogosAIAgent
|
|
22
|
+
- Async `process()` method with business logic
|
|
23
|
+
- Error handling, logging, and metadata
|
|
24
|
+
- Optional agentic capabilities (tool use, reasoning, memory)
|
|
25
|
+
|
|
26
|
+
## Features
|
|
27
|
+
|
|
28
|
+
### Agent Generation Pipeline
|
|
29
|
+
- **6-stage progressive generation**: Query analysis → pattern detection → function generation → workflow orchestration → code assembly → validation
|
|
30
|
+
- **Domain-aware LLM prompts**: 14 domain categories with specialized hints (calculation, finance, analysis, vision, etc.)
|
|
31
|
+
- **LLM retry with fallback**: Primary generation → retry with shorter prompt → template fallback
|
|
32
|
+
- **Unified code validation**: Structural checks instead of brittle keyword matching
|
|
33
|
+
|
|
34
|
+
### Agentic AI Integration
|
|
35
|
+
Generated agents can use the LogosAI SDK's agentic modules when the query requires advanced capabilities:
|
|
36
|
+
- **AgenticCore**: Think-Plan-Act-Reflect reasoning cycle
|
|
37
|
+
- **AgenticTools**: Automatic tool registration from generated functions
|
|
38
|
+
- **AgenticMemory**: 5 memory types (short-term, long-term, episodic, semantic, procedural)
|
|
39
|
+
- **AgenticReasoning**: Chain-of-thought reasoning
|
|
40
|
+
|
|
41
|
+
### Workflow Orchestration
|
|
42
|
+
5 workflow patterns for multi-step agents:
|
|
43
|
+
|
|
44
|
+
| Pattern | Use Case |
|
|
45
|
+
|---------|----------|
|
|
46
|
+
| Pipeline | Each step feeds the next (ETL, data processing) |
|
|
47
|
+
| Parallel | Independent steps run concurrently via `asyncio.gather()` |
|
|
48
|
+
| Sequential | Ordered execution with data piping between dependent steps |
|
|
49
|
+
| Conditional | Branch execution based on runtime conditions |
|
|
50
|
+
| Loop | Iterative improvement with convergence detection |
|
|
51
|
+
|
|
52
|
+
### Self-Healing
|
|
53
|
+
3-stage automatic error correction:
|
|
54
|
+
1. **Rule-based** (<100ms): Fixes indentation, missing colons, unclosed brackets
|
|
55
|
+
2. **LLM-based** (<500ms): AI-powered fixes for complex errors
|
|
56
|
+
3. **Pattern-based**: Learns from previously successful fixes
|
|
57
|
+
|
|
58
|
+
### Self-Evolution (Optional)
|
|
59
|
+
Paper2-verified self-evolution system integrated into the generation pipeline:
|
|
60
|
+
- **Self-Growing**: Gap detection against a 169-slice code library
|
|
61
|
+
- **Self-Evaluation**: 5-dimensional quality scoring
|
|
62
|
+
- **Self-Healing**: 3-stage healing with library admission
|
|
63
|
+
|
|
64
|
+
### Web Interface
|
|
65
|
+
Full-featured IDE for agent development and management:
|
|
66
|
+
- **3-panel layout**: Agent sidebar + Monaco code editor + AI chat panel
|
|
67
|
+
- **AI Chat Assistant**: Conversational agent creation and code editing via Gemini LLM
|
|
68
|
+
- **Knowledge Graph**: D3.js force-directed visualization of agent generation ontology (embedded split view)
|
|
69
|
+
- **Per-hunk Diff Review**: Accept/Reject individual code changes with unified diff preview
|
|
70
|
+
- **Agent Metadata Editor**: Marketplace-ready metadata management (capabilities, tags, category, parameters)
|
|
71
|
+
- **Agent Templates**: Quick scaffolding with 3 built-in templates (Basic, API Integration, Data Analysis)
|
|
72
|
+
- **Interactive Testing Lab**: Sandboxed agent execution with real-time output
|
|
73
|
+
- **Performance Monitoring Dashboard**: D3.js metrics visualization
|
|
74
|
+
|
|
75
|
+
## Quick Start
|
|
76
|
+
|
|
77
|
+
### Prerequisites
|
|
78
|
+
- Python 3.11+
|
|
79
|
+
- Node.js 18+ (for web interface)
|
|
80
|
+
- Google API key (for Gemini LLM) or OpenAI API key
|
|
81
|
+
|
|
82
|
+
### Installation
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
# Clone and set up
|
|
86
|
+
git clone <repository-url>
|
|
87
|
+
cd forge
|
|
88
|
+
|
|
89
|
+
# Install Python dependencies
|
|
90
|
+
pip install -r requirements.txt
|
|
91
|
+
|
|
92
|
+
# Set API keys
|
|
93
|
+
export GOOGLE_API_KEY="your-google-api-key"
|
|
94
|
+
# or
|
|
95
|
+
export OPENAI_API_KEY="your-openai-api-key"
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Start the Server
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
# Backend (port 8030)
|
|
102
|
+
python server.py
|
|
103
|
+
|
|
104
|
+
# Frontend (port 3001, optional)
|
|
105
|
+
cd prototype/frontend
|
|
106
|
+
npm install && npm run dev
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Generate an Agent
|
|
110
|
+
|
|
111
|
+
**Via API:**
|
|
112
|
+
```bash
|
|
113
|
+
curl -X POST http://localhost:8030/api/agents/create-unified \
|
|
114
|
+
-H "Content-Type: application/json" \
|
|
115
|
+
-d '{"query": "Create a calculator agent that adds and multiplies numbers"}'
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
**Via Python:**
|
|
119
|
+
```python
|
|
120
|
+
import asyncio
|
|
121
|
+
from core.forge_v2_system import ForgeV2System, ForgeV2Request
|
|
122
|
+
|
|
123
|
+
async def main():
|
|
124
|
+
forge = ForgeV2System()
|
|
125
|
+
request = ForgeV2Request(
|
|
126
|
+
query="Create a data analysis agent that computes statistics",
|
|
127
|
+
user_email="user@example.com"
|
|
128
|
+
)
|
|
129
|
+
result = await forge.create_agent(request)
|
|
130
|
+
print(f"Agent: {result.metadata.get('agent_name')}")
|
|
131
|
+
print(f"Code: {len(result.agent_code)} characters")
|
|
132
|
+
|
|
133
|
+
asyncio.run(main())
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
**Via WebSocket (streaming):**
|
|
137
|
+
```javascript
|
|
138
|
+
const ws = new WebSocket('ws://localhost:8030/ws/client-123');
|
|
139
|
+
ws.send(JSON.stringify({
|
|
140
|
+
action: 'create_agent',
|
|
141
|
+
data: { query: 'Create a weather monitoring agent' }
|
|
142
|
+
}));
|
|
143
|
+
ws.onmessage = (event) => {
|
|
144
|
+
const msg = JSON.parse(event.data);
|
|
145
|
+
console.log(`[${msg.stage}] ${msg.message}`);
|
|
146
|
+
};
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
## Project Structure
|
|
150
|
+
|
|
151
|
+
```
|
|
152
|
+
forge/
|
|
153
|
+
├── core/
|
|
154
|
+
│ ├── business_logic_v2/ # Core generation pipeline
|
|
155
|
+
│ │ ├── query_analyzer.py # Intent extraction & requirement analysis
|
|
156
|
+
│ │ ├── function_generator.py # LLM-powered function code generation
|
|
157
|
+
│ │ ├── code_assembler.py # Final agent code assembly + agentic integration
|
|
158
|
+
│ │ ├── workflow_orchestrator.py # 5-pattern workflow generation
|
|
159
|
+
│ │ ├── self_healing.py # 3-stage error correction
|
|
160
|
+
│ │ ├── performance_monitor.py # Generation metrics tracking
|
|
161
|
+
│ │ └── slice_library/ # 169 reusable code slices
|
|
162
|
+
│ ├── self_evolution/ # Self-Growing + Self-Evaluation + Self-Healing
|
|
163
|
+
│ │ ├── orchestrator.py # Pre/post generation hooks
|
|
164
|
+
│ │ └── adapters/ # Paper2 system wrappers
|
|
165
|
+
│ └── forge_v2_system.py # Main pipeline orchestrator
|
|
166
|
+
│
|
|
167
|
+
├── prototype/
|
|
168
|
+
│ ├── backend/ # FastAPI server (30+ endpoints)
|
|
169
|
+
│ │ └── app/
|
|
170
|
+
│ │ ├── main.py # App entry + route registration
|
|
171
|
+
│ │ └── api/ # REST + WebSocket endpoints
|
|
172
|
+
│ │ ├── agents.py # Agent CRUD + metadata management
|
|
173
|
+
│ │ ├── websocket_interactive_agent.py # AI chat via Gemini
|
|
174
|
+
│ │ └── knowledge_graph.py # KG data API
|
|
175
|
+
│ └── frontend/ # Next.js 15 web interface
|
|
176
|
+
│ └── app/forge/
|
|
177
|
+
│ ├── components/
|
|
178
|
+
│ │ ├── workspace/ # Editor, TabBar, WelcomeScreen, KG view
|
|
179
|
+
│ │ ├── chat/ # AI chat panel, diff preview, messages
|
|
180
|
+
│ │ ├── sidebar/ # Agent tree, folder management
|
|
181
|
+
│ │ └── metadata/ # Agent metadata editor modal
|
|
182
|
+
│ ├── contexts/ # UI, Forge, Editor, Generation providers
|
|
183
|
+
│ └── lib/ # Agent templates
|
|
184
|
+
│
|
|
185
|
+
├── templates/ # Agent code templates
|
|
186
|
+
├── agents/generated/ # Output directory for generated agents
|
|
187
|
+
├── server.py # Main server entry point
|
|
188
|
+
└── config/ # LLM and system configuration
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## API Reference
|
|
192
|
+
|
|
193
|
+
### REST Endpoints
|
|
194
|
+
|
|
195
|
+
| Method | Endpoint | Description |
|
|
196
|
+
|--------|----------|-------------|
|
|
197
|
+
| `POST` | `/api/agents/create-unified` | Generate agent from query |
|
|
198
|
+
| `POST` | `/api/agents/create-draft` | Create blank draft agent |
|
|
199
|
+
| `GET` | `/api/agents/list` | List all generated agents |
|
|
200
|
+
| `GET` | `/api/agents/{id}/code` | Get agent source code |
|
|
201
|
+
| `PUT` | `/api/agents/{id}/metadata` | Update agent metadata for marketplace |
|
|
202
|
+
| `DELETE` | `/api/agent-code/delete/{id}` | Delete agent |
|
|
203
|
+
| `GET` | `/api/knowledge-graph/{id}` | Get agent knowledge graph data |
|
|
204
|
+
| `POST` | `/api/code/fix` | AI-powered code fixing |
|
|
205
|
+
| `POST` | `/api/execute-python-safe` | Sandboxed code execution |
|
|
206
|
+
| `GET` | `/api/monitoring/overview` | System metrics dashboard |
|
|
207
|
+
| `GET` | `/health` | Health check |
|
|
208
|
+
|
|
209
|
+
### WebSocket Endpoints
|
|
210
|
+
|
|
211
|
+
| Endpoint | Purpose |
|
|
212
|
+
|----------|---------|
|
|
213
|
+
| `/ws/{client_id}` | Streaming agent generation with progress events |
|
|
214
|
+
| `/ws/interactive/{client_id}` | AI chat assistant (conversational code creation/editing) |
|
|
215
|
+
|
|
216
|
+
### Progress Events (WebSocket)
|
|
217
|
+
|
|
218
|
+
```
|
|
219
|
+
initialization → analyzing → planning → generating → validating → complete
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
## Configuration
|
|
223
|
+
|
|
224
|
+
### Environment Variables
|
|
225
|
+
|
|
226
|
+
| Variable | Required | Description |
|
|
227
|
+
|----------|----------|-------------|
|
|
228
|
+
| `GOOGLE_API_KEY` | Yes* | Google Gemini API key |
|
|
229
|
+
| `OPENAI_API_KEY` | Yes* | OpenAI API key |
|
|
230
|
+
| `ANTHROPIC_API_KEY` | No | Anthropic Claude API key |
|
|
231
|
+
| `FORGE_ENABLE_SELF_EVOLUTION` | No | Enable self-evolution system (default: off) |
|
|
232
|
+
| `FORGE_EVOLUTION_TAU_MATCH` | No | Coverage matching threshold (default: 0.40) |
|
|
233
|
+
| `FORGE_EVOLUTION_TAU_QUALITY` | No | Quality admission threshold (default: 0.70) |
|
|
234
|
+
|
|
235
|
+
*At least one LLM API key is required.
|
|
236
|
+
|
|
237
|
+
### LLM Configuration
|
|
238
|
+
|
|
239
|
+
The system uses Gemini Flash Lite by default for fast generation. Configure in `config/llm_config.yaml`:
|
|
240
|
+
|
|
241
|
+
```yaml
|
|
242
|
+
models:
|
|
243
|
+
gemini_flash_lite:
|
|
244
|
+
provider: "gemini"
|
|
245
|
+
model_id: "gemini-2.5-flash-lite"
|
|
246
|
+
temperature: 0.3
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
## Architecture
|
|
250
|
+
|
|
251
|
+
### Generation Pipeline
|
|
252
|
+
|
|
253
|
+
```
|
|
254
|
+
ForgeV2System.create_agent(request)
|
|
255
|
+
│
|
|
256
|
+
├── 1. IntelligentAnalyzer
|
|
257
|
+
│ └── Query → intent, features, domain, complexity
|
|
258
|
+
│
|
|
259
|
+
├── 2. BusinessLogicGeneratorV2 (6 stages)
|
|
260
|
+
│ ├── Stage 1: Query Analysis → FunctionSpecs
|
|
261
|
+
│ ├── Stage 2: Template Search (169-slice library)
|
|
262
|
+
│ ├── Stage 3: Logic Synthesis (combine templates)
|
|
263
|
+
│ ├── Stage 4: LLM Generation (DOMAIN_HINTS-guided prompts)
|
|
264
|
+
│ ├── Stage 5: Workflow Orchestration (5 patterns)
|
|
265
|
+
│ └── Stage 6: Code Assembly (+ agentic integration)
|
|
266
|
+
│
|
|
267
|
+
├── 3. Self-Healing (if errors detected)
|
|
268
|
+
│ ├── Rule-based fixes → LLM fixes → Pattern fixes
|
|
269
|
+
│ └── Retry up to 3 times
|
|
270
|
+
│
|
|
271
|
+
├── 4. Self-Evolution (optional, if enabled)
|
|
272
|
+
│ ├── Pre-generation: gap detection
|
|
273
|
+
│ └── Post-generation: evaluation + healing + admission
|
|
274
|
+
│
|
|
275
|
+
└── 5. Result
|
|
276
|
+
├── agent_code: str (complete Python agent)
|
|
277
|
+
├── metadata: dict (agent name, analysis, metrics)
|
|
278
|
+
└── test_results: dict (validation outcomes)
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
### Generated Agent Structure
|
|
282
|
+
|
|
283
|
+
```python
|
|
284
|
+
import logging
|
|
285
|
+
from logosai import LogosAIAgent
|
|
286
|
+
from logosai.config import AgentConfig
|
|
287
|
+
|
|
288
|
+
class CalculatorAgent(LogosAIAgent):
|
|
289
|
+
def __init__(self):
|
|
290
|
+
config = AgentConfig(
|
|
291
|
+
name="Calculator Agent",
|
|
292
|
+
description="Adds and multiplies numbers",
|
|
293
|
+
version="1.0.0",
|
|
294
|
+
config={"agentic_config": {
|
|
295
|
+
"enable_agentic": True,
|
|
296
|
+
"tools_enabled": True,
|
|
297
|
+
"reasoning_type": "chain_of_thought",
|
|
298
|
+
"memory_capacity": 100,
|
|
299
|
+
}}
|
|
300
|
+
)
|
|
301
|
+
super().__init__(config)
|
|
302
|
+
# Auto-registered tools from generated functions
|
|
303
|
+
|
|
304
|
+
async def _calculate_sum(self, data):
|
|
305
|
+
a = data.get("a", 0)
|
|
306
|
+
b = data.get("b", 0)
|
|
307
|
+
return {"result": a + b}
|
|
308
|
+
|
|
309
|
+
async def process(self, input_data, options=None):
|
|
310
|
+
# Uses AgenticCore.execute_cycle() when available
|
|
311
|
+
# Falls back to direct function execution
|
|
312
|
+
...
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
## Testing
|
|
316
|
+
|
|
317
|
+
```bash
|
|
318
|
+
# Syntax check all core modules
|
|
319
|
+
python -c "import ast; ast.parse(open('core/business_logic_v2/function_generator.py').read()); print('OK')"
|
|
320
|
+
|
|
321
|
+
# Test full pipeline
|
|
322
|
+
python -c "
|
|
323
|
+
import asyncio
|
|
324
|
+
from core.forge_v2_system import ForgeV2System, ForgeV2Request
|
|
325
|
+
forge = ForgeV2System()
|
|
326
|
+
result = asyncio.run(forge.create_agent(
|
|
327
|
+
ForgeV2Request(query='Create a calculator', save_to_file=False, enable_testing=False)
|
|
328
|
+
))
|
|
329
|
+
print(f'Success: {result.success}, Lines: {len(result.agent_code.splitlines())}')
|
|
330
|
+
"
|
|
331
|
+
|
|
332
|
+
# Server health check
|
|
333
|
+
curl http://localhost:8030/health
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
## Security
|
|
337
|
+
|
|
338
|
+
- **Sandboxed execution**: Generated agents run in isolated environments
|
|
339
|
+
- **Code validation**: Multi-layer syntax and security checks
|
|
340
|
+
- **Resource limits**: Memory and execution time constraints
|
|
341
|
+
- **Input sanitization**: Protection against injection attacks
|
|
342
|
+
|
|
343
|
+
## Technology Stack
|
|
344
|
+
|
|
345
|
+
| Component | Technology |
|
|
346
|
+
|-----------|------------|
|
|
347
|
+
| Backend | Python 3.11+, FastAPI, aiohttp |
|
|
348
|
+
| Frontend | Next.js 15, React 19, TypeScript |
|
|
349
|
+
| Code Editor | Monaco Editor |
|
|
350
|
+
| LLM | Google Gemini, OpenAI GPT, Anthropic Claude |
|
|
351
|
+
| Database | SQLite (dev), PostgreSQL (prod) |
|
|
352
|
+
| UI | Tailwind CSS, Radix UI, D3.js |
|
|
353
|
+
| Agent Framework | LogosAI SDK |
|
|
354
|
+
|
|
355
|
+
## License
|
|
356
|
+
|
|
357
|
+
MIT License
|
|
358
|
+
|
|
359
|
+
## Acknowledgments
|
|
360
|
+
|
|
361
|
+
- Built on the [LogosAI](https://github.com/maior/logosai-framework) agent framework
|
|
362
|
+
- Powered by Google Gemini, OpenAI, and Anthropic LLMs
|
|
363
|
+
- Frontend components from [shadcn/ui](https://ui.shadcn.com)
|