ErrorWithCodeForSession creates an error event with a code and session ID. See ErrorForSession for the session-tagging rationale.
(sessionID, code, msg string)
| 286 | // ErrorWithCodeForSession creates an error event with a code and session ID. |
| 287 | // See ErrorForSession for the session-tagging rationale. |
| 288 | func ErrorWithCodeForSession(sessionID, code, msg string) Event { |
| 289 | return &ErrorEvent{ |
| 290 | Type: "error", |
| 291 | SessionID: sessionID, |
| 292 | Error: msg, |
| 293 | Code: code, |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | type ShellOutputEvent struct { |
| 298 | AgentContext |
no outgoing calls