@8wave/ai-elements 0.112.0-beta.5 → 0.112.0-beta.9
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/_chunks/{Agent-tE7ZJPxG.js → Agent-DTLrWpzX.js} +138 -135
- package/dist/_chunks/Agent-DTLrWpzX.js.map +1 -0
- package/dist/_chunks/Media-Cft7Pwrh.js.map +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-CNI8aV8t.js → PkStreamingMarkdown-CRlRDGYl.js} +3 -3
- package/dist/_chunks/PkStreamingMarkdown-CRlRDGYl.js.map +1 -0
- package/dist/_chunks/{PkToolRequestGeolocation-65jeiJs8.js → PkToolRequestGeolocation-BbxYKt-9.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-65jeiJs8.js.map → PkToolRequestGeolocation-BbxYKt-9.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-bHpDAtzu.js → PkToolRequestOAuthConnection-CTp2w60F.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-bHpDAtzu.js.map → PkToolRequestOAuthConnection-CTp2w60F.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-6f-Kx9AS.js → PkToolShowArtifact-CNnt82aH.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-6f-Kx9AS.js.map → PkToolShowArtifact-CNnt82aH.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-BewhenPx.js → PkToolShowContactForm-D77gyjQG.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-BewhenPx.js.map → PkToolShowContactForm-D77gyjQG.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-KuTsIy5P.js → PkToolShowForm-DP4LLAk3.js} +3 -3
- package/dist/_chunks/{PkToolShowForm-KuTsIy5P.js.map → PkToolShowForm-DP4LLAk3.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-CY_q7ANb.js → PkToolShowSources-Bwy0Ptmi.js} +2 -2
- package/dist/_chunks/{PkToolShowSources-CY_q7ANb.js.map → PkToolShowSources-Bwy0Ptmi.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-D98Atidw.js → PkToolShowSuggestedReply-CFO8wV1b.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-D98Atidw.js.map → PkToolShowSuggestedReply-CFO8wV1b.js.map} +1 -1
- package/dist/_chunks/markdown-BRD-hDrH.js.map +1 -1
- package/dist/ai-elements.es.js +1023 -949
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotError.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{Agent-De2gFNjR.js → Agent-BNlmK-uJ.js} +96 -87
- package/dist-vue/_chunks/Agent-BNlmK-uJ.js.map +1 -0
- package/dist-vue/_chunks/{Document-9SUVPzht.js → Document-B6RpxFr9.js} +70 -70
- package/dist-vue/_chunks/Document-B6RpxFr9.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-BBR2t9R9.js → PkChatbot-CI9ucJ2M.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-BBR2t9R9.js.map → PkChatbot-CI9ucJ2M.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-BtzBYOHJ.js → PkChatbotEmptyState-CacY4o02.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-BtzBYOHJ.js.map → PkChatbotEmptyState-CacY4o02.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotError-CuX9C_b9.js +89 -0
- package/dist-vue/_chunks/PkChatbotError-CuX9C_b9.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotInput-MSpF6SB6.js → PkChatbotInput-Dkz3SNAk.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-MSpF6SB6.js.map → PkChatbotInput-Dkz3SNAk.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-9NluDSgJ.js → PkChatbotMessages-BsT48S-h.js} +181 -181
- package/dist-vue/_chunks/{PkChatbotMessages-9NluDSgJ.js.map → PkChatbotMessages-BsT48S-h.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-XW4gT9AZ.js → PkChatbotStepPayload-DU0W-eUp.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-XW4gT9AZ.js.map → PkChatbotStepPayload-DU0W-eUp.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-C4-K6Glw.js → PkChatbotStepToolDetail-etlBryOg.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-C4-K6Glw.js.map → PkChatbotStepToolDetail-etlBryOg.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-CrqjWpv0.js → PkChatbotSteps-jW07Q-4x.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-CrqjWpv0.js.map → PkChatbotSteps-jW07Q-4x.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-C0fxsO-G.js → PkChatbotViewChat-jEBBPmSo.js} +7 -7
- package/dist-vue/_chunks/{PkChatbotViewChat-C0fxsO-G.js.map → PkChatbotViewChat-jEBBPmSo.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-DRKaeLbv.js → PkChatbotViewConversations-CWSrP36z.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-DRKaeLbv.js.map → PkChatbotViewConversations-CWSrP36z.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-DPpZHHvK.js → PkChatbotViewFiles-DzLp1WfU.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-DPpZHHvK.js.map → PkChatbotViewFiles-DzLp1WfU.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-D2XZ8Czi.js → PkChatbotViewProfile-CHbn3W6F.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-D2XZ8Czi.js.map → PkChatbotViewProfile-CHbn3W6F.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-D0IOaETI.js → PkStreamingMarkdown-BoEpwaYQ.js} +2 -2
- package/dist-vue/_chunks/{PkStreamingMarkdown-D0IOaETI.js.map → PkStreamingMarkdown-BoEpwaYQ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-Q3N3jlO8.js → PkToolRequestGeolocation-9vfYNaQo.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-Q3N3jlO8.js.map → PkToolRequestGeolocation-9vfYNaQo.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-lYoTJIF_.js → PkToolRequestOAuthConnection-BorR5NmZ.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-lYoTJIF_.js.map → PkToolRequestOAuthConnection-BorR5NmZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-DHdJuzDi.js → PkToolShowArtifact-BnwU7CV2.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-DHdJuzDi.js.map → PkToolShowArtifact-BnwU7CV2.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-CotIwNhi.js → PkToolShowContactForm-_x_dbiHn.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-CotIwNhi.js.map → PkToolShowContactForm-_x_dbiHn.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-CVHYhfwH.js → PkToolShowDiagram-CjJcLvWs.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-CVHYhfwH.js.map → PkToolShowDiagram-CjJcLvWs.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowEmail-DF__nKpR.js → PkToolShowEmail-CRQjoJr1.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowEmail-DF__nKpR.js.map → PkToolShowEmail-CRQjoJr1.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-Dx10jOXm.js → PkToolShowForm-IPAkJIXh.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-Dx10jOXm.js.map → PkToolShowForm-IPAkJIXh.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowMessage-Ck6VP-gw.js → PkToolShowMessage-joTzAg9N.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowMessage-Ck6VP-gw.js.map → PkToolShowMessage-joTzAg9N.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-zfM8cx-l.js → PkToolShowProductList-tOYjd2bq.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-zfM8cx-l.js.map → PkToolShowProductList-tOYjd2bq.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-Qq3c8_ZQ.js → PkToolShowSources-Cc26LzRd.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowSources-Qq3c8_ZQ.js.map → PkToolShowSources-Cc26LzRd.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DWLkUh2L.js → PkToolShowSuggestedReply-DA4NEjHB.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DWLkUh2L.js.map → PkToolShowSuggestedReply-DA4NEjHB.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-CosBYLrE.js → PkToolShowWebPages-D3Xy4iUs.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-CosBYLrE.js.map → PkToolShowWebPages-D3Xy4iUs.js.map} +1 -1
- package/dist-vue/_chunks/{PkUrl-B5CNTQj9.js → PkUrl-BgMBemSz.js} +2 -2
- package/dist-vue/_chunks/{PkUrl-B5CNTQj9.js.map → PkUrl-BgMBemSz.js.map} +1 -1
- package/dist-vue/_chunks/StreamError-D1AtGgS3.js +22 -0
- package/dist-vue/_chunks/StreamError-D1AtGgS3.js.map +1 -0
- package/dist-vue/_chunks/{createChatbotApiClient-MkaPbGWB.js → createChatbotApiClient-CaVLm5W9.js} +162 -126
- package/dist-vue/_chunks/createChatbotApiClient-CaVLm5W9.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-BowmAdfD.js → useChatbotStore-CMS2zFht.js} +861 -889
- package/dist-vue/_chunks/useChatbotStore-CMS2zFht.js.map +1 -0
- package/dist-vue/_chunks/{utils-C1666_6C.js → utils-h4C7rRcu.js} +3 -3
- package/dist-vue/_chunks/{utils-C1666_6C.js.map → utils-h4C7rRcu.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +3 -3
- package/dist-vue/index.js +3546 -3426
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +42 -0
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -3
- package/dist-vue/packages/components/src/chat/PkMessageParts.d.ts +6 -6
- package/dist-vue/packages/components/src/chat/PkToolSelection.d.ts +8 -0
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +139 -1
- package/dist-vue/packages/models/src/schema/Agent.d.ts +38 -0
- package/dist-vue/packages/models/src/schema/Chat.d.ts +120 -0
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +7 -1
- package/dist-vue/packages/models/src/schema/StreamError.d.ts +13 -0
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +7 -1
- package/dist-vue/packages/models/src/schema/constants.d.ts +10 -1
- package/dist-vue/packages/models/src/utils.d.ts +17 -0
- package/dist-vue/style.css +1 -1
- package/package.json +2 -2
- package/dist/_chunks/Agent-tE7ZJPxG.js.map +0 -1
- package/dist/_chunks/PkStreamingMarkdown-CNI8aV8t.js.map +0 -1
- package/dist-vue/_chunks/Agent-De2gFNjR.js.map +0 -1
- package/dist-vue/_chunks/Document-9SUVPzht.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotError-gvDpRcEz.js +0 -106
- package/dist-vue/_chunks/PkChatbotError-gvDpRcEz.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-MkaPbGWB.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-BowmAdfD.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UIChatMessage, BlockedReasonCode } from './Chat';
|
|
2
2
|
import { LanguageModelUsage } from 'ai';
|
|
3
|
-
import { AgentStatus, AgentVisibility, AgentSearchMode, AgentLoaderStrategy, AgentBuiltInTool, WebSearchProvider, AgentChannel, AgentType } from './Agent';
|
|
3
|
+
import { AgentStatus, AgentVisibility, AgentSearchMode, AgentLoaderStrategy, AgentBuiltInTool, WebSearchProvider, AgentChannel, AgentToolWorkingSetMode, AgentType } from './Agent';
|
|
4
4
|
import { StoragePolicy } from './Media';
|
|
5
5
|
import { ConversationAnalysisTrigger, Sentiment, SentimentTrend, UserTone, AbuseCategory, AbuseConfidence, LlmIssueCategory, UserEngagement } from './ConversationAnalysis';
|
|
6
6
|
import * as z from 'zod';
|
|
@@ -397,6 +397,9 @@ export declare const ReasoningChatSchema: z.ZodObject<{
|
|
|
397
397
|
providerSecretId: z.ZodOptional<z.ZodString>;
|
|
398
398
|
providerApiKeyId: z.ZodOptional<z.ZodString>;
|
|
399
399
|
}, z.core.$strip>>>;
|
|
400
|
+
toolWorkingSet: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
401
|
+
mode: z.ZodDefault<z.ZodEnum<typeof AgentToolWorkingSetMode>>;
|
|
402
|
+
}, z.core.$strip>>>;
|
|
400
403
|
}, z.core.$strip>;
|
|
401
404
|
security: z.ZodNullable<z.ZodObject<{
|
|
402
405
|
rateLimits: z.ZodObject<{
|
|
@@ -841,6 +844,9 @@ export declare const ReasoningChatSchema: z.ZodObject<{
|
|
|
841
844
|
providerSecretId: z.ZodOptional<z.ZodString>;
|
|
842
845
|
providerApiKeyId: z.ZodOptional<z.ZodString>;
|
|
843
846
|
}, z.core.$strip>>>;
|
|
847
|
+
toolWorkingSet: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
848
|
+
mode: z.ZodDefault<z.ZodEnum<typeof AgentToolWorkingSetMode>>;
|
|
849
|
+
}, z.core.$strip>>>;
|
|
844
850
|
}, z.core.$strip>;
|
|
845
851
|
security: z.ZodNullable<z.ZodObject<{
|
|
846
852
|
rateLimits: z.ZodObject<{
|
|
@@ -14,3 +14,16 @@ export declare function parseStreamError(message: string | undefined): {
|
|
|
14
14
|
payload: StreamErrorPayload;
|
|
15
15
|
} | undefined;
|
|
16
16
|
export declare function matchesStreamErrorCode(message: string | undefined, code: string): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* The SDK refusing a call to a tool the step did not offer
|
|
19
|
+
* (AI_NoSuchToolError), capturing the tool name. One pattern for the backend,
|
|
20
|
+
* which reads the refusal from the step, and for the message detail, which
|
|
21
|
+
* reads it from the stored part (`summarizeToolSelection`).
|
|
22
|
+
*/
|
|
23
|
+
export declare const UNAVAILABLE_TOOL_ERROR_PATTERN: RegExp;
|
|
24
|
+
/**
|
|
25
|
+
* The text a refused call is stored and streamed with: the SDK's own first
|
|
26
|
+
* sentence, without its list of the step's tools, so it still matches the
|
|
27
|
+
* pattern above.
|
|
28
|
+
*/
|
|
29
|
+
export declare const unavailableToolErrorText: (toolName: string) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentStatus, AgentVisibility, AgentSearchMode, AgentLoaderStrategy, AgentBuiltInTool, WebSearchProvider, AgentChannel, AgentType } from './Agent';
|
|
1
|
+
import { AgentStatus, AgentVisibility, AgentSearchMode, AgentLoaderStrategy, AgentBuiltInTool, WebSearchProvider, AgentChannel, AgentToolWorkingSetMode, AgentType } from './Agent';
|
|
2
2
|
import { StoragePolicy } from './Media';
|
|
3
3
|
import * as z from 'zod';
|
|
4
4
|
export declare enum SubAgentStatus {
|
|
@@ -397,6 +397,9 @@ export declare const SubAgentSchema: z.ZodObject<{
|
|
|
397
397
|
providerSecretId: z.ZodOptional<z.ZodString>;
|
|
398
398
|
providerApiKeyId: z.ZodOptional<z.ZodString>;
|
|
399
399
|
}, z.core.$strip>>>;
|
|
400
|
+
toolWorkingSet: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
401
|
+
mode: z.ZodDefault<z.ZodEnum<typeof AgentToolWorkingSetMode>>;
|
|
402
|
+
}, z.core.$strip>>>;
|
|
400
403
|
}, z.core.$strip>;
|
|
401
404
|
security: z.ZodNullable<z.ZodObject<{
|
|
402
405
|
rateLimits: z.ZodObject<{
|
|
@@ -799,6 +802,9 @@ export declare const SubAgentSchema: z.ZodObject<{
|
|
|
799
802
|
providerSecretId: z.ZodOptional<z.ZodString>;
|
|
800
803
|
providerApiKeyId: z.ZodOptional<z.ZodString>;
|
|
801
804
|
}, z.core.$strip>>>;
|
|
805
|
+
toolWorkingSet: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
806
|
+
mode: z.ZodDefault<z.ZodEnum<typeof AgentToolWorkingSetMode>>;
|
|
807
|
+
}, z.core.$strip>>>;
|
|
802
808
|
}, z.core.$strip>;
|
|
803
809
|
security: z.ZodNullable<z.ZodObject<{
|
|
804
810
|
rateLimits: z.ZodObject<{
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* A test checks every id against a saved copy of the listing, which is what
|
|
18
18
|
* replaces the by-hand verification that missed a model on 2026-09-18.
|
|
19
19
|
*/
|
|
20
|
-
export declare const GATEWAY_MODELS: readonly ["openai/gpt-5-nano", "openai/gpt-5-mini", "openai/gpt-5.1-thinking", "openai/gpt-5.2", "openai/gpt-5.4-nano", "openai/gpt-5.4-mini", "openai/gpt-5.4", "openai/gpt-5.4-pro", "openai/gpt-5.5", "openai/gpt-5.5-pro", "openai/gpt-5.6-luna", "openai/gpt-5.6-terra", "openai/gpt-5.6-sol", "openai/gpt-5.6-luna-fast", "openai/gpt-5.6-terra-fast", "openai/gpt-5.6-sol-fast", "openai/gpt-6-astra", "openai/gpt-6-astra-fast", "openai/gpt-6-sol", "openai/gpt-6-sol-fast", "openai/gpt-6-luna", "openai/gpt-6-luna-fast", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash", "google/gemini-2.5-pro", "google/gemini-3-flash", "google/gemini-3.1-pro-preview", "google/gemini-3.1-flash-lite", "google/gemini-3.5-flash", "google/gemini-3.5-flash-lite", "google/gemini-3.6-flash", "google/gemini-3.7-flash", "google/gemini-3.8-flash", "anthropic/claude-haiku-4.5", "anthropic/claude-sonnet-4.6", "anthropic/claude-sonnet-5", "anthropic/claude-opus-4.6", "anthropic/claude-opus-4.7", "anthropic/claude-opus-4.8", "anthropic/claude-opus-5", "anthropic/claude-opus-5-fast", "anthropic/claude-opus-5.5", "anthropic/claude-opus-5.5-fast", "anthropic/claude-fable-5", "anthropic/claude-fable-5.1", "deepseek/deepseek-v3.2", "deepseek/deepseek-v4-flash-0731", "deepseek/deepseek-v4.1-flash", "deepseek/deepseek-v4-pro-0813", "alibaba/qwen3.6-plus", "alibaba/qwen3.7-max", "alibaba/qwen3.7-plus", "alibaba/qwen3.7-flash", "alibaba/qwen3.8-flash", "alibaba/qwen3.8-max", "alibaba/qwen3.8-27b", "alibaba/qwen3.8-max-0902", "alibaba/qwen3.8-omni-flash", "alibaba/qwen3.8-max-prime", "spacexai/grok-4.3", "spacexai/grok-4.6", "spacexai/grok-4.7", "zai/glm-5.2", "zai/glm-5.2-fast", "zai/glm-5.3", "zai/glm-5.3-flash", "zai/glm-5.3-fast", "zai/glm-5.3-flashx", "meta/muse-spark-1.1", "meta/muse-spark-1.2", "meta/muse-spark-1.3", "moonshotai/kimi-k3", "moonshotai/kimi-k3-fast", "mistral/ministral-14b", "mistral/mistral-small", "mistral/mistral-medium-3.5", "mistral/mistral-large-3", "xiaomi/mimo-v2.6-flash", "xiaomi/mimo-v2.6-pro", "xiaomi/mimo-v2.6-pro-ultraspeed"];
|
|
20
|
+
export declare const GATEWAY_MODELS: readonly ["openai/gpt-5-nano", "openai/gpt-5-mini", "openai/gpt-5.1-thinking", "openai/gpt-5.2", "openai/gpt-5.4-nano", "openai/gpt-5.4-mini", "openai/gpt-5.4", "openai/gpt-5.4-pro", "openai/gpt-5.5", "openai/gpt-5.5-pro", "openai/gpt-5.6-luna", "openai/gpt-5.6-terra", "openai/gpt-5.6-sol", "openai/gpt-5.6-luna-fast", "openai/gpt-5.6-terra-fast", "openai/gpt-5.6-sol-fast", "openai/gpt-6-astra", "openai/gpt-6-astra-fast", "openai/gpt-6-sol", "openai/gpt-6-sol-fast", "openai/gpt-6-luna", "openai/gpt-6-luna-fast", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash", "google/gemini-2.5-pro", "google/gemini-3-flash", "google/gemini-3.1-pro-preview", "google/gemini-3.1-flash-lite", "google/gemini-3.5-flash", "google/gemini-3.5-flash-lite", "google/gemini-3.6-flash", "google/gemini-3.7-flash", "google/gemini-3.8-flash", "anthropic/claude-haiku-4.5", "anthropic/claude-sonnet-4.6", "anthropic/claude-sonnet-5", "anthropic/claude-sonnet-5.5", "anthropic/claude-opus-4.6", "anthropic/claude-opus-4.7", "anthropic/claude-opus-4.8", "anthropic/claude-opus-5", "anthropic/claude-opus-5-fast", "anthropic/claude-opus-5.5", "anthropic/claude-opus-5.5-fast", "anthropic/claude-fable-5", "anthropic/claude-fable-5.1", "deepseek/deepseek-v3.2", "deepseek/deepseek-v4-flash-0731", "deepseek/deepseek-v4.1-flash", "deepseek/deepseek-v4-pro-0813", "alibaba/qwen3.6-plus", "alibaba/qwen3.7-max", "alibaba/qwen3.7-plus", "alibaba/qwen3.7-flash", "alibaba/qwen3.8-flash", "alibaba/qwen3.8-max", "alibaba/qwen3.8-27b", "alibaba/qwen3.8-max-0902", "alibaba/qwen3.8-omni-flash", "alibaba/qwen3.8-max-prime", "spacexai/grok-4.3", "spacexai/grok-4.6", "spacexai/grok-4.7", "zai/glm-5.2", "zai/glm-5.2-fast", "zai/glm-5.3", "zai/glm-5.3-flash", "zai/glm-5.3-fast", "zai/glm-5.3-flashx", "meta/muse-spark-1.1", "meta/muse-spark-1.2", "meta/muse-spark-1.3", "moonshotai/kimi-k3", "moonshotai/kimi-k3-fast", "mistral/ministral-14b", "mistral/mistral-small", "mistral/mistral-medium-3.5", "mistral/mistral-large-3", "xiaomi/mimo-v2.6-flash", "xiaomi/mimo-v2.6-pro", "xiaomi/mimo-v2.6-pro-ultraspeed"];
|
|
21
21
|
/**
|
|
22
22
|
* A model id: an entry of {@link GATEWAY_MODELS}, or a `byok/` id served by an
|
|
23
23
|
* organization's own endpoint. A plain string on purpose, because the second
|
|
@@ -51,6 +51,15 @@ export declare enum EmbeddingModel {
|
|
|
51
51
|
geminiEmbedding2 = "google/gemini-embedding-2"
|
|
52
52
|
}
|
|
53
53
|
export declare const EMBED_MODEL = EmbeddingModel.geminiEmbedding2;
|
|
54
|
+
/**
|
|
55
|
+
* Model that answers typed questions (yes/no, choice, score) with calibrated
|
|
56
|
+
* probabilities instead of text, through the gateway's `experimental_evaluate`
|
|
57
|
+
* (TypeSafe Jev). Out of the catalog like the embeddings: it decides for the
|
|
58
|
+
* platform, it never answers the user. Its gateway listing reports no ZDR,
|
|
59
|
+
* yet a ZDR request is served, routed to TypeSafe alone (measured
|
|
60
|
+
* 2026-09-28, scripts/spikeJevEvaluation.ts).
|
|
61
|
+
*/
|
|
62
|
+
export declare const EVALUATION_MODEL = "typesafe-ai/jev";
|
|
54
63
|
/**
|
|
55
64
|
* Supported languages for documents and revised answers
|
|
56
65
|
*/
|
|
@@ -52,3 +52,20 @@ export declare const zodQs: {
|
|
|
52
52
|
sort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{ [k_1 in S | `-${S}`]: k_1; } extends infer T ? { [k in keyof T]: T[k]; } : never>>>;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* A tool name without the namespace a model invented for it (Gemini's
|
|
57
|
+
* `default_api:toolName`). One definition, because several readers must
|
|
58
|
+
* agree on it: the repair of a tool call, and the closure acceptance, which
|
|
59
|
+
* reads the call before the repair has run (`createClosureAcceptance`).
|
|
60
|
+
*/
|
|
61
|
+
export declare const stripInventedNamespace: (toolName: string) => string;
|
|
62
|
+
/**
|
|
63
|
+
* The registered name a tool name stands for, when the intent is
|
|
64
|
+
* unambiguous: the name without an invented namespace, the name itself, or
|
|
65
|
+
* the one registered name that ends with `-<name>` (a dropped `mcp-` prefix).
|
|
66
|
+
* Shared by the repair of a tool call, by the working set, which must
|
|
67
|
+
* recognize a call to a tool it hid (the repair only sees the tools of the
|
|
68
|
+
* step), and by the message detail, which reads those calls as the working
|
|
69
|
+
* set did (`summarizeToolSelection`).
|
|
70
|
+
*/
|
|
71
|
+
export declare const resolveToolName: (toolName: string, names: Iterable<string>) => string | undefined;
|