function n(r){const o=r;if(o?.isError)throw new Error(o.content?.[0]?.text??"Tool call failed");const t=o?.structuredContent??r,e=t;if(e?.isError)throw new Error(e.content?.[0]?.text??"Tool call failed");return t}export{n as u};
