(
clientToolWithInjector: FrontendToolConfig & {
injector: Injector;
},
)
| 275 | } |
| 276 | |
| 277 | addFrontendTool( |
| 278 | clientToolWithInjector: FrontendToolConfig & { |
| 279 | injector: Injector; |
| 280 | }, |
| 281 | ): void { |
| 282 | const tool = this.#bindClientTool(clientToolWithInjector); |
| 283 | |
| 284 | this.core.addTool(tool); |
| 285 | |
| 286 | this.#clientToolCallRenderConfigs.update((current) => [ |
| 287 | ...current, |
| 288 | clientToolWithInjector, |
| 289 | ]); |
| 290 | } |
| 291 | |
| 292 | addRenderToolCall(renderConfig: RenderToolCallConfig): void { |
| 293 | this.#toolCallRenderConfigs.update((current) => [...current, renderConfig]); |
no test coverage detected