Add missing stage scripts (0, 8, 9) for complete training
Created placeholder shell scripts for stages that only had JSON definitions: - stage0_environment_setup.sh - Environment setup and prerequisites - stage8_advanced_agent_specialization.sh - Bounty systems, portfolio management, knowledge graph marketing - stage9_multi_chain_architecture.sh - Cross-chain operations and multi-chain deployment These scripts use the Python-based training setup to execute JSON-defined operations, allowing the complete training program (stages 0-9) to run without errors.
This commit is contained in:
67
scripts/training/stage0_environment_setup.sh
Executable file
67
scripts/training/stage0_environment_setup.sh
Executable file
@@ -0,0 +1,67 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# hermes AITBC Training - Stage 0: Environment Setup
|
||||||
|
# System prerequisites and environment configuration
|
||||||
|
# Uses Python-based training setup to execute JSON-defined operations
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Source training library
|
||||||
|
source "$(dirname "$0")/training_lib.sh"
|
||||||
|
|
||||||
|
# Training configuration
|
||||||
|
TRAINING_STAGE="Stage 0: Environment Setup"
|
||||||
|
SCRIPT_NAME="stage0_environment_setup"
|
||||||
|
CURRENT_LOG=$(init_logging "$SCRIPT_NAME")
|
||||||
|
|
||||||
|
# Setup traps for cleanup
|
||||||
|
setup_traps
|
||||||
|
|
||||||
|
# Total steps for progress tracking
|
||||||
|
init_progress 1
|
||||||
|
|
||||||
|
# Stage information
|
||||||
|
print_header "$TRAINING_STAGE"
|
||||||
|
print_status "Environment setup and prerequisites check"
|
||||||
|
print_status "Skills: System configuration, CLI installation, blockchain setup"
|
||||||
|
echo
|
||||||
|
|
||||||
|
# Execute stage from JSON definition
|
||||||
|
execute_stage_from_json() {
|
||||||
|
local stage_num=0
|
||||||
|
local json_file="$SCRIPT_DIR/../docs/agent-training/stage${stage_num}_environment_setup.json"
|
||||||
|
|
||||||
|
print_status "Executing stage from JSON definition: $json_file"
|
||||||
|
|
||||||
|
if [ ! -f "$json_file" ]; then
|
||||||
|
print_error "Stage JSON file not found: $json_file"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Use Python training setup to execute stage
|
||||||
|
cd "$AITBC_DIR"
|
||||||
|
if python3 -m aitbc.training_setup.cli run-stage --json "$json_file" 2>&1 | tee -a "$CURRENT_LOG"; then
|
||||||
|
print_success "Stage $stage_num executed successfully"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
print_error "Stage $stage_num execution failed"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Main execution
|
||||||
|
main() {
|
||||||
|
print_status "Starting $TRAINING_STAGE"
|
||||||
|
echo
|
||||||
|
|
||||||
|
if execute_stage_from_json; then
|
||||||
|
print_success "$TRAINING_STAGE completed"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
print_error "$TRAINING_STAGE failed"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Run main function
|
||||||
|
main
|
||||||
67
scripts/training/stage8_advanced_agent_specialization.sh
Executable file
67
scripts/training/stage8_advanced_agent_specialization.sh
Executable file
@@ -0,0 +1,67 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# hermes AITBC Training - Stage 8: Advanced Agent Specialization
|
||||||
|
# Bounty Systems, Portfolio Management, Knowledge Graph Marketing
|
||||||
|
# Uses Python-based training setup to execute JSON-defined operations
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Source training library
|
||||||
|
source "$(dirname "$0")/training_lib.sh"
|
||||||
|
|
||||||
|
# Training configuration
|
||||||
|
TRAINING_STAGE="Stage 8: Advanced Agent Specialization"
|
||||||
|
SCRIPT_NAME="stage8_advanced_agent_specialization"
|
||||||
|
CURRENT_LOG=$(init_logging "$SCRIPT_NAME")
|
||||||
|
|
||||||
|
# Setup traps for cleanup
|
||||||
|
setup_traps
|
||||||
|
|
||||||
|
# Total steps for progress tracking
|
||||||
|
init_progress 1
|
||||||
|
|
||||||
|
# Stage information
|
||||||
|
print_header "$TRAINING_STAGE"
|
||||||
|
print_status "Advanced agent specialization training"
|
||||||
|
print_status "Skills: Bounty systems, portfolio management, knowledge graph marketing"
|
||||||
|
echo
|
||||||
|
|
||||||
|
# Execute stage from JSON definition
|
||||||
|
execute_stage_from_json() {
|
||||||
|
local stage_num=8
|
||||||
|
local json_file="$SCRIPT_DIR/../docs/agent-training/stage${stage_num}_advanced_agent_specialization.json"
|
||||||
|
|
||||||
|
print_status "Executing stage from JSON definition: $json_file"
|
||||||
|
|
||||||
|
if [ ! -f "$json_file" ]; then
|
||||||
|
print_error "Stage JSON file not found: $json_file"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Use Python training setup to execute stage
|
||||||
|
cd "$AITBC_DIR"
|
||||||
|
if python3 -m aitbc.training_setup.cli run-stage --json "$json_file" 2>&1 | tee -a "$CURRENT_LOG"; then
|
||||||
|
print_success "Stage $stage_num executed successfully"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
print_error "Stage $stage_num execution failed"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Main execution
|
||||||
|
main() {
|
||||||
|
print_status "Starting $TRAINING_STAGE"
|
||||||
|
echo
|
||||||
|
|
||||||
|
if execute_stage_from_json; then
|
||||||
|
print_success "$TRAINING_STAGE completed"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
print_error "$TRAINING_STAGE failed"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Run main function
|
||||||
|
main
|
||||||
67
scripts/training/stage9_multi_chain_architecture.sh
Executable file
67
scripts/training/stage9_multi_chain_architecture.sh
Executable file
@@ -0,0 +1,67 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# hermes AITBC Training - Stage 9: Multi-Chain Architecture
|
||||||
|
# Cross-chain operations, multi-chain deployment, and interoperability
|
||||||
|
# Uses Python-based training setup to execute JSON-defined operations
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Source training library
|
||||||
|
source "$(dirname "$0")/training_lib.sh"
|
||||||
|
|
||||||
|
# Training configuration
|
||||||
|
TRAINING_STAGE="Stage 9: Multi-Chain Architecture"
|
||||||
|
SCRIPT_NAME="stage9_multi_chain_architecture"
|
||||||
|
CURRENT_LOG=$(init_logging "$SCRIPT_NAME")
|
||||||
|
|
||||||
|
# Setup traps for cleanup
|
||||||
|
setup_traps
|
||||||
|
|
||||||
|
# Total steps for progress tracking
|
||||||
|
init_progress 1
|
||||||
|
|
||||||
|
# Stage information
|
||||||
|
print_header "$TRAINING_STAGE"
|
||||||
|
print_status "Multi-chain architecture and cross-chain operations"
|
||||||
|
print_status "Skills: Cross-chain transactions, multi-chain deployment, interoperability"
|
||||||
|
echo
|
||||||
|
|
||||||
|
# Execute stage from JSON definition
|
||||||
|
execute_stage_from_json() {
|
||||||
|
local stage_num=9
|
||||||
|
local json_file="$SCRIPT_DIR/../docs/agent-training/stage${stage_num}_multi_chain_architecture.json"
|
||||||
|
|
||||||
|
print_status "Executing stage from JSON definition: $json_file"
|
||||||
|
|
||||||
|
if [ ! -f "$json_file" ]; then
|
||||||
|
print_error "Stage JSON file not found: $json_file"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Use Python training setup to execute stage
|
||||||
|
cd "$AITBC_DIR"
|
||||||
|
if python3 -m aitbc.training_setup.cli run-stage --json "$json_file" 2>&1 | tee -a "$CURRENT_LOG"; then
|
||||||
|
print_success "Stage $stage_num executed successfully"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
print_error "Stage $stage_num execution failed"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Main execution
|
||||||
|
main() {
|
||||||
|
print_status "Starting $TRAINING_STAGE"
|
||||||
|
echo
|
||||||
|
|
||||||
|
if execute_stage_from_json; then
|
||||||
|
print_success "$TRAINING_STAGE completed"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
print_error "$TRAINING_STAGE failed"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Run main function
|
||||||
|
main
|
||||||
Reference in New Issue
Block a user