deepseek-toolkit 0.1.5 → 0.1.6

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.
@@ -49,7 +49,20 @@ interface ResolvedConfig {
49
49
  maxToolLoopIterations: number;
50
50
  }
51
51
 
52
- type ToolDefinition = OpenAI.Chat.Completions.ChatCompletionFunctionTool;
52
+ interface ToolDefinition {
53
+ type: "function";
54
+ function: {
55
+ name: string;
56
+ description: string;
57
+ parameters: {
58
+ type: "object";
59
+ properties: Record<string, unknown>;
60
+ required?: string[];
61
+ additionalProperties?: boolean;
62
+ };
63
+ strict?: boolean;
64
+ };
65
+ }
53
66
  type ToolCall = OpenAI.Chat.Completions.ChatCompletionMessageFunctionToolCall;
54
67
  type ToolResult = OpenAI.Chat.Completions.ChatCompletionToolMessageParam;
55
68
  type ToolChoice = OpenAI.Chat.Completions.ChatCompletionToolChoiceOption;
@@ -49,7 +49,20 @@ interface ResolvedConfig {
49
49
  maxToolLoopIterations: number;
50
50
  }
51
51
 
52
- type ToolDefinition = OpenAI.Chat.Completions.ChatCompletionFunctionTool;
52
+ interface ToolDefinition {
53
+ type: "function";
54
+ function: {
55
+ name: string;
56
+ description: string;
57
+ parameters: {
58
+ type: "object";
59
+ properties: Record<string, unknown>;
60
+ required?: string[];
61
+ additionalProperties?: boolean;
62
+ };
63
+ strict?: boolean;
64
+ };
65
+ }
53
66
  type ToolCall = OpenAI.Chat.Completions.ChatCompletionMessageFunctionToolCall;
54
67
  type ToolResult = OpenAI.Chat.Completions.ChatCompletionToolMessageParam;
55
68
  type ToolChoice = OpenAI.Chat.Completions.ChatCompletionToolChoiceOption;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepseek-toolkit",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "DeepSeek API toolkit with built-in Brave Search — batteries-included wrapper for chat, tools, and web search",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",