Files
base44__skills/evals/fixtures/create-support-agent/eval.json
Gal Elmalah 638d8dd94f update evals
2026-02-08 13:25:01 +02:00

67 lines
2.3 KiB
JSON

{
"$schema": "../../eval.schema.json",
"name": "create-support-agent",
"description": "Test creating an AI agent configuration with entity access",
"prompt": "Create a support agent called 'support_agent' that helps users with their orders. The agent should have read access to Order and Customer entities. Give it clear instructions to always look up order details when users ask about their orders.",
"expectedSkills": ["base44-cli"],
"checks": [
{
"type": "file-exists",
"description": "Agent config file created",
"filePath": "base44/agents/support_agent.jsonc"
},
{
"type": "valid-json",
"description": "Agent config is valid JSON",
"filePath": "base44/agents/support_agent.jsonc"
},
{
"type": "file-content",
"description": "Has correct agent name",
"filePath": "base44/agents/support_agent.jsonc",
"pattern": "\"name\"\\s*:\\s*\"support_agent\""
},
{
"type": "file-content",
"description": "Has tool_configs with entity access",
"filePath": "base44/agents/support_agent.jsonc",
"pattern": "\"tool_configs\"\\s*:\\s*\\["
},
{
"type": "file-content",
"description": "Has Order entity access",
"filePath": "base44/agents/support_agent.jsonc",
"pattern": "\"entity_name\"\\s*:\\s*\"Order\""
},
{
"type": "file-content",
"description": "Has instructions field",
"filePath": "base44/agents/support_agent.jsonc",
"pattern": "\"instructions\"\\s*:"
},
{
"type": "contains",
"description": "Mentions agents push command",
"value": "agents push"
},
{
"type": "agent-config",
"description": "Agent config validates against Base44 agent schema",
"filePath": "base44/agents/support_agent.jsonc",
"target": "file"
},
{
"type": "file-content",
"description": "Has Customer entity access (both Order AND Customer required)",
"filePath": "base44/agents/support_agent.jsonc",
"pattern": "\"entity_name\"\\s*:\\s*\"Customer\""
},
{
"type": "file-content",
"description": "allowed_operations is an array with 'read'",
"filePath": "base44/agents/support_agent.jsonc",
"pattern": "\"allowed_operations\"\\s*:\\s*\\[[^\\]]*\"read\""
}
]
}