@yourgpt/llm-sdk 2.5.1-beta.1 → 2.5.1-beta.2
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/README.md +1 -19
- package/dist/adapters/index.d.mts +4 -4
- package/dist/adapters/index.d.ts +4 -4
- package/dist/adapters/index.js +14 -139
- package/dist/adapters/index.mjs +14 -139
- package/dist/{base-Cxq3ni0t.d.ts → base-C58Dsr9p.d.ts} +1 -5
- package/dist/{base-BYQKp9TW.d.mts → base-tNgbBaSo.d.mts} +1 -5
- package/dist/fallback/index.d.mts +4 -4
- package/dist/fallback/index.d.ts +4 -4
- package/dist/index.d.mts +8 -60
- package/dist/index.d.ts +8 -60
- package/dist/index.js +0 -59
- package/dist/index.mjs +0 -59
- package/dist/providers/anthropic/index.d.mts +3 -3
- package/dist/providers/anthropic/index.d.ts +3 -3
- package/dist/providers/anthropic/index.js +10 -91
- package/dist/providers/anthropic/index.mjs +10 -91
- package/dist/providers/azure/index.d.mts +3 -3
- package/dist/providers/azure/index.d.ts +3 -3
- package/dist/providers/azure/index.js +1 -0
- package/dist/providers/azure/index.mjs +1 -0
- package/dist/providers/fireworks/index.d.mts +1 -1
- package/dist/providers/fireworks/index.d.ts +1 -1
- package/dist/providers/fireworks/index.js +1 -0
- package/dist/providers/fireworks/index.mjs +1 -0
- package/dist/providers/google/index.d.mts +3 -3
- package/dist/providers/google/index.d.ts +3 -3
- package/dist/providers/google/index.js +3 -51
- package/dist/providers/google/index.mjs +3 -51
- package/dist/providers/ollama/index.d.mts +4 -4
- package/dist/providers/ollama/index.d.ts +4 -4
- package/dist/providers/ollama/index.js +1 -0
- package/dist/providers/ollama/index.mjs +1 -0
- package/dist/providers/openai/index.d.mts +3 -3
- package/dist/providers/openai/index.d.ts +3 -3
- package/dist/providers/openai/index.js +3 -51
- package/dist/providers/openai/index.mjs +3 -51
- package/dist/providers/openrouter/index.d.mts +3 -3
- package/dist/providers/openrouter/index.d.ts +3 -3
- package/dist/providers/openrouter/index.js +3 -51
- package/dist/providers/openrouter/index.mjs +3 -51
- package/dist/providers/togetherai/index.d.mts +3 -3
- package/dist/providers/togetherai/index.d.ts +3 -3
- package/dist/providers/togetherai/index.js +3 -51
- package/dist/providers/togetherai/index.mjs +3 -51
- package/dist/providers/xai/index.d.mts +3 -3
- package/dist/providers/xai/index.d.ts +3 -3
- package/dist/providers/xai/index.js +3 -51
- package/dist/providers/xai/index.mjs +3 -51
- package/dist/{types-mwMhCwOq.d.mts → types-B6dhnguR.d.mts} +1 -1
- package/dist/{types-TMilS-Dz.d.ts → types-BQ31QIsA.d.ts} +2 -2
- package/dist/{types-BvkiJ1dd.d.mts → types-BSSiJW2o.d.mts} +2 -2
- package/dist/{types-D774b0dg.d.mts → types-BkQCSiIt.d.mts} +2 -57
- package/dist/{types-D774b0dg.d.ts → types-BkQCSiIt.d.ts} +2 -57
- package/dist/{types-ChORafYS.d.ts → types-CCxPmkmK.d.ts} +1 -1
- package/dist/yourgpt/index.d.mts +1 -1
- package/dist/yourgpt/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -112,6 +112,7 @@ function buildOpenAITokenParams(modelId, maxTokens, temperature) {
|
|
|
112
112
|
function toOpenAIResponseFormat(rf) {
|
|
113
113
|
if (!rf) return void 0;
|
|
114
114
|
if (rf.type === "json_object") return { type: "json_object" };
|
|
115
|
+
if (rf.type !== "json_schema" || !rf.json_schema) return void 0;
|
|
115
116
|
return {
|
|
116
117
|
type: "json_schema",
|
|
117
118
|
json_schema: {
|
|
@@ -130,33 +131,6 @@ function toOpenAIResponsesTextFormat(rf) {
|
|
|
130
131
|
strict: rf.json_schema.strict ?? true
|
|
131
132
|
};
|
|
132
133
|
}
|
|
133
|
-
function toOpenAIResponsesMcpTools(mcpServers) {
|
|
134
|
-
if (!mcpServers || mcpServers.length === 0) return [];
|
|
135
|
-
return mcpServers.map((mcp) => ({
|
|
136
|
-
type: "mcp",
|
|
137
|
-
server_label: mcp.label,
|
|
138
|
-
server_url: mcp.url,
|
|
139
|
-
...mcp.headers ? { headers: mcp.headers } : {},
|
|
140
|
-
...mcp.allowedTools ? { allowed_tools: mcp.allowedTools } : {},
|
|
141
|
-
require_approval: mcp.requireApproval ?? "never"
|
|
142
|
-
}));
|
|
143
|
-
}
|
|
144
|
-
function isStringEffort(effort) {
|
|
145
|
-
return typeof effort === "string" && (effort === "minimal" || effort === "low" || effort === "medium" || effort === "high");
|
|
146
|
-
}
|
|
147
|
-
function toOpenAIReasoning(effort) {
|
|
148
|
-
if (!effort) return void 0;
|
|
149
|
-
if (typeof effort === "object" && "raw" in effort) return effort.raw;
|
|
150
|
-
if (typeof effort === "object" && "budgetTokens" in effort) {
|
|
151
|
-
const budget = effort.budgetTokens;
|
|
152
|
-
const mapped = budget >= 16e3 ? "high" : budget >= 8e3 ? "medium" : "low";
|
|
153
|
-
return { effort: mapped, summary: "auto" };
|
|
154
|
-
}
|
|
155
|
-
if (isStringEffort(effort)) {
|
|
156
|
-
return { effort, summary: "auto" };
|
|
157
|
-
}
|
|
158
|
-
return void 0;
|
|
159
|
-
}
|
|
160
134
|
function formatTools(actions) {
|
|
161
135
|
return actions.map((action) => ({
|
|
162
136
|
type: "function",
|
|
@@ -526,14 +500,6 @@ var OpenAIAdapter = class _OpenAIAdapter {
|
|
|
526
500
|
return this.client;
|
|
527
501
|
}
|
|
528
502
|
shouldUseResponsesApi(request) {
|
|
529
|
-
if (request.config?.mcpServers && request.config.mcpServers.length > 0 || request.config?.reasoningEffort !== void 0) {
|
|
530
|
-
if (this.provider !== "openai" && this.provider !== "azure") {
|
|
531
|
-
throw new Error(
|
|
532
|
-
`[llm-sdk] Provider "${this.provider}" does not support MCP servers or per-request reasoning effort. Use OpenAI or Anthropic for these features.`
|
|
533
|
-
);
|
|
534
|
-
}
|
|
535
|
-
return true;
|
|
536
|
-
}
|
|
537
503
|
return request.providerToolOptions?.openai?.nativeToolSearch?.enabled === true && request.providerToolOptions.openai.nativeToolSearch.useResponsesApi !== false && Array.isArray(request.toolDefinitions) && request.toolDefinitions.length > 0;
|
|
538
504
|
}
|
|
539
505
|
buildResponsesInput(request) {
|
|
@@ -594,7 +560,7 @@ var OpenAIAdapter = class _OpenAIAdapter {
|
|
|
594
560
|
strict: true,
|
|
595
561
|
defer_loading: tool.deferLoading === true
|
|
596
562
|
}));
|
|
597
|
-
return
|
|
563
|
+
return [{ type: "tool_search" }, ...nativeTools];
|
|
598
564
|
}
|
|
599
565
|
parseResponsesResult(response) {
|
|
600
566
|
const content = typeof response?.output_text === "string" ? response.output_text : "";
|
|
@@ -626,30 +592,16 @@ var OpenAIAdapter = class _OpenAIAdapter {
|
|
|
626
592
|
const responsesTextFormat = toOpenAIResponsesTextFormat(
|
|
627
593
|
request.config?.responseFormat
|
|
628
594
|
);
|
|
629
|
-
const mcpTools = toOpenAIResponsesMcpTools(request.config?.mcpServers);
|
|
630
|
-
const modelId = request.config?.model || this.model;
|
|
631
|
-
const reasoning = isOpenAIReasoningModel(modelId) ? toOpenAIReasoning(request.config?.reasoningEffort) : void 0;
|
|
632
|
-
if (request.config?.reasoningEffort && !isOpenAIReasoningModel(modelId)) {
|
|
633
|
-
console.warn(
|
|
634
|
-
`[llm-sdk] openai/${modelId} is not a reasoning model; \`reasoningEffort\` is ignored. Use o1/o3/o4/gpt-5.x for reasoning.`
|
|
635
|
-
);
|
|
636
|
-
}
|
|
637
|
-
const functionTools = this.buildResponsesTools(
|
|
638
|
-
request.toolDefinitions ?? []
|
|
639
|
-
);
|
|
640
|
-
const tools = [...functionTools, ...mcpTools];
|
|
641
595
|
const payload = {
|
|
642
596
|
model: request.config?.model || this.model,
|
|
643
597
|
instructions: request.systemPrompt,
|
|
644
598
|
input: this.buildResponsesInput(request),
|
|
645
|
-
tools:
|
|
599
|
+
tools: this.buildResponsesTools(request.toolDefinitions ?? []),
|
|
646
600
|
tool_choice: openaiToolOptions?.toolChoice === "required" ? "required" : openaiToolOptions?.toolChoice === "auto" ? "auto" : void 0,
|
|
647
601
|
parallel_tool_calls: openaiToolOptions?.parallelToolCalls,
|
|
648
602
|
temperature: request.config?.temperature ?? this.config.temperature,
|
|
649
603
|
max_output_tokens: request.config?.maxTokens ?? this.config.maxTokens,
|
|
650
604
|
...responsesTextFormat ? { text: { format: responsesTextFormat } } : {},
|
|
651
|
-
...reasoning ? { reasoning } : {},
|
|
652
|
-
store: false,
|
|
653
605
|
stream: false
|
|
654
606
|
};
|
|
655
607
|
logProviderPayload("openai", "request payload", payload, request.debug);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as ToolDefinition,
|
|
2
|
-
import { L as LLMAdapter } from './base-
|
|
1
|
+
import { d as ToolDefinition, Z as UnifiedToolCall, _ as UnifiedToolResult } from './types-BkQCSiIt.js';
|
|
2
|
+
import { L as LLMAdapter } from './base-C58Dsr9p.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Provider Types
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as ToolDefinition,
|
|
2
|
-
import { L as LLMAdapter } from './base-
|
|
1
|
+
import { d as ToolDefinition, Z as UnifiedToolCall, _ as UnifiedToolResult } from './types-BkQCSiIt.mjs';
|
|
2
|
+
import { L as LLMAdapter } from './base-tNgbBaSo.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Provider Types
|
|
@@ -245,42 +245,6 @@ type ResponseFormat = {
|
|
|
245
245
|
strict?: boolean;
|
|
246
246
|
};
|
|
247
247
|
};
|
|
248
|
-
/**
|
|
249
|
-
* MCP (Model Context Protocol) server reference for a request.
|
|
250
|
-
*
|
|
251
|
-
* Vendor-neutral shape — each adapter translates to its provider's native
|
|
252
|
-
* field: OpenAI Responses `tools[type=mcp]`, Anthropic `mcp_servers` +
|
|
253
|
-
* `tools[type=mcp_toolset]` (beta `mcp-client-2025-11-20`), or local
|
|
254
|
-
* execution for adapters without native MCP.
|
|
255
|
-
*/
|
|
256
|
-
interface McpServerConfig {
|
|
257
|
-
/** Human-readable label sent to the provider (also used as MCP server name). */
|
|
258
|
-
label: string;
|
|
259
|
-
/** MCP server endpoint (HTTP/SSE URL). */
|
|
260
|
-
url: string;
|
|
261
|
-
/** Additional HTTP headers; the `Authorization` value is also extracted for providers that take a separate token field. */
|
|
262
|
-
headers?: Record<string, string>;
|
|
263
|
-
/** Restrict the model to a subset of the MCP server's exposed tools. */
|
|
264
|
-
allowedTools?: string[];
|
|
265
|
-
/** Approval policy for tool invocation. Defaults to "never" (no human-in-the-loop). */
|
|
266
|
-
requireApproval?: "never" | "always";
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* Reasoning effort knob — normalized across providers.
|
|
270
|
-
*
|
|
271
|
-
* Maps to OpenAI Responses `reasoning.effort`, Anthropic `thinking`
|
|
272
|
-
* (adaptive+effort on Claude 4.6/4.7, budget_tokens on older models),
|
|
273
|
-
* Gemini `thinkingBudget`, xAI `reasoning_effort`. Adapters silently
|
|
274
|
-
* no-op when the underlying model doesn't support reasoning.
|
|
275
|
-
*
|
|
276
|
-
* Use the enum for the common case, or `{ budgetTokens }` / `{ raw }`
|
|
277
|
-
* for provider-specific escape hatches when full fidelity is required.
|
|
278
|
-
*/
|
|
279
|
-
type ReasoningEffort = "minimal" | "low" | "medium" | "high" | {
|
|
280
|
-
budgetTokens: number;
|
|
281
|
-
} | {
|
|
282
|
-
raw: Record<string, unknown>;
|
|
283
|
-
};
|
|
284
248
|
/**
|
|
285
249
|
* LLM configuration
|
|
286
250
|
*/
|
|
@@ -288,8 +252,6 @@ interface LLMConfig {
|
|
|
288
252
|
temperature?: number;
|
|
289
253
|
maxTokens?: number;
|
|
290
254
|
responseFormat?: ResponseFormat;
|
|
291
|
-
mcpServers?: McpServerConfig[];
|
|
292
|
-
reasoningEffort?: ReasoningEffort;
|
|
293
255
|
}
|
|
294
256
|
/**
|
|
295
257
|
* Tool call format (OpenAI style)
|
|
@@ -658,7 +620,7 @@ interface ToolMessage {
|
|
|
658
620
|
/**
|
|
659
621
|
* Content parts for multimodal user messages
|
|
660
622
|
*/
|
|
661
|
-
type UserContentPart = TextPart | ImagePart | FilePart
|
|
623
|
+
type UserContentPart = TextPart | ImagePart | FilePart;
|
|
662
624
|
interface TextPart {
|
|
663
625
|
type: "text";
|
|
664
626
|
text: string;
|
|
@@ -677,15 +639,6 @@ interface FilePart {
|
|
|
677
639
|
/** MIME type (e.g., 'application/pdf') */
|
|
678
640
|
mimeType: string;
|
|
679
641
|
}
|
|
680
|
-
interface AudioPart {
|
|
681
|
-
type: "input_audio";
|
|
682
|
-
input_audio: {
|
|
683
|
-
/** Base64-encoded audio data */
|
|
684
|
-
data: string;
|
|
685
|
-
/** Audio format (e.g., 'mp3', 'wav', 'ogg', 'webm', 'm4a', 'flac') */
|
|
686
|
-
format: string;
|
|
687
|
-
};
|
|
688
|
-
}
|
|
689
642
|
/**
|
|
690
643
|
* Tool definition with Zod schema support
|
|
691
644
|
*/
|
|
@@ -749,10 +702,6 @@ interface DoGenerateParams {
|
|
|
749
702
|
maxTokens?: number;
|
|
750
703
|
/** Structured-output / JSON-mode request format (provider-translated) */
|
|
751
704
|
responseFormat?: ResponseFormat;
|
|
752
|
-
/** MCP servers exposed to the model (provider-translated). */
|
|
753
|
-
mcpServers?: McpServerConfig[];
|
|
754
|
-
/** Reasoning/thinking effort knob (provider-translated). */
|
|
755
|
-
reasoningEffort?: ReasoningEffort;
|
|
756
705
|
/** Abort signal */
|
|
757
706
|
signal?: AbortSignal;
|
|
758
707
|
}
|
|
@@ -831,10 +780,6 @@ interface GenerateTextParams {
|
|
|
831
780
|
maxTokens?: number;
|
|
832
781
|
/** Structured-output / JSON-mode request format */
|
|
833
782
|
responseFormat?: ResponseFormat;
|
|
834
|
-
/** MCP servers exposed to the model (provider-translated). */
|
|
835
|
-
mcpServers?: McpServerConfig[];
|
|
836
|
-
/** Reasoning/thinking effort knob (provider-translated). */
|
|
837
|
-
reasoningEffort?: ReasoningEffort;
|
|
838
783
|
/** Abort signal */
|
|
839
784
|
signal?: AbortSignal;
|
|
840
785
|
}
|
|
@@ -1015,4 +960,4 @@ interface StorageFile {
|
|
|
1015
960
|
filename?: string;
|
|
1016
961
|
}
|
|
1017
962
|
|
|
1018
|
-
export { type
|
|
963
|
+
export { type ToolExecution as $, type ActionDefinition as A, type ToolResultChunk as B, type CoreMessage as C, type DoneEventMessage as D, type FinishChunk as E, type FilePart as F, type GenerateTextParams as G, type ErrorChunk as H, type ImagePart as I, type TokenUsage as J, type KnowledgeBaseConfig as K, type LanguageModel as L, type Message as M, type FinishReason as N, type ResponseOptions as O, type ProviderToolRuntimeOptions as P, type StorageFile as Q, type ResponseFormat as R, type StreamTextParams as S, type ToolContext as T, type UserMessage as U, DEFAULT_CAPABILITIES as V, type WebSearchConfig as W, type LLMConfig as X, type ToolLocation as Y, type UnifiedToolCall as Z, type UnifiedToolResult as _, type GenerateTextResult as a, type OpenAIToolSelectionHints as a0, type AnthropicToolSelectionHints as a1, type ToolNativeProviderHints as a2, type OpenAIProviderToolOptions as a3, type AnthropicProviderToolOptions as a4, type Citation as a5, type MessageAttachment as a6, type StreamTextResult as b, type Tool as c, type ToolDefinition as d, type ToolProfile as e, type StorageAdapter as f, type StreamEvent as g, type ToolCallInfo as h, type TokenUsageRaw as i, type ToolResponse as j, type StorageMessage as k, type ModelCapabilities as l, type DoGenerateParams as m, type DoGenerateResult as n, type SystemMessage as o, type AssistantMessage as p, type ToolMessage as q, type UserContentPart as r, type TextPart as s, type ToolCall as t, type ToolResult as u, type GenerateStep as v, type StreamPart as w, type StreamChunk as x, type TextDeltaChunk as y, type ToolCallChunk as z };
|
|
@@ -245,42 +245,6 @@ type ResponseFormat = {
|
|
|
245
245
|
strict?: boolean;
|
|
246
246
|
};
|
|
247
247
|
};
|
|
248
|
-
/**
|
|
249
|
-
* MCP (Model Context Protocol) server reference for a request.
|
|
250
|
-
*
|
|
251
|
-
* Vendor-neutral shape — each adapter translates to its provider's native
|
|
252
|
-
* field: OpenAI Responses `tools[type=mcp]`, Anthropic `mcp_servers` +
|
|
253
|
-
* `tools[type=mcp_toolset]` (beta `mcp-client-2025-11-20`), or local
|
|
254
|
-
* execution for adapters without native MCP.
|
|
255
|
-
*/
|
|
256
|
-
interface McpServerConfig {
|
|
257
|
-
/** Human-readable label sent to the provider (also used as MCP server name). */
|
|
258
|
-
label: string;
|
|
259
|
-
/** MCP server endpoint (HTTP/SSE URL). */
|
|
260
|
-
url: string;
|
|
261
|
-
/** Additional HTTP headers; the `Authorization` value is also extracted for providers that take a separate token field. */
|
|
262
|
-
headers?: Record<string, string>;
|
|
263
|
-
/** Restrict the model to a subset of the MCP server's exposed tools. */
|
|
264
|
-
allowedTools?: string[];
|
|
265
|
-
/** Approval policy for tool invocation. Defaults to "never" (no human-in-the-loop). */
|
|
266
|
-
requireApproval?: "never" | "always";
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* Reasoning effort knob — normalized across providers.
|
|
270
|
-
*
|
|
271
|
-
* Maps to OpenAI Responses `reasoning.effort`, Anthropic `thinking`
|
|
272
|
-
* (adaptive+effort on Claude 4.6/4.7, budget_tokens on older models),
|
|
273
|
-
* Gemini `thinkingBudget`, xAI `reasoning_effort`. Adapters silently
|
|
274
|
-
* no-op when the underlying model doesn't support reasoning.
|
|
275
|
-
*
|
|
276
|
-
* Use the enum for the common case, or `{ budgetTokens }` / `{ raw }`
|
|
277
|
-
* for provider-specific escape hatches when full fidelity is required.
|
|
278
|
-
*/
|
|
279
|
-
type ReasoningEffort = "minimal" | "low" | "medium" | "high" | {
|
|
280
|
-
budgetTokens: number;
|
|
281
|
-
} | {
|
|
282
|
-
raw: Record<string, unknown>;
|
|
283
|
-
};
|
|
284
248
|
/**
|
|
285
249
|
* LLM configuration
|
|
286
250
|
*/
|
|
@@ -288,8 +252,6 @@ interface LLMConfig {
|
|
|
288
252
|
temperature?: number;
|
|
289
253
|
maxTokens?: number;
|
|
290
254
|
responseFormat?: ResponseFormat;
|
|
291
|
-
mcpServers?: McpServerConfig[];
|
|
292
|
-
reasoningEffort?: ReasoningEffort;
|
|
293
255
|
}
|
|
294
256
|
/**
|
|
295
257
|
* Tool call format (OpenAI style)
|
|
@@ -658,7 +620,7 @@ interface ToolMessage {
|
|
|
658
620
|
/**
|
|
659
621
|
* Content parts for multimodal user messages
|
|
660
622
|
*/
|
|
661
|
-
type UserContentPart = TextPart | ImagePart | FilePart
|
|
623
|
+
type UserContentPart = TextPart | ImagePart | FilePart;
|
|
662
624
|
interface TextPart {
|
|
663
625
|
type: "text";
|
|
664
626
|
text: string;
|
|
@@ -677,15 +639,6 @@ interface FilePart {
|
|
|
677
639
|
/** MIME type (e.g., 'application/pdf') */
|
|
678
640
|
mimeType: string;
|
|
679
641
|
}
|
|
680
|
-
interface AudioPart {
|
|
681
|
-
type: "input_audio";
|
|
682
|
-
input_audio: {
|
|
683
|
-
/** Base64-encoded audio data */
|
|
684
|
-
data: string;
|
|
685
|
-
/** Audio format (e.g., 'mp3', 'wav', 'ogg', 'webm', 'm4a', 'flac') */
|
|
686
|
-
format: string;
|
|
687
|
-
};
|
|
688
|
-
}
|
|
689
642
|
/**
|
|
690
643
|
* Tool definition with Zod schema support
|
|
691
644
|
*/
|
|
@@ -749,10 +702,6 @@ interface DoGenerateParams {
|
|
|
749
702
|
maxTokens?: number;
|
|
750
703
|
/** Structured-output / JSON-mode request format (provider-translated) */
|
|
751
704
|
responseFormat?: ResponseFormat;
|
|
752
|
-
/** MCP servers exposed to the model (provider-translated). */
|
|
753
|
-
mcpServers?: McpServerConfig[];
|
|
754
|
-
/** Reasoning/thinking effort knob (provider-translated). */
|
|
755
|
-
reasoningEffort?: ReasoningEffort;
|
|
756
705
|
/** Abort signal */
|
|
757
706
|
signal?: AbortSignal;
|
|
758
707
|
}
|
|
@@ -831,10 +780,6 @@ interface GenerateTextParams {
|
|
|
831
780
|
maxTokens?: number;
|
|
832
781
|
/** Structured-output / JSON-mode request format */
|
|
833
782
|
responseFormat?: ResponseFormat;
|
|
834
|
-
/** MCP servers exposed to the model (provider-translated). */
|
|
835
|
-
mcpServers?: McpServerConfig[];
|
|
836
|
-
/** Reasoning/thinking effort knob (provider-translated). */
|
|
837
|
-
reasoningEffort?: ReasoningEffort;
|
|
838
783
|
/** Abort signal */
|
|
839
784
|
signal?: AbortSignal;
|
|
840
785
|
}
|
|
@@ -1015,4 +960,4 @@ interface StorageFile {
|
|
|
1015
960
|
filename?: string;
|
|
1016
961
|
}
|
|
1017
962
|
|
|
1018
|
-
export { type
|
|
963
|
+
export { type ToolExecution as $, type ActionDefinition as A, type ToolResultChunk as B, type CoreMessage as C, type DoneEventMessage as D, type FinishChunk as E, type FilePart as F, type GenerateTextParams as G, type ErrorChunk as H, type ImagePart as I, type TokenUsage as J, type KnowledgeBaseConfig as K, type LanguageModel as L, type Message as M, type FinishReason as N, type ResponseOptions as O, type ProviderToolRuntimeOptions as P, type StorageFile as Q, type ResponseFormat as R, type StreamTextParams as S, type ToolContext as T, type UserMessage as U, DEFAULT_CAPABILITIES as V, type WebSearchConfig as W, type LLMConfig as X, type ToolLocation as Y, type UnifiedToolCall as Z, type UnifiedToolResult as _, type GenerateTextResult as a, type OpenAIToolSelectionHints as a0, type AnthropicToolSelectionHints as a1, type ToolNativeProviderHints as a2, type OpenAIProviderToolOptions as a3, type AnthropicProviderToolOptions as a4, type Citation as a5, type MessageAttachment as a6, type StreamTextResult as b, type Tool as c, type ToolDefinition as d, type ToolProfile as e, type StorageAdapter as f, type StreamEvent as g, type ToolCallInfo as h, type TokenUsageRaw as i, type ToolResponse as j, type StorageMessage as k, type ModelCapabilities as l, type DoGenerateParams as m, type DoGenerateResult as n, type SystemMessage as o, type AssistantMessage as p, type ToolMessage as q, type UserContentPart as r, type TextPart as s, type ToolCall as t, type ToolResult as u, type GenerateStep as v, type StreamPart as w, type StreamChunk as x, type TextDeltaChunk as y, type ToolCallChunk as z };
|
package/dist/yourgpt/index.d.mts
CHANGED
package/dist/yourgpt/index.d.ts
CHANGED