Fix Stage 4 issues based on Hermes feedback

- Add currency field (AIT) to all pricing parameters (market_gpu_register, market_bid, market_sell)
- Fix market_bid to reference gpu_id instead of listing_id (GPU-specific)
- Fix market_buy to reference gpu_id instead of listing_id for consistency
- Add market_my-listings operation to check seller's own listings
- Add economics_model operation for price prediction (model_type, features)
- Add wallet_balance check at beginning of marketplace operations
This commit is contained in:
aitbc
2026-05-07 11:15:34 +02:00
parent d5a479ed12
commit 0e8d274ed6

View File

@@ -29,12 +29,27 @@
],
"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": "market_gpu_register",
"parameters": {
"wallet": "training-wallet",
"gpu_model": "RTX4090",
"price": "0.5",
"currency": "AIT",
"password": "training123"
},
"expected_result": {
@@ -62,8 +77,9 @@
"operation": "market_bid",
"parameters": {
"wallet": "training-wallet",
"listing_id": "listing_*",
"gpu_id": "gpu_*",
"bid_price": "0.6",
"currency": "AIT",
"password": "training123"
},
"expected_result": {
@@ -91,7 +107,7 @@
"operation": "market_buy",
"parameters": {
"wallet": "training-wallet",
"listing_id": "listing_*",
"gpu_id": "gpu_*",
"password": "training123"
},
"expected_result": {
@@ -110,6 +126,7 @@
"resource": "compute",
"quantity": 1,
"price": "0.1",
"currency": "AIT",
"password": "training123"
},
"expected_result": {
@@ -121,6 +138,20 @@
"response_fields": ["listing", "listing_id"]
}
},
{
"operation": "market_my-listings",
"parameters": {
"wallet": "training-wallet"
},
"expected_result": {
"status": "success",
"listings": "[]"
},
"success_criteria": {
"status": "success",
"response_fields": ["listings"]
}
},
{
"operation": "market_orders",
"parameters": {
@@ -146,6 +177,21 @@
"status": "success",
"response_fields": ["distribution", "metrics"]
}
},
{
"operation": "economics_model",
"parameters": {
"model_type": "linear",
"features": ["price", "demand", "supply"]
},
"expected_result": {
"status": "success",
"prediction": "generated"
},
"success_criteria": {
"status": "success",
"response_fields": ["prediction", "model_id"]
}
}
]
},