(channelId: string)
| 943 | toolCallId: event.toolCallId ?? "", |
| 944 | toolName: event.toolName, |
| 945 | isError: event.isError, |
| 946 | result: event.result, |
| 947 | }); |
| 948 | break; |
| 949 | |
| 950 | case "agent_end": |
| 951 | log("\n=== [AGENT SESSION END] ===\n"); |
| 952 | forwardAgentEvent({ type: "agent_end" }); |
| 953 | break; |
| 954 | } |
| 955 | }); |
| 956 | |
| 957 | // Build prompt with attachments |
| 958 | let promptText = text; |