You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: detect empty-turn 200 responses as degraded, trigger fallback
Models like gemini-3.1-flash-lite under eco tier return HTTP 200 with
no content and no tool_calls (finish_reason: stop) when given complex
agentic requests (e.g. Roo Code tool schemas). This EMPTY_STREAM_ROLE_ONLY_STOP
pattern was not caught by detectDegradedSuccessResponse, so ClawRouter
treated it as success and sent the empty turn to the client.
Now detects: choices[0].message with empty content + no tool_calls +
finish_reason=stop → 'degraded response: empty turn' → triggers
fallback to next model in chain.
description: "Get live Polymarket prediction market events with current odds, volume, and liquidity. Call this for ANY request about prediction markets, Polymarket markets, current odds, what people are betting on, or market sentiment. Do NOT use browser or web scraping \u2014 this returns structured real-time data directly. Returns: event title, YES/NO prices (implied probability), volume, liquidity, end date.",
54498
+
proxyPath: "/pm/polymarket/events",
54499
+
method: "GET",
54500
+
params: [
54501
+
{
54502
+
name: "limit",
54503
+
type: "number",
54504
+
description: "Number of events to return (default: 20, max: 100)",
54505
+
required: false
54506
+
},
54507
+
{
54508
+
name: "tag",
54509
+
type: "string",
54510
+
description: "Filter by category: crypto, politics, sports, science, economics, etc.",
description: "Get the Polymarket leaderboard of top traders ranked by profit. Call this for ANY request about top Polymarket traders, whale wallets, best performers, richest traders, or who is making the most money on Polymarket. Do NOT use browser or web scraping \u2014 this returns structured data directly. Returns: wallet address/username, total profit, total volume, win rate.",
54525
+
proxyPath: "/pm/polymarket/leaderboard",
54526
+
method: "GET",
54527
+
params: [
54528
+
{
54529
+
name: "limit",
54530
+
type: "number",
54531
+
description: "Number of wallets to return (default: 20, max: 100)",
description: "Get top 20 Polymarket whale wallets by profit"
54539
+
}
54540
+
},
54541
+
{
54542
+
id: "predexon_markets",
54543
+
name: "Polymarket Markets Search",
54544
+
partner: "Predexon",
54545
+
description: "Search and filter Polymarket markets. Use this to find a market by keyword and get its conditionId for follow-up calls (smart money, top holders, etc.). Returns: question, conditionId, YES/NO prices, volume.",
54546
+
proxyPath: "/pm/polymarket/markets",
54547
+
method: "GET",
54548
+
params: [
54549
+
{
54550
+
name: "search",
54551
+
type: "string",
54552
+
description: "Keyword to search for (e.g. 'bitcoin', 'election', 'fed rate')",
54553
+
required: false
54554
+
},
54555
+
{
54556
+
name: "limit",
54557
+
type: "number",
54558
+
description: "Number of markets to return (default: 20)",
description: "Search for Bitcoin-related prediction markets"
54566
+
}
54567
+
},
54568
+
{
54569
+
id: "predexon_smart_money",
54570
+
name: "Polymarket Smart Money",
54571
+
partner: "Predexon",
54572
+
description: "See how high-performing wallets are positioned on a specific Polymarket market. Use this after finding a market's conditionId via predexon_markets or predexon_events. Returns: wallet addresses, their YES/NO positions, size, P&L, win rate.",
description: "See smart money positioning on a specific market"
54593
+
}
54594
+
},
54595
+
{
54596
+
id: "predexon_smart_activity",
54597
+
name: "Polymarket Smart Activity",
54598
+
partner: "Predexon",
54599
+
description: "Discover which Polymarket markets high-performing wallets are currently active in. Use this to find where smart money is flowing right now. Returns: market titles, smart money volume, number of smart wallets active.",
description: "Find markets where smart money is most active"
54614
+
}
54615
+
},
54616
+
{
54617
+
id: "predexon_wallet",
54618
+
name: "Polymarket Wallet Profile",
54619
+
partner: "Predexon",
54620
+
description: "Get a complete profile for a Polymarket wallet address: profit, volume, win rate, markets traded, open positions. Use this when the user asks to analyze or look up a specific wallet address.",
description: "Get complete profile for a Polymarket wallet"
54635
+
}
54636
+
},
54637
+
{
54638
+
id: "predexon_wallet_pnl",
54639
+
name: "Polymarket Wallet P&L",
54640
+
partner: "Predexon",
54641
+
description: "Get P&L history and realized profit/loss time series for a Polymarket wallet. Use this when the user wants to see how a wallet has performed over time.",
description: "Get P&L history for a Polymarket wallet"
54656
+
}
54657
+
},
54658
+
{
54659
+
id: "predexon_matching_markets",
54660
+
name: "Cross-Market Matching (Polymarket vs Kalshi)",
54661
+
partner: "Predexon",
54662
+
description: "Find equivalent markets across Polymarket and Kalshi to compare odds and spot arbitrage. Use this when the user wants to compare prediction market prices across platforms.",
54663
+
proxyPath: "/pm/matching-markets",
54664
+
method: "GET",
54665
+
params: [
54666
+
{
54667
+
name: "limit",
54668
+
type: "number",
54669
+
description: "Number of matched pairs to return (default: 20)",
0 commit comments