@inkeep/cxkit-types 0.5.42 → 0.5.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +6 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { ChatCompletionMessageToolCall } from 'openai/resources/chat/completions';
2
2
  import { ComponentType } from 'react';
3
+ import { FunctionToolCallArgumentsDoneEvent } from 'openai/lib/ChatCompletionStream.mjs';
3
4
  import { HTMLProps } from 'react';
4
5
  import { ReactNode } from 'react';
5
6
  import { RunnableToolFunction } from 'openai/lib/RunnableFunction';
@@ -585,6 +586,11 @@ export declare interface InkeepAIChatSettings extends ToolConfig {
585
586
  * Filters to apply to the chat results.
586
587
  */
587
588
  filters?: SearchAndChatFilters;
589
+ /**
590
+ * Callback function triggered whenever the AI uses a tool.
591
+ * @param toolCall The tool call that was used
592
+ */
593
+ onToolCall?: (toolCall: FunctionToolCallArgumentsDoneEvent) => void | unknown | Promise<unknown>;
588
594
  }
589
595
 
590
596
  export declare interface InkeepBaseSettings {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/cxkit-types",
3
- "version": "0.5.42",
3
+ "version": "0.5.43",
4
4
  "description": "",
5
5
  "license": "Inkeep, Inc. Customer License (IICL) v1.1",
6
6
  "homepage": "",