deepseek-toolkit 0.1.5 → 0.1.7
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.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/types/index.d.cts +27 -2
- package/dist/types/index.d.ts +27 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import OpenAI from 'openai';
|
|
2
2
|
import { ToolDefinition, ToolHandler, RegisteredTool, ToolResult, ChatMessage, ResolvedConfig, ToolChoice, ChatResponse, StreamChunk, DeepSeekConfig, ModelName, ThinkingConfig, ReasoningEffort, BraveWebSearchOptions, BraveWebSearchResponse, BraveLLMContextOptions, BraveLLMContextResponse, BraveSearchDefaults } from './types/index.cjs';
|
|
3
|
-
export { BRAVE_LLM_CONTEXT_URL, BRAVE_WEB_SEARCH_URL, BraveLLMContextSnippet, BraveWebResult, DEEPSEEK_BASE_URL, DEEPSEEK_BETA_BASE_URL, DEEPSEEK_MODELS, DEFAULT_MAX_TOOL_LOOP_ITERATIONS, Freshness, SafeSearch, ToolCall } from './types/index.cjs';
|
|
3
|
+
export { BRAVE_LLM_CONTEXT_URL, BRAVE_WEB_SEARCH_URL, BraveLLMContextSnippet, BraveWebResult, DEEPSEEK_BASE_URL, DEEPSEEK_BETA_BASE_URL, DEEPSEEK_MODELS, DEFAULT_MAX_TOOL_LOOP_ITERATIONS, Freshness, JsonProperty, JsonSchemaObject, SafeSearch, ToolCall } from './types/index.cjs';
|
|
4
4
|
|
|
5
5
|
declare class ToolManager {
|
|
6
6
|
private tools;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import OpenAI from 'openai';
|
|
2
2
|
import { ToolDefinition, ToolHandler, RegisteredTool, ToolResult, ChatMessage, ResolvedConfig, ToolChoice, ChatResponse, StreamChunk, DeepSeekConfig, ModelName, ThinkingConfig, ReasoningEffort, BraveWebSearchOptions, BraveWebSearchResponse, BraveLLMContextOptions, BraveLLMContextResponse, BraveSearchDefaults } from './types/index.js';
|
|
3
|
-
export { BRAVE_LLM_CONTEXT_URL, BRAVE_WEB_SEARCH_URL, BraveLLMContextSnippet, BraveWebResult, DEEPSEEK_BASE_URL, DEEPSEEK_BETA_BASE_URL, DEEPSEEK_MODELS, DEFAULT_MAX_TOOL_LOOP_ITERATIONS, Freshness, SafeSearch, ToolCall } from './types/index.js';
|
|
3
|
+
export { BRAVE_LLM_CONTEXT_URL, BRAVE_WEB_SEARCH_URL, BraveLLMContextSnippet, BraveWebResult, DEEPSEEK_BASE_URL, DEEPSEEK_BETA_BASE_URL, DEEPSEEK_MODELS, DEFAULT_MAX_TOOL_LOOP_ITERATIONS, Freshness, JsonProperty, JsonSchemaObject, SafeSearch, ToolCall } from './types/index.js';
|
|
4
4
|
|
|
5
5
|
declare class ToolManager {
|
|
6
6
|
private tools;
|
package/dist/types/index.d.cts
CHANGED
|
@@ -49,7 +49,32 @@ interface ResolvedConfig {
|
|
|
49
49
|
maxToolLoopIterations: number;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
/** A single property in a JSON Schema object */
|
|
53
|
+
interface JsonProperty {
|
|
54
|
+
type: string;
|
|
55
|
+
description?: string;
|
|
56
|
+
enum?: readonly string[];
|
|
57
|
+
minimum?: number;
|
|
58
|
+
maximum?: number;
|
|
59
|
+
items?: JsonProperty;
|
|
60
|
+
}
|
|
61
|
+
/** JSON Schema object definition for tool parameters */
|
|
62
|
+
interface JsonSchemaObject {
|
|
63
|
+
type: "object";
|
|
64
|
+
properties: Record<string, JsonProperty>;
|
|
65
|
+
required?: string[];
|
|
66
|
+
additionalProperties?: boolean;
|
|
67
|
+
[key: string]: unknown;
|
|
68
|
+
}
|
|
69
|
+
interface ToolDefinition {
|
|
70
|
+
type: "function";
|
|
71
|
+
function: {
|
|
72
|
+
name: string;
|
|
73
|
+
description: string;
|
|
74
|
+
parameters: JsonSchemaObject;
|
|
75
|
+
strict?: boolean;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
53
78
|
type ToolCall = OpenAI.Chat.Completions.ChatCompletionMessageFunctionToolCall;
|
|
54
79
|
type ToolResult = OpenAI.Chat.Completions.ChatCompletionToolMessageParam;
|
|
55
80
|
type ToolChoice = OpenAI.Chat.Completions.ChatCompletionToolChoiceOption;
|
|
@@ -143,4 +168,4 @@ interface BraveLLMContextResponse {
|
|
|
143
168
|
};
|
|
144
169
|
}
|
|
145
170
|
|
|
146
|
-
export { BRAVE_LLM_CONTEXT_URL, BRAVE_WEB_SEARCH_URL, type BraveLLMContextOptions, type BraveLLMContextResponse, type BraveLLMContextSnippet, type BraveSearchDefaults, type BraveWebResult, type BraveWebSearchOptions, type BraveWebSearchResponse, type ChatMessage, type ChatResponse, DEEPSEEK_BASE_URL, DEEPSEEK_BETA_BASE_URL, DEEPSEEK_MODELS, DEFAULT_MAX_TOOL_LOOP_ITERATIONS, type DeepSeekConfig, type Freshness, type ModelName, type ReasoningEffort, type RegisteredTool, type ResolvedConfig, type SafeSearch, type StreamChunk, type ThinkingConfig, type ToolCall, type ToolChoice, type ToolDefinition, type ToolHandler, type ToolResult };
|
|
171
|
+
export { BRAVE_LLM_CONTEXT_URL, BRAVE_WEB_SEARCH_URL, type BraveLLMContextOptions, type BraveLLMContextResponse, type BraveLLMContextSnippet, type BraveSearchDefaults, type BraveWebResult, type BraveWebSearchOptions, type BraveWebSearchResponse, type ChatMessage, type ChatResponse, DEEPSEEK_BASE_URL, DEEPSEEK_BETA_BASE_URL, DEEPSEEK_MODELS, DEFAULT_MAX_TOOL_LOOP_ITERATIONS, type DeepSeekConfig, type Freshness, type JsonProperty, type JsonSchemaObject, type ModelName, type ReasoningEffort, type RegisteredTool, type ResolvedConfig, type SafeSearch, type StreamChunk, type ThinkingConfig, type ToolCall, type ToolChoice, type ToolDefinition, type ToolHandler, type ToolResult };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -49,7 +49,32 @@ interface ResolvedConfig {
|
|
|
49
49
|
maxToolLoopIterations: number;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
/** A single property in a JSON Schema object */
|
|
53
|
+
interface JsonProperty {
|
|
54
|
+
type: string;
|
|
55
|
+
description?: string;
|
|
56
|
+
enum?: readonly string[];
|
|
57
|
+
minimum?: number;
|
|
58
|
+
maximum?: number;
|
|
59
|
+
items?: JsonProperty;
|
|
60
|
+
}
|
|
61
|
+
/** JSON Schema object definition for tool parameters */
|
|
62
|
+
interface JsonSchemaObject {
|
|
63
|
+
type: "object";
|
|
64
|
+
properties: Record<string, JsonProperty>;
|
|
65
|
+
required?: string[];
|
|
66
|
+
additionalProperties?: boolean;
|
|
67
|
+
[key: string]: unknown;
|
|
68
|
+
}
|
|
69
|
+
interface ToolDefinition {
|
|
70
|
+
type: "function";
|
|
71
|
+
function: {
|
|
72
|
+
name: string;
|
|
73
|
+
description: string;
|
|
74
|
+
parameters: JsonSchemaObject;
|
|
75
|
+
strict?: boolean;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
53
78
|
type ToolCall = OpenAI.Chat.Completions.ChatCompletionMessageFunctionToolCall;
|
|
54
79
|
type ToolResult = OpenAI.Chat.Completions.ChatCompletionToolMessageParam;
|
|
55
80
|
type ToolChoice = OpenAI.Chat.Completions.ChatCompletionToolChoiceOption;
|
|
@@ -143,4 +168,4 @@ interface BraveLLMContextResponse {
|
|
|
143
168
|
};
|
|
144
169
|
}
|
|
145
170
|
|
|
146
|
-
export { BRAVE_LLM_CONTEXT_URL, BRAVE_WEB_SEARCH_URL, type BraveLLMContextOptions, type BraveLLMContextResponse, type BraveLLMContextSnippet, type BraveSearchDefaults, type BraveWebResult, type BraveWebSearchOptions, type BraveWebSearchResponse, type ChatMessage, type ChatResponse, DEEPSEEK_BASE_URL, DEEPSEEK_BETA_BASE_URL, DEEPSEEK_MODELS, DEFAULT_MAX_TOOL_LOOP_ITERATIONS, type DeepSeekConfig, type Freshness, type ModelName, type ReasoningEffort, type RegisteredTool, type ResolvedConfig, type SafeSearch, type StreamChunk, type ThinkingConfig, type ToolCall, type ToolChoice, type ToolDefinition, type ToolHandler, type ToolResult };
|
|
171
|
+
export { BRAVE_LLM_CONTEXT_URL, BRAVE_WEB_SEARCH_URL, type BraveLLMContextOptions, type BraveLLMContextResponse, type BraveLLMContextSnippet, type BraveSearchDefaults, type BraveWebResult, type BraveWebSearchOptions, type BraveWebSearchResponse, type ChatMessage, type ChatResponse, DEEPSEEK_BASE_URL, DEEPSEEK_BETA_BASE_URL, DEEPSEEK_MODELS, DEFAULT_MAX_TOOL_LOOP_ITERATIONS, type DeepSeekConfig, type Freshness, type JsonProperty, type JsonSchemaObject, type ModelName, type ReasoningEffort, type RegisteredTool, type ResolvedConfig, type SafeSearch, type StreamChunk, type ThinkingConfig, type ToolCall, type ToolChoice, type ToolDefinition, type ToolHandler, type ToolResult };
|
package/package.json
CHANGED