@waniwani/sdk 0.4.9-beta.5 → 0.4.9-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -141,10 +141,19 @@ type ChatWidgetProps = ChatBarProps;
141
141
 
142
142
  declare const ChatBar: react.ForwardRefExoticComponent<ChatBarProps & react.RefAttributes<ChatHandle>>;
143
143
 
144
- declare function EvalPanel({ api, hidden }: {
145
- api: string;
146
- hidden?: boolean;
147
- }): react_jsx_runtime.JSX.Element;
144
+ type EvalPanelProps = {
145
+ api?: string;
146
+ };
147
+ /**
148
+ * Dev-only evaluation panel for replaying recorded sessions and asserting tool usage.
149
+ *
150
+ * This component is automatically tree-shaken from production builds —
151
+ * it returns `null` when `process.env.NODE_ENV === "production"`.
152
+ *
153
+ * To populate sessions, set `WANIWANI_EVAL=1` in your `.env` and add
154
+ * session files to `evals/sessions/`.
155
+ */
156
+ declare function EvalPanel(props: EvalPanelProps): react_jsx_runtime.JSX.Element | null;
148
157
 
149
158
  type ModelContextContentBlock = ContentBlock;
150
159
  type ModelContextUpdate = {