block
Decision grader
Pick an action at a table snapshot and get it graded by the Poker Study AI agent: grade, EV lost, and what the agent would do. Needs your API key.
Pick an action at a table snapshot. The agent plays the hand out and grades it: the grade, the big blinds given up, and what it would have done. Calls /api/play/evaluate. Shown with a captured result for folding aces; click another action to grade it live.
- You
- fold · +0.00bb
- Agent
- raise 50 · +13.8bb
- Equity
- 57%
Installation
$ npx shadcn@latest add https://www.pokerstudy.ai/r/decision-grader.jsonGenerative UI
A model can draw this with json-render. Install generative UI and spread its definitions into your catalog. The model reads the description and the schema below, and answers with a spec like the example.
DecisionGrader
Lets the player pick an action at a table snapshot; the agent grades it and says what it would do. Needs the API key.
Props
Generated from the component source with react-docgen-typescript.
DecisionGrader
| Prop | Type | Default | Description |
|---|---|---|---|
| endpoint | string | /api/pokerstudy/evaluate | – |
| initialResult | { selected: Selected; result: EvaluateResponse; } | – | Render a result without calling the API, e.g. for a static preview. |
| onResult | ((result: EvaluateResponse, selected: Selected) => void) | – | – |
| raiseTo | number[] | – | Raise-to amounts to offer, in chips. Defaults to the minimum raise. |
| snapshot * | TableSnapshot | – | – |