MCPcopy Index your code
hub / github.com/TanStack/ai / addToolApprovalResponse

Function addToolApprovalResponse

packages/ai-angular/src/inject-chat.ts:228–233  ·  view source on GitHub ↗
(response: {
    id: string
    approved: boolean
  })

Source from the content-addressed store, hash-verified

226 await client.addToolResult(result)
227 }
228 const addToolApprovalResponse = async (response: {
229 id: string
230 approved: boolean
231 }) => {
232 await client.addToolApprovalResponse(response)
233 }
234
235 // eslint-disable-next-line no-restricted-syntax -- return shape diverges from conditional InjectChatResult<TTools, TSchema>; TS can't structurally narrow the TSchema-gated partial/final signals
236 return {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected