@inkeep/cxkit-types 0.5.42 → 0.5.44
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.
- package/dist/index.d.ts +6 -0
- 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';
|
|
@@ -1508,6 +1509,11 @@ export declare interface ToolConfig {
|
|
|
1508
1509
|
* @returns An array of Tool objects that will be available to the AI assistant
|
|
1509
1510
|
*/
|
|
1510
1511
|
getTools?: (ctx: ToolContext) => ToolFunction<any>[];
|
|
1512
|
+
/**
|
|
1513
|
+
* Callback function triggered whenever the AI uses a tool.
|
|
1514
|
+
* @param toolCall The tool call that was used
|
|
1515
|
+
*/
|
|
1516
|
+
onToolCall?: (toolCall: FunctionToolCallArgumentsDoneEvent, ctx: ToolContext) => void | unknown | Promise<unknown>;
|
|
1511
1517
|
}
|
|
1512
1518
|
|
|
1513
1519
|
export declare interface ToolContext {
|