From 2ae025be5dd86b3aa1d3e0c8ca766182f17700e1 Mon Sep 17 00:00:00 2001 From: hermes Date: Sun, 18 Oct 2026 11:48:00 +0000 Subject: [PATCH] test(agents): broker, bandar and foreign flow cases Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01V3syn2fN2LNo5pvTSqc6eh --- tests/agents/cases.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tests/agents/cases.json b/tests/agents/cases.json index c31184b..55df201 100644 --- a/tests/agents/cases.json +++ b/tests/agents/cases.json @@ -62,5 +62,35 @@ "prompt": "Search the KSEI ownership database for investors named Salim.", "expect_tools": [{"name": "search_investors", "args": {"query": "Salim"}}], "expect_text": [] + }, + { + "id": "broker", + "prompt": "Which brokers bought and sold the most BBCA on 2026-10-16?", + "expect_tools": [{"name": "get_broker_summary", "args": {"symbol": "BBCA", "date": "2026-10-16"}}], + "expect_text": ["\\bMG\\b"], + "live": { + "prompt": "Which brokers bought and sold the most BBCA in the latest session?", + "expect_tools": [{"name": "get_broker_summary", "args": {"symbol": "BBCA"}}] + } + }, + { + "id": "bandar", + "prompt": "Were the big brokers (bandar) accumulating or distributing BBCA on 2026-10-16?", + "expect_tools": [{"name": "analyze_bandar", "args": {"symbols": ["BBCA"], "date": "2026-10-16"}}], + "expect_text": ["(?i)distribut"], + "live": { + "prompt": "Are the big brokers (bandar) accumulating or distributing BBCA lately?", + "expect_tools": [{"name": "analyze_bandar", "args": {"symbols": ["BBCA"]}}] + } + }, + { + "id": "flow", + "prompt": "What was the net foreign flow in BBCA from 2026-10-12 to 2026-10-16?", + "expect_tools": [{"name": "get_foreign_flow", "args": {"symbol": "BBCA", "from": "2026-10-12", "to": "2026-10-16"}}], + "expect_text": ["(?i)foreign"], + "live": { + "prompt": "What has the net foreign flow in BBCA been over the last 10 sessions?", + "expect_tools": [{"name": "get_foreign_flow", "args": {"symbol": "BBCA"}}] + } } ]