()
| 461 | * Integrates with search state to synchronize ?ask= parameter. |
| 462 | */ |
| 463 | export function useAIChatController(): AIChatController { |
| 464 | const controller = React.useContext(AIChatControllerContext); |
| 465 | if (!controller) { |
| 466 | throw new Error('useAIChatController must be used within an AIChatProvider'); |
| 467 | } |
| 468 | return controller; |
| 469 | } |
no outgoing calls
no test coverage detected