UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 1.74 kB
import{r as createLazyRuntimeModule}from"./lazy-runtime-Ds6M7vp4.mjs";import{n as WEB_SEARCH_QUERY_COUNT_PROPERTIES,t as createBaseWebSearchProviderContractFields}from"./provider-web-search-contract-fields-BU0F0PUo.mjs"; //!extensions/minimax/src/minimax-web-search-provider.ts const MINIMAX_CREDENTIAL_PATH=`plugins.entries.minimax.config.webSearch.apiKey`;const MINIMAX_WEB_SEARCH_ENV_VARS=[...[`MINIMAX_CODE_PLAN_KEY`,`MINIMAX_CODING_API_KEY`,`MINIMAX_OAUTH_TOKEN`],`MINIMAX_API_KEY`];const loadMiniMaxWebSearchRuntime=createLazyRuntimeModule(()=>import(`./minimax-web-search-provider.runtime-DCqeXfBs.mjs`));const MiniMaxSearchSchema={type:`object`,properties:{...WEB_SEARCH_QUERY_COUNT_PROPERTIES}};function createMiniMaxWebSearchProvider(){return{id:`minimax`,label:`MiniMax Search`,hint:`Structured results via MiniMax Token Plan search API`,onboardingScopes:[`text-inference`],credentialLabel:`MiniMax Token Plan key or OAuth token`,envVars:[...MINIMAX_WEB_SEARCH_ENV_VARS],placeholder:`sk-cp-...`,signupUrl:`https://platform.minimax.io/user-center/basic-information/interface-key`,docsUrl:`https://docs.openclaw.ai/tools/minimax-search`,autoDetectOrder:15,credentialPath:MINIMAX_CREDENTIAL_PATH,...createBaseWebSearchProviderContractFields({credentialPath:MINIMAX_CREDENTIAL_PATH,searchCredential:{type:`top-level`},configuredCredential:{pluginId:`minimax`}}),createTool:e=>({description:`Search the web using MiniMax Search API. Returns titles, URLs, snippets, and related search suggestions.`,parameters:MiniMaxSearchSchema,execute:async(t,n)=>{n?.signal?.throwIfAborted();const{executeMiniMaxWebSearchProviderTool:r}=await loadMiniMaxWebSearchRuntime();return await r(e,t,n?.signal)}})}}export{createMiniMaxWebSearchProvider as t};