(updates: SessionUpdateParams[])
| 296 | } |
| 297 | |
| 298 | function toolUpdates(updates: SessionUpdateParams[]) { |
| 299 | return updates.filter((item): item is ToolSessionUpdateParams => { |
| 300 | return item.update.sessionUpdate === "tool_call" || item.update.sessionUpdate === "tool_call_update" |
| 301 | }) |
| 302 | } |
| 303 | |
| 304 | async function createKnownSession( |
| 305 | session: ACPSession.Interface, |