deepseek-web-retrieval 0.9.0 → 0.10.0

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.
@@ -13,6 +13,7 @@ import {
13
13
  FETCH_TOOL_DESCRIPTION,
14
14
  FETCH_URL_PARAMETER,
15
15
  SEARCH_COUNT_PARAMETER,
16
+ SEARCH_NEED_CONTENT_PARAMETER,
16
17
  SEARCH_ORI_QUESTION_PARAMETER,
17
18
  SEARCH_QUERY_PARAMETER,
18
19
  SEARCH_TOOL_DESCRIPTION,
@@ -33,6 +34,7 @@ const SEARCH_PARAMETERS = Type.Object({
33
34
  }),
34
35
  ),
35
36
  count: Type.Optional(Type.Integer({ minimum: 1, maximum: MAX_SEARCH_COUNT, description: SEARCH_COUNT_PARAMETER })),
37
+ need_content: Type.Optional(Type.Boolean({ description: SEARCH_NEED_CONTENT_PARAMETER })),
36
38
  });
37
39
 
38
40
  const SEARCH_OUTPUT = Type.Object({
@@ -109,6 +111,7 @@ export function searchTool(config: ResolvedOptions, client: RetrievalClient = re
109
111
  const outcome = await client.searchWeb(params.query, withPerCallCount(config.search, params.count), {
110
112
  ...requestContext(config, requireApiKey(), signal ?? NEVER_ABORTS),
111
113
  oriQuestion: explicit ?? sessionOriQuestion(ctx),
114
+ needContent: params.need_content === true,
112
115
  });
113
116
  return {
114
117
  content: [{ type: "text", text: formatSearchResults(outcome.results, outcome) }],