(error: { message: string })
| 282 | }) |
| 283 | |
| 284 | async function onError(error: { message: string }) { |
| 285 | if (handleEvent) { |
| 286 | await handleEvent({ type: 'error', message: error.message }) |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | // The agent runtime mutates sessionState.mainAgentState as it progresses, |
| 291 | // replacing messageHistory with a new array once it adds the user prompt. |
no outgoing calls
no test coverage detected