Fix Stage 7 issues based on analysis
- Add currency field (AIT) to cross_chain_transfer, staking_validator_agent, cross_chain_market_maker - Add wallet_balance check at beginning of operations (before wallet/password operations) - Add agent_create operations before agent_coordination_leader_election (3 agents) - Add enterprise_create operation before enterprise_ai_agent - Update agent_to_agent_message to use agent_* patterns instead of hardcoded agent_1, agent_2
This commit is contained in:
@@ -21,6 +21,20 @@
|
||||
],
|
||||
"training_data": {
|
||||
"operations": [
|
||||
{
|
||||
"operation": "wallet_balance",
|
||||
"parameters": {
|
||||
"wallet": "training-wallet"
|
||||
},
|
||||
"expected_result": {
|
||||
"status": "success",
|
||||
"balance": ">0"
|
||||
},
|
||||
"success_criteria": {
|
||||
"status": "success",
|
||||
"response_fields": ["balance", "symbol"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "cross_chain_transfer",
|
||||
"parameters": {
|
||||
@@ -28,6 +42,7 @@
|
||||
"source_chain": "aitbc",
|
||||
"target_chain": "ethereum",
|
||||
"amount": "10",
|
||||
"currency": "AIT",
|
||||
"password": "training123"
|
||||
},
|
||||
"expected_result": {
|
||||
@@ -44,6 +59,7 @@
|
||||
"parameters": {
|
||||
"wallet": "training-wallet",
|
||||
"stake_amount": "1000",
|
||||
"currency": "AIT",
|
||||
"password": "training123"
|
||||
},
|
||||
"expected_result": {
|
||||
@@ -94,6 +110,7 @@
|
||||
"wallet": "training-wallet",
|
||||
"chains": ["aitbc", "ethereum"],
|
||||
"spread": "0.01",
|
||||
"currency": "AIT",
|
||||
"password": "training123"
|
||||
},
|
||||
"expected_result": {
|
||||
@@ -121,6 +138,21 @@
|
||||
"response_fields": ["coordinating", "fl_id"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "enterprise_create",
|
||||
"parameters": {
|
||||
"name": "test-enterprise",
|
||||
"description": "Test enterprise for training"
|
||||
},
|
||||
"expected_result": {
|
||||
"status": "success",
|
||||
"created": true
|
||||
},
|
||||
"success_criteria": {
|
||||
"status": "success",
|
||||
"response_fields": ["created", "enterprise_id"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "enterprise_ai_agent",
|
||||
"parameters": {
|
||||
@@ -159,10 +191,55 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "agent_create",
|
||||
"parameters": {
|
||||
"name": "agent_1",
|
||||
"description": "Agent 1 for leader election"
|
||||
},
|
||||
"expected_result": {
|
||||
"status": "success",
|
||||
"agent_id": "agent_*"
|
||||
},
|
||||
"success_criteria": {
|
||||
"status": "success",
|
||||
"response_fields": ["agent_id", "name"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "agent_create",
|
||||
"parameters": {
|
||||
"name": "agent_2",
|
||||
"description": "Agent 2 for leader election"
|
||||
},
|
||||
"expected_result": {
|
||||
"status": "success",
|
||||
"agent_id": "agent_*"
|
||||
},
|
||||
"success_criteria": {
|
||||
"status": "success",
|
||||
"response_fields": ["agent_id", "name"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "agent_create",
|
||||
"parameters": {
|
||||
"name": "agent_3",
|
||||
"description": "Agent 3 for leader election"
|
||||
},
|
||||
"expected_result": {
|
||||
"status": "success",
|
||||
"agent_id": "agent_*"
|
||||
},
|
||||
"success_criteria": {
|
||||
"status": "success",
|
||||
"response_fields": ["agent_id", "name"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "agent_coordination_leader_election",
|
||||
"parameters": {
|
||||
"agents": ["agent_1", "agent_2", "agent_3"]
|
||||
"agents": ["agent_*", "agent_*", "agent_*"]
|
||||
},
|
||||
"expected_result": {
|
||||
"status": "success",
|
||||
@@ -211,8 +288,8 @@
|
||||
{
|
||||
"operation": "agent_to_agent_message",
|
||||
"parameters": {
|
||||
"from_agent": "agent_1",
|
||||
"to_agent": "agent_2",
|
||||
"from_agent": "agent_*",
|
||||
"to_agent": "agent_*",
|
||||
"message": "test message"
|
||||
},
|
||||
"expected_result": {
|
||||
|
||||
Reference in New Issue
Block a user