( agent: AbstractAgent, toolCallId: string, content: string, )
| 151 | } |
| 152 | |
| 153 | export function pushToolResult( |
| 154 | agent: AbstractAgent, |
| 155 | toolCallId: string, |
| 156 | content: string, |
| 157 | ): void { |
| 158 | const toolMessage: Message = { |
| 159 | id: `${toolCallId}-result`, |
| 160 | role: "tool", |
| 161 | toolCallId, |
| 162 | content, |
| 163 | }; |
| 164 | agent.addMessage(toolMessage); |
| 165 | } |
no test coverage detected
searching dependent graphs…