(op: string, payload: Record<string, any>)
| 200 | } |
| 201 | |
| 202 | async function brokerOnlyRequest(op: string, payload: Record<string, any>): Promise<any> { |
| 203 | if (USE_AGENT_BACKEND) { |
| 204 | throw new Error("Tab claims are not supported with agent-browser backend"); |
| 205 | } |
| 206 | return await brokerRequest(op, payload); |
| 207 | } |
| 208 | |
| 209 | function toolResultText(data: any, fallback: string): string { |
| 210 | if (typeof data?.content === "string") return data.content; |
no test coverage detected