idx-cli/tests/agents/cases.json
hermes 7ebf63ed42 test(agents): a live variant of the ownership-changes case
The `changes` case names the fixture releases (2026-01-30, 2026-02-27),
which the live snapshot does not have, so under --live/--npx it failed
agents that correctly declined to answer about missing releases and
passed ones that called the tool anyway. A case's `live` fields now
replace the mock ones; this one asks about the two most recent releases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V3syn2fN2LNo5pvTSqc6eh
2026-10-16 06:09:00 +00:00

42 lines
1.4 KiB
JSON

[
{
"id": "shareholders",
"prompt": "Who are the shareholders above 5% of BBCA?",
"expect_tools": [{"name": "get_shareholders", "args": {"ticker": "BBCA"}}],
"expect_text": ["(?i)dwimuria", "54[.,]9"]
},
{
"id": "quote",
"prompt": "What is the latest BBCA share price?",
"expect_tools": [{"name": "get_quotes", "args": {"symbols": ["BBCA"]}}],
"expect_text": ["(?i)bbca"]
},
{
"id": "compare",
"prompt": "Compare the fundamentals of BBCA and BBRI.",
"expect_tools": [{"name": "compare_stocks", "args": {"symbols": ["BBCA", "BBRI"]}}],
"expect_text": ["(?i)bbri"]
},
{
"id": "technical",
"prompt": "Give me a technical analysis of BBCA: trend, RSI, and MACD.",
"expect_tools": [{"name": "analyze_stock", "args": {"symbol": "BBCA"}}],
"expect_text": ["(?i)rsi"]
},
{
"id": "investor",
"prompt": "Which IDX stocks does Anthoni Salim hold above 1%?",
"expect_tools": [{"any": ["get_investor_holdings", "search_investors"]}],
"expect_text": ["(?i)bbca"]
},
{
"id": "changes",
"prompt": "Which shareholders changed between the 2026-01-30 and 2026-02-27 KSEI releases?",
"expect_tools": [{"name": "get_ownership_changes", "args": {"from": "2026-01-30", "to": "2026-02-27"}}],
"expect_text": [],
"live": {
"prompt": "Which shareholders changed between the two most recent KSEI releases?",
"expect_tools": [{"name": "get_ownership_changes"}]
}
}
]