@isdk/ai-tool 0.5.7 → 0.5.8
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/chunk-YVFGQB4L.mjs +1 -0
- package/dist/funcs.js +1 -1
- package/dist/funcs.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/docs/classes/BinarySemaphore.md +25 -25
- package/docs/classes/CancelableAbility.md +25 -25
- package/docs/classes/ClientTools.md +57 -57
- package/docs/classes/EnvPromptTemplate.md +19 -19
- package/docs/classes/EventClient.md +80 -80
- package/docs/classes/EventServer.md +81 -81
- package/docs/classes/EventToolFunc.md +49 -49
- package/docs/classes/FStringPromptTemplate.md +19 -19
- package/docs/classes/FewShotPromptTemplate.md +23 -23
- package/docs/classes/GolangPromptTemplate.md +19 -19
- package/docs/classes/HFEnvironment.md +10 -10
- package/docs/classes/HFInterpreter.md +5 -5
- package/docs/classes/HFTemplate.md +5 -5
- package/docs/classes/HfPromptTemplate.md +19 -19
- package/docs/classes/IntSet.md +12 -12
- package/docs/classes/PromptExampleSelector.md +9 -9
- package/docs/classes/PromptTemplate.md +18 -18
- package/docs/classes/ReadableStreamError.md +2 -2
- package/docs/classes/ResClientTools.md +64 -64
- package/docs/classes/ResServerTools.md +65 -65
- package/docs/classes/SSEChannel.md +16 -16
- package/docs/classes/Semaphore.md +26 -26
- package/docs/classes/ServerTools.md +53 -53
- package/docs/classes/SignalGate.md +9 -9
- package/docs/classes/TaskAbortController.md +8 -8
- package/docs/classes/ToolFunc.md +46 -46
- package/docs/classes/YamlTypeBaseObject.md +2 -2
- package/docs/enumerations/AsyncFeatureBits.md +4 -4
- package/docs/enumerations/AsyncFeatures.md +4 -4
- package/docs/enumerations/HashAlgorithm.md +12 -12
- package/docs/functions/AIArgProcessor.md +1 -1
- package/docs/functions/AIStream.md +1 -1
- package/docs/functions/ChoiceArgProcessor.md +1 -1
- package/docs/functions/ObjectArgsToArgsInfo.md +1 -1
- package/docs/functions/RateLimit.md +1 -1
- package/docs/functions/TemplateArgProcessor.md +1 -1
- package/docs/functions/assignDirs.md +1 -1
- package/docs/functions/backendEventable.md +1 -1
- package/docs/functions/beforeShutdown.md +1 -1
- package/docs/functions/completeSentences.md +1 -1
- package/docs/functions/concatText.md +1 -1
- package/docs/functions/countLLMTokens.md +1 -1
- package/docs/functions/countRegexMatches.md +1 -1
- package/docs/functions/createCallbacksTransformer.md +1 -1
- package/docs/functions/createEmptyReadableStream.md +1 -1
- package/docs/functions/createEndWithRepetitionDetector.md +1 -1
- package/docs/functions/createEventStreamTransformer.md +1 -1
- package/docs/functions/createHfValueFunc.md +1 -1
- package/docs/functions/createLRUCache.md +1 -1
- package/docs/functions/createYamlObjectTag.md +1 -1
- package/docs/functions/dateToText.md +1 -1
- package/docs/functions/decodeCharset.md +1 -1
- package/docs/functions/detectCharset.md +1 -1
- package/docs/functions/encodeLLMTokens.md +1 -1
- package/docs/functions/ensureQuoted.md +1 -1
- package/docs/functions/expandConfig.md +1 -1
- package/docs/functions/expandEnv.md +1 -1
- package/docs/functions/expandObjEnv.md +1 -1
- package/docs/functions/expandPath.md +1 -1
- package/docs/functions/extNameLevel.md +1 -1
- package/docs/functions/fileIsExists.md +1 -1
- package/docs/functions/filenameReservedRegex.md +1 -1
- package/docs/functions/filterValidFnScope.md +1 -1
- package/docs/functions/findIndexNonEmptyFrom.md +1 -1
- package/docs/functions/findPort.md +1 -1
- package/docs/functions/formatTextWithSpace.md +1 -1
- package/docs/functions/getAllEnumKeys.md +1 -1
- package/docs/functions/getConfigFileNames.md +1 -1
- package/docs/functions/getConfigs.md +1 -1
- package/docs/functions/getEnvVairables.md +1 -1
- package/docs/functions/getFileMetaInfo.md +1 -1
- package/docs/functions/getHashAlgoBySize.md +1 -1
- package/docs/functions/getKeysPath.md +1 -1
- package/docs/functions/getLLMTokenizer.md +1 -1
- package/docs/functions/getMultiLevelExtname.md +1 -1
- package/docs/functions/getPackageDir.md +1 -1
- package/docs/functions/getRealFilepath.md +1 -1
- package/docs/functions/getResponseErrorReadableStream.md +1 -1
- package/docs/functions/getXDGConfigs.md +1 -1
- package/docs/functions/hasDirectoryIn.md +1 -1
- package/docs/functions/hash.md +1 -1
- package/docs/functions/hashFile.md +1 -1
- package/docs/functions/hashStream.md +1 -1
- package/docs/functions/hfParse.md +1 -1
- package/docs/functions/hfTokenize.md +1 -1
- package/docs/functions/initShutdown.md +1 -1
- package/docs/functions/interpolateEnv.md +1 -1
- package/docs/functions/interpolateFString.md +1 -1
- package/docs/functions/interpolateGolangTemplate.md +1 -1
- package/docs/functions/isLangUsingSpaces.md +1 -1
- package/docs/functions/isListItemString.md +1 -1
- package/docs/functions/isModelNameMatched.md +1 -1
- package/docs/functions/isPunctuationChar.md +1 -1
- package/docs/functions/isQuoted.md +1 -1
- package/docs/functions/isRegExp.md +1 -1
- package/docs/functions/isSameString.md +1 -1
- package/docs/functions/isSectionString.md +1 -1
- package/docs/functions/isSentenceEnding.md +1 -1
- package/docs/functions/isSepLineString.md +1 -1
- package/docs/functions/isStrWrapped.md +1 -1
- package/docs/functions/isSubdirectory.md +1 -1
- package/docs/functions/isTitleString.md +1 -1
- package/docs/functions/isValidFilename.md +1 -1
- package/docs/functions/isValidFilepath.md +1 -1
- package/docs/functions/isWebStream.md +1 -1
- package/docs/functions/jsonFilterToWhere.md +1 -1
- package/docs/functions/jsonToMarkdownStr.md +1 -1
- package/docs/functions/loadAIConfig.md +1 -1
- package/docs/functions/loadConfig.md +1 -1
- package/docs/functions/loadConfigFile.md +1 -1
- package/docs/functions/loadFileFromPaths.md +1 -1
- package/docs/functions/loadTextFromPaths.md +1 -1
- package/docs/functions/lrucache.md +1 -1
- package/docs/functions/makeToolFuncCancelable.md +1 -1
- package/docs/functions/matchUrlProtocol.md +1 -1
- package/docs/functions/memoize.md +1 -1
- package/docs/functions/messagesToText.md +1 -1
- package/docs/functions/paramsSizeToScaleStr.md +1 -1
- package/docs/functions/parseCommand.md +1 -1
- package/docs/functions/parseFString.md +1 -1
- package/docs/functions/parseJsJson.md +1 -1
- package/docs/functions/parseJsJsonSimpleSync.md +1 -1
- package/docs/functions/parseObjectArgInfo.md +1 -1
- package/docs/functions/parseObjectArgumentInfos.md +1 -1
- package/docs/functions/parseObjectArguments.md +1 -1
- package/docs/functions/parseObjectArgumentsAsArgInfos.md +1 -1
- package/docs/functions/parseYaml.md +1 -1
- package/docs/functions/quoteStr.md +1 -1
- package/docs/functions/reControlCharsRegex.md +1 -1
- package/docs/functions/readFilenamesRecursiveSync.md +1 -1
- package/docs/functions/readTextFileChunks.md +1 -1
- package/docs/functions/readTextFileChunksEx.md +1 -1
- package/docs/functions/readableFromAsyncIterable.md +1 -1
- package/docs/functions/registerCoreTools.md +1 -1
- package/docs/functions/registerYamlTag.md +1 -1
- package/docs/functions/removeMarkdownBold.md +1 -1
- package/docs/functions/removeMarkdownBoldAndItalic.md +1 -1
- package/docs/functions/removeMarkdownItalic.md +1 -1
- package/docs/functions/replaceWithPlaceholder.md +1 -1
- package/docs/functions/restoreFromPlacehoders.md +1 -1
- package/docs/functions/sanitizeFilename.md +1 -1
- package/docs/functions/sanitizeFilepath.md +1 -1
- package/docs/functions/saveConfigFile.md +1 -1
- package/docs/functions/scaleStrToParamsSize.md +1 -1
- package/docs/functions/shutdown.md +1 -1
- package/docs/functions/simplifyObjectArguments.md +1 -1
- package/docs/functions/sortedValues.md +1 -1
- package/docs/functions/splitChunks.md +1 -1
- package/docs/functions/splitParagraph.md +1 -1
- package/docs/functions/splitSentence.md +1 -1
- package/docs/functions/stringifyYaml.md +1 -1
- package/docs/functions/stripConsoleColor.md +1 -1
- package/docs/functions/textToDate.md +1 -1
- package/docs/functions/toDateTime.md +1 -1
- package/docs/functions/trimStartOfStreamHelper.md +1 -1
- package/docs/functions/truncTo.md +1 -1
- package/docs/functions/truncateByToken.md +1 -1
- package/docs/functions/truncateToTokenLimit.md +1 -1
- package/docs/functions/truncateToTokenLimitEx.md +1 -1
- package/docs/functions/uuid.md +1 -1
- package/docs/functions/wait.md +1 -1
- package/docs/functions/xxhash.md +1 -1
- package/docs/functions/xxhash32.md +1 -1
- package/docs/functions/xxhash64.md +1 -1
- package/docs/functions/xxhashAsStr.md +1 -1
- package/docs/interfaces/AIChatAssistantMessageParam.md +12 -12
- package/docs/interfaces/AIChatContentPartImage.md +3 -3
- package/docs/interfaces/AIChatContentPartText.md +3 -3
- package/docs/interfaces/AIChatMessageParamBase.md +7 -7
- package/docs/interfaces/AIChatMessageToolCall.md +4 -4
- package/docs/interfaces/AIChatSystemMessageParam.md +9 -9
- package/docs/interfaces/AIChatToolChoiceFuncObject.md +3 -3
- package/docs/interfaces/AIChatToolChoiceObject.md +2 -2
- package/docs/interfaces/AIChatToolFunc.md +5 -5
- package/docs/interfaces/AIChatToolFuncParam.md +3 -3
- package/docs/interfaces/AIChatToolMessageParam.md +10 -10
- package/docs/interfaces/AIChatToolParam.md +2 -2
- package/docs/interfaces/AIChatToolTypeObject.md +2 -2
- package/docs/interfaces/AIChatUserMessageParam.md +13 -13
- package/docs/interfaces/AIChoiceConfig.md +8 -8
- package/docs/interfaces/AIResult.md +6 -6
- package/docs/interfaces/AIStreamParser.md +2 -2
- package/docs/interfaces/AIStreamParserOptions.md +2 -2
- package/docs/interfaces/BaseFunc.md +11 -11
- package/docs/interfaces/BaseFuncItem.md +10 -10
- package/docs/interfaces/BinarySemaphoreAcquireOptions.md +2 -2
- package/docs/interfaces/BinarySemaphoreOptions.md +5 -5
- package/docs/interfaces/BinarySemaphoreReleaseOptions.md +2 -2
- package/docs/interfaces/BinarySemaphoreReleaserFunc.md +3 -3
- package/docs/interfaces/CancelableAbilityOptions.md +4 -4
- package/docs/interfaces/ClientFuncItem.md +13 -13
- package/docs/interfaces/DotenvExpandOptions.md +4 -4
- package/docs/interfaces/DotenvExpandOutput.md +3 -3
- package/docs/interfaces/DotenvParseInput.md +1 -1
- package/docs/interfaces/DotenvParseOutput.md +1 -1
- package/docs/interfaces/DotenvPopulateInput.md +1 -1
- package/docs/interfaces/EventClientFuncParams.md +5 -5
- package/docs/interfaces/EventServerFuncParams.md +6 -6
- package/docs/interfaces/FewShotPromptTemplateOptions.md +12 -12
- package/docs/interfaces/FuncItem.md +11 -11
- package/docs/interfaces/FuncParam.md +7 -7
- package/docs/interfaces/FuncParams.md +1 -1
- package/docs/interfaces/Funcs.md +1 -1
- package/docs/interfaces/HashAlgoParams.md +4 -4
- package/docs/interfaces/IFileMetaInfo.md +8 -8
- package/docs/interfaces/IReadTextFileChunksOptions.md +11 -11
- package/docs/interfaces/ITruncateToTokenLimitOptions.md +10 -10
- package/docs/interfaces/JsonFilter.md +1 -1
- package/docs/interfaces/ParseObjectArgumentOptions.md +11 -11
- package/docs/interfaces/PromptExampleSelectorOptions.md +3 -3
- package/docs/interfaces/PromptTemplateOptions.md +7 -7
- package/docs/interfaces/RemoteFuncItem.md +13 -13
- package/docs/interfaces/ReplacePlacehoderOptions.md +5 -5
- package/docs/interfaces/ResClientFuncParams.md +3 -3
- package/docs/interfaces/ResServerFuncParams.md +6 -6
- package/docs/interfaces/SanitizeFilenameOptions.md +3 -3
- package/docs/interfaces/SectionStringOptions.md +3 -3
- package/docs/interfaces/SemaphoreOptions.md +7 -7
- package/docs/interfaces/SemaphoreTaskItem.md +5 -5
- package/docs/interfaces/ServerFuncItem.md +14 -14
- package/docs/interfaces/ServerFuncParams.md +3 -3
- package/docs/interfaces/SplitSentenceOptions.md +5 -5
- package/docs/interfaces/StreamCallbacksAndOptions.md +5 -5
- package/docs/interfaces/TaskAbortControllers.md +1 -1
- package/docs/interfaces/TaskPromise.md +2 -2
- package/docs/interfaces/ToolFuncPackage.md +4 -4
- package/docs/type-aliases/AIChatContentPart.md +1 -1
- package/docs/type-aliases/AIChatMessageParam.md +1 -1
- package/docs/type-aliases/AIChatRole.md +1 -1
- package/docs/type-aliases/AIChatToolChoiceParam.md +1 -1
- package/docs/type-aliases/AIMessageType.md +1 -1
- package/docs/type-aliases/AIModelNameRule.md +1 -1
- package/docs/type-aliases/AIModelNameRuleFn.md +1 -1
- package/docs/type-aliases/AIModelNameRules.md +1 -1
- package/docs/type-aliases/AITextGenerationFinishReason.md +1 -1
- package/docs/type-aliases/ActionName.md +1 -1
- package/docs/type-aliases/AsyncTaskId.md +1 -1
- package/docs/type-aliases/BeforeShutdownListener.md +1 -1
- package/docs/type-aliases/EventErrorListenerFn.md +1 -1
- package/docs/type-aliases/EventListenerFn.md +1 -1
- package/docs/type-aliases/FStringPromptTemplateNode.md +1 -1
- package/docs/type-aliases/FuncParamType.md +1 -1
- package/docs/type-aliases/PromptExamples.md +1 -1
- package/docs/type-aliases/PromptTemplateType.md +1 -1
- package/docs/type-aliases/PromptType.md +1 -1
- package/docs/type-aliases/SemaphoreIsReadyFuncType.md +1 -1
- package/docs/type-aliases/TFunc.md +1 -1
- package/docs/variables/AIChatRoles.md +1 -1
- package/docs/variables/AIMessageTypes.md +1 -1
- package/docs/variables/AITextGenerationFinishReasons.md +1 -1
- package/docs/variables/ActionNames.md +1 -1
- package/docs/variables/ClientToolFuncSchema.md +1 -1
- package/docs/variables/DEFAULT_CONFIG_NAME.md +1 -1
- package/docs/variables/DefaultAsyncSemaphoreCapacity.md +1 -1
- package/docs/variables/EventBusName.md +1 -1
- package/docs/variables/EventName.md +1 -1
- package/docs/variables/FilenameReservedRegex.md +1 -1
- package/docs/variables/HFBuiltins.md +1 -1
- package/docs/variables/LLM_TOKENIZER_NAMES.md +1 -1
- package/docs/variables/LLM_TOKENIZER_NAMES_MAP.md +1 -1
- package/docs/variables/PASSING_SCORE.md +1 -1
- package/docs/variables/PromptTemplateTypes.md +1 -1
- package/docs/variables/PromptTypes.md +1 -1
- package/docs/variables/RStreamErrCode.md +1 -1
- package/docs/variables/RemoteToolFuncSchema.md +1 -1
- package/docs/variables/ResponseRStreamErrCode.md +1 -1
- package/docs/variables/SHUTDOWN_SIGNALS.md +1 -1
- package/docs/variables/SSEChannelAlreadyClosedErrCode.md +1 -1
- package/docs/variables/SecondaryCache.md +1 -1
- package/docs/variables/ServerToolFuncSchema.md +1 -1
- package/docs/variables/ToolAsyncCancelableBit.md +1 -1
- package/docs/variables/ToolAsyncMultiTaskBit.md +1 -1
- package/docs/variables/ToolAsyncPriorityBit.md +1 -1
- package/docs/variables/ToolFuncSchema.md +1 -1
- package/docs/variables/WindowsReservedNameRegex.md +1 -1
- package/docs/variables/base32768.md +1 -1
- package/docs/variables/defaultTemplateFormat.md +1 -1
- package/docs/variables/event.md +1 -1
- package/docs/variables/eventClient.md +1 -1
- package/docs/variables/eventServer.md +1 -1
- package/docs/variables/lrucache.md +1 -1
- package/package.json +1 -1
- package/dist/chunk-XLXW6OPN.mjs +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{AIArgProcessor as s,AIChatRoles as a,AIMessageTypes as u,AIStream as i,AITextGenerationFinishReasons as e,AbortError as r,AbortErrorCode as t,ActionNames as n,AlreadyExistsError as d,AlreadyExistsErrorCode as m,AsyncFeatureBits as o,AsyncFeatures as f,BaseError as p,BinarySemaphore as v,CancelableAbility as h,ChoiceArgProcessor as F,ClientToolFuncSchema as H,ClientTools as k,CommonError as l,ConfigFile as I,DEFAULT_CONFIG_NAME as P,DefaultAsyncSemaphoreCapacity as V,EnvPromptTemplate as c,EnvironmentEx as j,ErrorCode as B,EventBusName as E,EventClient as G,EventEmitter as L,EventName as N,EventServer as S,EventToolFunc as T,FStringPromptTemplate as X,FewShotPromptTemplate as g,FilenameReservedRegex as x,GolangPromptTemplate as y,HashAlgorithm as z,HfPromptTemplate as O,IntSet as W,InternalErrorCode as b,Interpreter as q,LLM_TOKENIZER_NAMES as w,LLM_TOKENIZER_NAMES_MAP as A,LRUCache as C,NIL as D,NotFoundError as J,NotFoundErrorCode as K,NotImplementationError as M,NotImplementedErrorCode as Q,ObjectArgsToArgsInfo as R,PASSING_SCORE as U,PromptExampleSelector as Y,PromptTemplate as Z,PromptTemplateTypes as $,PromptTypes as _,RStreamErrCode as ss,RateLimit as as,ReadableStreamError as us,RemoteToolFuncSchema as is,ResClientTools as es,ResServerTools as rs,ResponseRStreamErrCode as ts,SHUTDOWN_SIGNALS as ns,SSEChannel as ds,SSEChannelAlreadyClosedErrCode as ms,SecondaryCache as os,Semaphore as fs,ServerToolFuncSchema as ps,ServerTools as vs,SignalGate as hs,TaskAbortController as Fs,Template as Hs,TemplateArgProcessor as ks,ToolAsyncCancelableBit as ls,ToolAsyncMultiTaskBit as Is,ToolAsyncPriorityBit as Ps,ToolFunc as Vs,ToolFuncSchema as cs,WindowsReservedNameRegex as js,YamlTypeBaseObject as Bs,_lrucache as Es,assignDirs as Gs,backendEventable as Ls,base32768 as Ns,beforeShutdown as Ss,builtins as Ts,canonicalize as Xs,completeSentences as gs,concatText as xs,countLLMTokens as ys,countRegexMatches as zs,createAbilityInjector as Os,createCallbacksTransformer as Ws,createEmptyReadableStream as bs,createEndWithRepetitionDetector as qs,createError as ws,createEventStreamTransformer as As,createHfValueFunc as Cs,createLRUCache as Ds,createYamlObjectTag as Js,dateToText as Ks,decodeCharset as Ms,defaultTemplateFormat as Qs,detectCharset as Rs,encodeLLMTokens as Us,ensureQuoted as Ys,event as Zs,eventClient as $s,eventServer as _s,eventable as sa,expandConfig as aa,expandEnv as ua,expandObjEnv as ia,expandPath as ea,extNameLevel as ra,fileIsExists as ta,filenameReservedRegex as na,filterValidFnScope as da,findIndexNonEmptyFrom as ma,formatISO as oa,formatTextWithSpace as fa,getAllEnumKeys as pa,getConfigFileNames as va,getConfigs as ha,getEnvVairables as Fa,getFileMetaInfo as Ha,getHashAlgoBySize as ka,getKeysPath as la,getLLMTokenizer as Ia,getMultiLevelExtname as Pa,getPackageDir as Va,getRealFilepath as ca,getResponseErrorReadableStream as ja,getXDGConfigs as Ba,hasDirectoryIn as Ea,hash as Ga,hashFile as La,hashStream as Na,initShutdown as Sa,interpolateEnv as Ta,interpolateFString as Xa,interpolateGolangTemplate as ga,isLangUsingSpaces as xa,isListItemString as ya,isModelNameMatched as za,isPunctuationChar as Oa,isQuoted as Wa,isRegExp as ba,isSameString as qa,isSectionString as wa,isSentenceEnding as Aa,isSepLineString as Ca,isStrWrapped as Da,isSubdirectory as Ja,isTitleString as Ka,isValidFilename as Ma,isValidFilepath as Qa,isWebStream as Ra,jsonFilterToWhere as Ua,jsonToMarkdownStr as Ya,loadAIConfig as Za,loadConfig as $a,loadConfigFile as _a,loadFileFromPaths as su,loadTextFromPaths as au,lrucache as uu,makeToolFuncCancelable as iu,matchUrlProtocol as eu,memoize as ru,messagesToText as tu,mimeType as nu,paramsSizeToScaleStr as du,parse as mu,parse2 as ou,parseCommand as fu,parseDateFormat as pu,parseFString as vu,parseISO as hu,parseJsJson as Fu,parseJsJsonSimpleSync as Hu,parseObjectArgInfo as ku,parseObjectArgumentInfos as lu,parseObjectArguments as Iu,parseObjectArgumentsAsArgInfos as Pu,parseYaml as Vu,quoteStr as cu,reControlCharsRegex as ju,readFilenamesRecursiveSync as Bu,readTextFileChunks as Eu,readTextFileChunksEx as Gu,readableFromAsyncIterable as Lu,registerCoreTools as Nu,registerYamlTag as Su,removeMarkdownBold as Tu,removeMarkdownBoldAndItalic as Xu,removeMarkdownItalic as gu,replaceWithPlaceholder as xu,restoreFromPlacehoders as yu,sanitizeFilename as zu,sanitizeFilepath as Ou,saveConfigFile as Wu,scaleStrToParamsSize as bu,shutdown as qu,simplifyObjectArguments as wu,sortedValues as Au,splitChunks as Cu,splitParagraph as Du,splitSentence as Ju,states as Ku,stringify as Mu,stringifyYaml as Qu,stripConsoleColor as Ru,textToDate as Uu,throwError as Yu,toDate as Zu,toDateTime as $u,toRegExp as _u,tokenize as si,trimStartOfStreamHelper as ai,truncTo as ui,truncateByToken as ii,truncateToTokenLimit as ei,truncateToTokenLimitEx as ri,uuid as ti,v1 as ni,v4 as di,v5 as mi,validate as oi,version as fi,wait as pi,wrapEventEmitter as vi,xxhash as hi,xxhash32 as Fi,xxhash64 as Hi,xxhashAsStr as ki}from"./chunk-XLXW6OPN.mjs";import{findPort as li}from"./chunk-VIG2GB47.mjs";export{s as AIArgProcessor,a as AIChatRoles,u as AIMessageTypes,i as AIStream,e as AITextGenerationFinishReasons,r as AbortError,t as AbortErrorCode,n as ActionNames,d as AlreadyExistsError,m as AlreadyExistsErrorCode,o as AsyncFeatureBits,f as AsyncFeatures,p as BaseError,v as BinarySemaphore,h as CancelableAbility,F as ChoiceArgProcessor,H as ClientToolFuncSchema,k as ClientTools,l as CommonError,I as ConfigFile,P as DEFAULT_CONFIG_NAME,V as DefaultAsyncSemaphoreCapacity,c as EnvPromptTemplate,B as ErrorCode,E as EventBusName,G as EventClient,L as EventEmitter,N as EventName,S as EventServer,Ku as EventStates,T as EventToolFunc,X as FStringPromptTemplate,g as FewShotPromptTemplate,x as FilenameReservedRegex,y as GolangPromptTemplate,Ts as HFBuiltins,j as HFEnvironment,q as HFInterpreter,Hs as HFTemplate,z as HashAlgorithm,O as HfPromptTemplate,W as IntSet,b as InternalErrorCode,w as LLM_TOKENIZER_NAMES,A as LLM_TOKENIZER_NAMES_MAP,C as LRUCache,J as NotFoundError,K as NotFoundErrorCode,M as NotImplementationError,Q as NotImplementedErrorCode,R as ObjectArgsToArgsInfo,U as PASSING_SCORE,Y as PromptExampleSelector,Z as PromptTemplate,$ as PromptTemplateTypes,_ as PromptTypes,ss as RStreamErrCode,as as RateLimit,us as ReadableStreamError,is as RemoteToolFuncSchema,es as ResClientTools,rs as ResServerTools,ts as ResponseRStreamErrCode,ns as SHUTDOWN_SIGNALS,ds as SSEChannel,ms as SSEChannelAlreadyClosedErrCode,os as SecondaryCache,fs as Semaphore,ps as ServerToolFuncSchema,vs as ServerTools,hs as SignalGate,Fs as TaskAbortController,ks as TemplateArgProcessor,ls as ToolAsyncCancelableBit,Is as ToolAsyncMultiTaskBit,Ps as ToolAsyncPriorityBit,Vs as ToolFunc,cs as ToolFuncSchema,js as WindowsReservedNameRegex,Bs as YamlTypeBaseObject,Es as _lrucache,Gs as assignDirs,Ls as backendEventable,Ns as base32768,Ss as beforeShutdown,Xs as canonicalize,gs as completeSentences,xs as concatText,ys as countLLMTokens,zs as countRegexMatches,Os as createAbilityInjector,Ws as createCallbacksTransformer,bs as createEmptyReadableStream,qs as createEndWithRepetitionDetector,ws as createError,As as createEventStreamTransformer,Cs as createHfValueFunc,Ds as createLRUCache,Js as createYamlObjectTag,Ks as dateToText,Ms as decodeCharset,Qs as defaultTemplateFormat,Rs as detectCharset,Us as encodeLLMTokens,Ys as ensureQuoted,Zs as event,$s as eventClient,_s as eventServer,sa as eventable,aa as expandConfig,ua as expandEnv,ia as expandObjEnv,ea as expandPath,ra as extNameLevel,ta as fileIsExists,na as filenameReservedRegex,da as filterValidFnScope,ma as findIndexNonEmptyFrom,li as findPort,oa as formatISO,fa as formatTextWithSpace,pa as getAllEnumKeys,va as getConfigFileNames,ha as getConfigs,Fa as getEnvVairables,Ha as getFileMetaInfo,ka as getHashAlgoBySize,la as getKeysPath,Ia as getLLMTokenizer,Pa as getMultiLevelExtname,Va as getPackageDir,ca as getRealFilepath,ja as getResponseErrorReadableStream,Ba as getXDGConfigs,Ea as hasDirectoryIn,Ga as hash,La as hashFile,Na as hashStream,mu as hfParse,si as hfTokenize,Sa as initShutdown,Ta as interpolateEnv,Xa as interpolateFString,ga as interpolateGolangTemplate,xa as isLangUsingSpaces,ya as isListItemString,za as isModelNameMatched,Oa as isPunctuationChar,Wa as isQuoted,ba as isRegExp,qa as isSameString,wa as isSectionString,Aa as isSentenceEnding,Ca as isSepLineString,Da as isStrWrapped,Ja as isSubdirectory,Ka as isTitleString,Ma as isValidFilename,Qa as isValidFilepath,Ra as isWebStream,Ua as jsonFilterToWhere,Ya as jsonToMarkdownStr,Za as loadAIConfig,$a as loadConfig,_a as loadConfigFile,su as loadFileFromPaths,au as loadTextFromPaths,uu as lrucache,iu as makeToolFuncCancelable,eu as matchUrlProtocol,ru as memoize,tu as messagesToText,nu as mimeType,du as paramsSizeToScaleStr,fu as parseCommand,pu as parseDateFormat,vu as parseFString,hu as parseISO,Fu as parseJsJson,Hu as parseJsJsonSimpleSync,ku as parseObjectArgInfo,lu as parseObjectArgumentInfos,Iu as parseObjectArguments,Pu as parseObjectArgumentsAsArgInfos,Vu as parseYaml,cu as quoteStr,ju as reControlCharsRegex,Bu as readFilenamesRecursiveSync,Eu as readTextFileChunks,Gu as readTextFileChunksEx,Lu as readableFromAsyncIterable,Nu as registerCoreTools,Su as registerYamlTag,Tu as removeMarkdownBold,Xu as removeMarkdownBoldAndItalic,gu as removeMarkdownItalic,xu as replaceWithPlaceholder,yu as restoreFromPlacehoders,zu as sanitizeFilename,Ou as sanitizeFilepath,Wu as saveConfigFile,bu as scaleStrToParamsSize,qu as shutdown,wu as simplifyObjectArguments,Au as sortedValues,Cu as splitChunks,Du as splitParagraph,Ju as splitSentence,Qu as stringifyYaml,Ru as stripConsoleColor,Uu as textToDate,Yu as throwError,Zu as toDate,$u as toDateTime,_u as toRegExp,ai as trimStartOfStreamHelper,ui as truncTo,ii as truncateByToken,ei as truncateToTokenLimit,ri as truncateToTokenLimitEx,ti as uuid,D as uuidNIL,ou as uuidParse,Mu as uuidStringify,oi as uuidValidate,fi as uuidVersion,ni as uuidv1,di as uuidv4,mi as uuidv5,pi as wait,vi as wrapEventEmitter,hi as xxhash,Fi as xxhash32,Hi as xxhash64,ki as xxhashAsStr};
|
|
1
|
+
import{AIArgProcessor as s,AIChatRoles as a,AIMessageTypes as u,AIStream as i,AITextGenerationFinishReasons as e,AbortError as r,AbortErrorCode as t,ActionNames as n,AlreadyExistsError as d,AlreadyExistsErrorCode as m,AsyncFeatureBits as o,AsyncFeatures as f,BaseError as p,BinarySemaphore as v,CancelableAbility as F,ChoiceArgProcessor as h,ClientToolFuncSchema as H,ClientTools as V,CommonError as k,ConfigFile as l,DEFAULT_CONFIG_NAME as B,DefaultAsyncSemaphoreCapacity as G,EnvPromptTemplate as I,EnvironmentEx as c,ErrorCode as j,EventBusName as E,EventClient as L,EventEmitter as P,EventName as S,EventServer as T,EventToolFunc as g,FStringPromptTemplate as x,FewShotPromptTemplate as y,FilenameReservedRegex as z,GolangPromptTemplate as N,HashAlgorithm as Q,HfPromptTemplate as Y,IntSet as b,InternalErrorCode as q,Interpreter as w,LLM_TOKENIZER_NAMES as A,LLM_TOKENIZER_NAMES_MAP as C,LRUCache as D,NIL as J,NotFoundError as K,NotFoundErrorCode as M,NotImplementationError as O,NotImplementedErrorCode as R,ObjectArgsToArgsInfo as U,PASSING_SCORE as W,PromptExampleSelector as X,PromptTemplate as Z,PromptTemplateTypes as $,PromptTypes as _,RStreamErrCode as ss,RateLimit as as,ReadableStreamError as us,RemoteToolFuncSchema as is,ResClientTools as es,ResServerTools as rs,ResponseRStreamErrCode as ts,SHUTDOWN_SIGNALS as ns,SSEChannel as ds,SSEChannelAlreadyClosedErrCode as ms,SecondaryCache as os,Semaphore as fs,ServerToolFuncSchema as ps,ServerTools as vs,SignalGate as Fs,TaskAbortController as hs,Template as Hs,TemplateArgProcessor as Vs,ToolAsyncCancelableBit as ks,ToolAsyncMultiTaskBit as ls,ToolAsyncPriorityBit as Bs,ToolFunc as Gs,ToolFuncSchema as Is,WindowsReservedNameRegex as cs,YamlTypeBaseObject as js,_lrucache as Es,assignDirs as Ls,backendEventable as Ps,base32768 as Ss,beforeShutdown as Ts,builtins as gs,canonicalize as xs,completeSentences as ys,concatText as zs,countLLMTokens as Ns,countRegexMatches as Qs,createAbilityInjector as Ys,createCallbacksTransformer as bs,createEmptyReadableStream as qs,createEndWithRepetitionDetector as ws,createError as As,createEventStreamTransformer as Cs,createHfValueFunc as Ds,createLRUCache as Js,createYamlObjectTag as Ks,dateToText as Ms,decodeCharset as Os,defaultTemplateFormat as Rs,detectCharset as Us,encodeLLMTokens as Ws,ensureQuoted as Xs,event as Zs,eventClient as $s,eventServer as _s,eventable as sa,expandConfig as aa,expandEnv as ua,expandObjEnv as ia,expandPath as ea,extNameLevel as ra,fileIsExists as ta,filenameReservedRegex as na,filterValidFnScope as da,findIndexNonEmptyFrom as ma,formatISO as oa,formatTextWithSpace as fa,getAllEnumKeys as pa,getConfigFileNames as va,getConfigs as Fa,getEnvVairables as ha,getFileMetaInfo as Ha,getHashAlgoBySize as Va,getKeysPath as ka,getLLMTokenizer as la,getMultiLevelExtname as Ba,getPackageDir as Ga,getRealFilepath as Ia,getResponseErrorReadableStream as ca,getXDGConfigs as ja,hasDirectoryIn as Ea,hash as La,hashFile as Pa,hashStream as Sa,initShutdown as Ta,interpolateEnv as ga,interpolateFString as xa,interpolateGolangTemplate as ya,isLangUsingSpaces as za,isListItemString as Na,isModelNameMatched as Qa,isPunctuationChar as Ya,isQuoted as ba,isRegExp as qa,isSameString as wa,isSectionString as Aa,isSentenceEnding as Ca,isSepLineString as Da,isStrWrapped as Ja,isSubdirectory as Ka,isTitleString as Ma,isValidFilename as Oa,isValidFilepath as Ra,isWebStream as Ua,jsonFilterToWhere as Wa,jsonToMarkdownStr as Xa,loadAIConfig as Za,loadConfig as $a,loadConfigFile as _a,loadFileFromPaths as su,loadTextFromPaths as au,lrucache as uu,makeToolFuncCancelable as iu,matchUrlProtocol as eu,memoize as ru,messagesToText as tu,mimeType as nu,paramsSizeToScaleStr as du,parse as mu,parse2 as ou,parseCommand as fu,parseDateFormat as pu,parseFString as vu,parseISO as Fu,parseJsJson as hu,parseJsJsonSimpleSync as Hu,parseObjectArgInfo as Vu,parseObjectArgumentInfos as ku,parseObjectArguments as lu,parseObjectArgumentsAsArgInfos as Bu,parseYaml as Gu,quoteStr as Iu,reControlCharsRegex as cu,readFilenamesRecursiveSync as ju,readTextFileChunks as Eu,readTextFileChunksEx as Lu,readableFromAsyncIterable as Pu,registerCoreTools as Su,registerYamlTag as Tu,removeMarkdownBold as gu,removeMarkdownBoldAndItalic as xu,removeMarkdownItalic as yu,replaceWithPlaceholder as zu,restoreFromPlacehoders as Nu,sanitizeFilename as Qu,sanitizeFilepath as Yu,saveConfigFile as bu,scaleStrToParamsSize as qu,shutdown as wu,simplifyObjectArguments as Au,sortedValues as Cu,splitChunks as Du,splitParagraph as Ju,splitSentence as Ku,states as Mu,stringify as Ou,stringifyYaml as Ru,stripConsoleColor as Uu,textToDate as Wu,throwError as Xu,toDate as Zu,toDateTime as $u,toRegExp as _u,tokenize as si,trimStartOfStreamHelper as ai,truncTo as ui,truncateByToken as ii,truncateToTokenLimit as ei,truncateToTokenLimitEx as ri,uuid as ti,v1 as ni,v4 as di,v5 as mi,validate as oi,version as fi,wait as pi,wrapEventEmitter as vi,xxhash as Fi,xxhash32 as hi,xxhash64 as Hi,xxhashAsStr as Vi}from"./chunk-YVFGQB4L.mjs";import{findPort as ki}from"./chunk-VIG2GB47.mjs";export{s as AIArgProcessor,a as AIChatRoles,u as AIMessageTypes,i as AIStream,e as AITextGenerationFinishReasons,r as AbortError,t as AbortErrorCode,n as ActionNames,d as AlreadyExistsError,m as AlreadyExistsErrorCode,o as AsyncFeatureBits,f as AsyncFeatures,p as BaseError,v as BinarySemaphore,F as CancelableAbility,h as ChoiceArgProcessor,H as ClientToolFuncSchema,V as ClientTools,k as CommonError,l as ConfigFile,B as DEFAULT_CONFIG_NAME,G as DefaultAsyncSemaphoreCapacity,I as EnvPromptTemplate,j as ErrorCode,E as EventBusName,L as EventClient,P as EventEmitter,S as EventName,T as EventServer,Mu as EventStates,g as EventToolFunc,x as FStringPromptTemplate,y as FewShotPromptTemplate,z as FilenameReservedRegex,N as GolangPromptTemplate,gs as HFBuiltins,c as HFEnvironment,w as HFInterpreter,Hs as HFTemplate,Q as HashAlgorithm,Y as HfPromptTemplate,b as IntSet,q as InternalErrorCode,A as LLM_TOKENIZER_NAMES,C as LLM_TOKENIZER_NAMES_MAP,D as LRUCache,K as NotFoundError,M as NotFoundErrorCode,O as NotImplementationError,R as NotImplementedErrorCode,U as ObjectArgsToArgsInfo,W as PASSING_SCORE,X as PromptExampleSelector,Z as PromptTemplate,$ as PromptTemplateTypes,_ as PromptTypes,ss as RStreamErrCode,as as RateLimit,us as ReadableStreamError,is as RemoteToolFuncSchema,es as ResClientTools,rs as ResServerTools,ts as ResponseRStreamErrCode,ns as SHUTDOWN_SIGNALS,ds as SSEChannel,ms as SSEChannelAlreadyClosedErrCode,os as SecondaryCache,fs as Semaphore,ps as ServerToolFuncSchema,vs as ServerTools,Fs as SignalGate,hs as TaskAbortController,Vs as TemplateArgProcessor,ks as ToolAsyncCancelableBit,ls as ToolAsyncMultiTaskBit,Bs as ToolAsyncPriorityBit,Gs as ToolFunc,Is as ToolFuncSchema,cs as WindowsReservedNameRegex,js as YamlTypeBaseObject,Es as _lrucache,Ls as assignDirs,Ps as backendEventable,Ss as base32768,Ts as beforeShutdown,xs as canonicalize,ys as completeSentences,zs as concatText,Ns as countLLMTokens,Qs as countRegexMatches,Ys as createAbilityInjector,bs as createCallbacksTransformer,qs as createEmptyReadableStream,ws as createEndWithRepetitionDetector,As as createError,Cs as createEventStreamTransformer,Ds as createHfValueFunc,Js as createLRUCache,Ks as createYamlObjectTag,Ms as dateToText,Os as decodeCharset,Rs as defaultTemplateFormat,Us as detectCharset,Ws as encodeLLMTokens,Xs as ensureQuoted,Zs as event,$s as eventClient,_s as eventServer,sa as eventable,aa as expandConfig,ua as expandEnv,ia as expandObjEnv,ea as expandPath,ra as extNameLevel,ta as fileIsExists,na as filenameReservedRegex,da as filterValidFnScope,ma as findIndexNonEmptyFrom,ki as findPort,oa as formatISO,fa as formatTextWithSpace,pa as getAllEnumKeys,va as getConfigFileNames,Fa as getConfigs,ha as getEnvVairables,Ha as getFileMetaInfo,Va as getHashAlgoBySize,ka as getKeysPath,la as getLLMTokenizer,Ba as getMultiLevelExtname,Ga as getPackageDir,Ia as getRealFilepath,ca as getResponseErrorReadableStream,ja as getXDGConfigs,Ea as hasDirectoryIn,La as hash,Pa as hashFile,Sa as hashStream,mu as hfParse,si as hfTokenize,Ta as initShutdown,ga as interpolateEnv,xa as interpolateFString,ya as interpolateGolangTemplate,za as isLangUsingSpaces,Na as isListItemString,Qa as isModelNameMatched,Ya as isPunctuationChar,ba as isQuoted,qa as isRegExp,wa as isSameString,Aa as isSectionString,Ca as isSentenceEnding,Da as isSepLineString,Ja as isStrWrapped,Ka as isSubdirectory,Ma as isTitleString,Oa as isValidFilename,Ra as isValidFilepath,Ua as isWebStream,Wa as jsonFilterToWhere,Xa as jsonToMarkdownStr,Za as loadAIConfig,$a as loadConfig,_a as loadConfigFile,su as loadFileFromPaths,au as loadTextFromPaths,uu as lrucache,iu as makeToolFuncCancelable,eu as matchUrlProtocol,ru as memoize,tu as messagesToText,nu as mimeType,du as paramsSizeToScaleStr,fu as parseCommand,pu as parseDateFormat,vu as parseFString,Fu as parseISO,hu as parseJsJson,Hu as parseJsJsonSimpleSync,Vu as parseObjectArgInfo,ku as parseObjectArgumentInfos,lu as parseObjectArguments,Bu as parseObjectArgumentsAsArgInfos,Gu as parseYaml,Iu as quoteStr,cu as reControlCharsRegex,ju as readFilenamesRecursiveSync,Eu as readTextFileChunks,Lu as readTextFileChunksEx,Pu as readableFromAsyncIterable,Su as registerCoreTools,Tu as registerYamlTag,gu as removeMarkdownBold,xu as removeMarkdownBoldAndItalic,yu as removeMarkdownItalic,zu as replaceWithPlaceholder,Nu as restoreFromPlacehoders,Qu as sanitizeFilename,Yu as sanitizeFilepath,bu as saveConfigFile,qu as scaleStrToParamsSize,wu as shutdown,Au as simplifyObjectArguments,Cu as sortedValues,Du as splitChunks,Ju as splitParagraph,Ku as splitSentence,Ru as stringifyYaml,Uu as stripConsoleColor,Wu as textToDate,Xu as throwError,Zu as toDate,$u as toDateTime,_u as toRegExp,ai as trimStartOfStreamHelper,ui as truncTo,ii as truncateByToken,ei as truncateToTokenLimit,ri as truncateToTokenLimitEx,ti as uuid,J as uuidNIL,ou as uuidParse,Ou as uuidStringify,oi as uuidValidate,fi as uuidVersion,ni as uuidv1,di as uuidv4,mi as uuidv5,pi as wait,vi as wrapEventEmitter,Fi as xxhash,hi as xxhash32,Hi as xxhash64,Vi as xxhashAsStr};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: BinarySemaphore
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:88](https://github.com/isdk/ai-tool.js/blob/
|
|
9
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:88](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L88)
|
|
10
10
|
|
|
11
11
|
A binary semaphore implementation for managing concurrency in asynchronous operations.
|
|
12
12
|
Unlike a general semaphore, a binary semaphore allows only one caller to acquire the semaphore at a time.
|
|
@@ -47,7 +47,7 @@ const data = await Promise.all(array.map(fetchData));
|
|
|
47
47
|
|
|
48
48
|
> **new BinarySemaphore**(`options`): [`BinarySemaphore`](BinarySemaphore.md)
|
|
49
49
|
|
|
50
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:145](https://github.com/isdk/ai-tool.js/blob/
|
|
50
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:145](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L145)
|
|
51
51
|
|
|
52
52
|
Creates a binary semaphore object for managing concurrency in asynchronous operations.
|
|
53
53
|
|
|
@@ -67,7 +67,7 @@ Creates a binary semaphore object for managing concurrency in asynchronous opera
|
|
|
67
67
|
|
|
68
68
|
> `protected` **\_activeCount**: `number`
|
|
69
69
|
|
|
70
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:97](https://github.com/isdk/ai-tool.js/blob/
|
|
70
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:97](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L97)
|
|
71
71
|
|
|
72
72
|
***
|
|
73
73
|
|
|
@@ -75,7 +75,7 @@ Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:97](https://github.co
|
|
|
75
75
|
|
|
76
76
|
> `protected` **emitter**: [`EventEmitter`](EventEmitter.md)
|
|
77
77
|
|
|
78
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:91](https://github.com/isdk/ai-tool.js/blob/
|
|
78
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:91](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L91)
|
|
79
79
|
|
|
80
80
|
***
|
|
81
81
|
|
|
@@ -83,7 +83,7 @@ Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:91](https://github.co
|
|
|
83
83
|
|
|
84
84
|
> `protected` **free**: `any`
|
|
85
85
|
|
|
86
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:90](https://github.com/isdk/ai-tool.js/blob/
|
|
86
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:90](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L90)
|
|
87
87
|
|
|
88
88
|
***
|
|
89
89
|
|
|
@@ -91,7 +91,7 @@ Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:90](https://github.co
|
|
|
91
91
|
|
|
92
92
|
> `protected` **initTokenFn**: (`token`?) => `void`
|
|
93
93
|
|
|
94
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:95](https://github.com/isdk/ai-tool.js/blob/
|
|
94
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:95](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L95)
|
|
95
95
|
|
|
96
96
|
#### Parameters
|
|
97
97
|
|
|
@@ -109,7 +109,7 @@ Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:95](https://github.co
|
|
|
109
109
|
|
|
110
110
|
> `protected` **paused**: `boolean`
|
|
111
111
|
|
|
112
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:96](https://github.com/isdk/ai-tool.js/blob/
|
|
112
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:96](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L96)
|
|
113
113
|
|
|
114
114
|
***
|
|
115
115
|
|
|
@@ -117,7 +117,7 @@ Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:96](https://github.co
|
|
|
117
117
|
|
|
118
118
|
> `protected` `optional` **pauseFn**: () => `void`
|
|
119
119
|
|
|
120
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:93](https://github.com/isdk/ai-tool.js/blob/
|
|
120
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:93](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L93)
|
|
121
121
|
|
|
122
122
|
#### Returns
|
|
123
123
|
|
|
@@ -129,7 +129,7 @@ Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:93](https://github.co
|
|
|
129
129
|
|
|
130
130
|
> `protected` `optional` **resumeFn**: () => `void`
|
|
131
131
|
|
|
132
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:94](https://github.com/isdk/ai-tool.js/blob/
|
|
132
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:94](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L94)
|
|
133
133
|
|
|
134
134
|
#### Returns
|
|
135
135
|
|
|
@@ -141,7 +141,7 @@ Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:94](https://github.co
|
|
|
141
141
|
|
|
142
142
|
> `protected` **useDefaultTokens**: `boolean`
|
|
143
143
|
|
|
144
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:92](https://github.com/isdk/ai-tool.js/blob/
|
|
144
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:92](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L92)
|
|
145
145
|
|
|
146
146
|
***
|
|
147
147
|
|
|
@@ -149,7 +149,7 @@ Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:92](https://github.co
|
|
|
149
149
|
|
|
150
150
|
> `readonly` **waiting**: `Deque`\<`undefined` \| [`SemaphoreTaskItem`](../interfaces/SemaphoreTaskItem.md)\>
|
|
151
151
|
|
|
152
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:89](https://github.com/isdk/ai-tool.js/blob/
|
|
152
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:89](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L89)
|
|
153
153
|
|
|
154
154
|
## Accessors
|
|
155
155
|
|
|
@@ -159,7 +159,7 @@ Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:89](https://github.co
|
|
|
159
159
|
|
|
160
160
|
> **get** **activeCount**(): `number`
|
|
161
161
|
|
|
162
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:318](https://github.com/isdk/ai-tool.js/blob/
|
|
162
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:318](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L318)
|
|
163
163
|
|
|
164
164
|
Get the total count of all active operations.
|
|
165
165
|
|
|
@@ -181,7 +181,7 @@ The total count of active operations, including both waiting and ongoing tasks.
|
|
|
181
181
|
|
|
182
182
|
> **get** **pendingCount**(): `number`
|
|
183
183
|
|
|
184
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:327](https://github.com/isdk/ai-tool.js/blob/
|
|
184
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:327](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L327)
|
|
185
185
|
|
|
186
186
|
Get the number of callers waiting on the semaphore, i.e. the number of pending promises.
|
|
187
187
|
|
|
@@ -197,7 +197,7 @@ The number of waiters in the waiting list.
|
|
|
197
197
|
|
|
198
198
|
> **\_dispatchTask**(`task`, `options`?): `void`
|
|
199
199
|
|
|
200
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:212](https://github.com/isdk/ai-tool.js/blob/
|
|
200
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:212](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L212)
|
|
201
201
|
|
|
202
202
|
#### Parameters
|
|
203
203
|
|
|
@@ -219,7 +219,7 @@ Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:212](https://github.c
|
|
|
219
219
|
|
|
220
220
|
> **\_newReleaser**(`options`?): [`BinarySemaphoreReleaserFunc`](../interfaces/BinarySemaphoreReleaserFunc.md)
|
|
221
221
|
|
|
222
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:199](https://github.com/isdk/ai-tool.js/blob/
|
|
222
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:199](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L199)
|
|
223
223
|
|
|
224
224
|
#### Parameters
|
|
225
225
|
|
|
@@ -237,7 +237,7 @@ Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:199](https://github.c
|
|
|
237
237
|
|
|
238
238
|
> **abort**(`reason`?): `void`
|
|
239
239
|
|
|
240
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:301](https://github.com/isdk/ai-tool.js/blob/
|
|
240
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:301](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L301)
|
|
241
241
|
|
|
242
242
|
#### Parameters
|
|
243
243
|
|
|
@@ -255,7 +255,7 @@ Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:301](https://github.c
|
|
|
255
255
|
|
|
256
256
|
> **acquire**(`options`?): `Promise`\<[`BinarySemaphoreReleaserFunc`](../interfaces/BinarySemaphoreReleaserFunc.md)\>
|
|
257
257
|
|
|
258
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:243](https://github.com/isdk/ai-tool.js/blob/
|
|
258
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:243](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L243)
|
|
259
259
|
|
|
260
260
|
Acquire a token from the semaphore, thus decrement the number of available execution slots. If initFn is not used then the return value of the function can be discarded.
|
|
261
261
|
|
|
@@ -277,7 +277,7 @@ A promise that resolves to a release function when a token is acquired. If the s
|
|
|
277
277
|
|
|
278
278
|
> **drain**(): `Promise`\<`any`[]\>
|
|
279
279
|
|
|
280
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:296](https://github.com/isdk/ai-tool.js/blob/
|
|
280
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:296](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L296)
|
|
281
281
|
|
|
282
282
|
Drains the semaphore and returns all the initialized tokens in an array. Draining is an ideal way to ensure there are no pending async tasks, for example before a process will terminate.
|
|
283
283
|
|
|
@@ -291,7 +291,7 @@ Drains the semaphore and returns all the initialized tokens in an array. Drainin
|
|
|
291
291
|
|
|
292
292
|
> **init**(`options`): `void`
|
|
293
293
|
|
|
294
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:193](https://github.com/isdk/ai-tool.js/blob/
|
|
294
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:193](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L193)
|
|
295
295
|
|
|
296
296
|
#### Parameters
|
|
297
297
|
|
|
@@ -309,7 +309,7 @@ Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:193](https://github.c
|
|
|
309
309
|
|
|
310
310
|
> **initFree**(`options`?): `void`
|
|
311
311
|
|
|
312
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:173](https://github.com/isdk/ai-tool.js/blob/
|
|
312
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:173](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L173)
|
|
313
313
|
|
|
314
314
|
#### Parameters
|
|
315
315
|
|
|
@@ -327,7 +327,7 @@ Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:173](https://github.c
|
|
|
327
327
|
|
|
328
328
|
> **lock**(`options`?): `any`
|
|
329
329
|
|
|
330
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:217](https://github.com/isdk/ai-tool.js/blob/
|
|
330
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:217](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L217)
|
|
331
331
|
|
|
332
332
|
#### Parameters
|
|
333
333
|
|
|
@@ -345,7 +345,7 @@ Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:217](https://github.c
|
|
|
345
345
|
|
|
346
346
|
> **onReleased**(`options`?): `void`
|
|
347
347
|
|
|
348
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:177](https://github.com/isdk/ai-tool.js/blob/
|
|
348
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:177](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L177)
|
|
349
349
|
|
|
350
350
|
#### Parameters
|
|
351
351
|
|
|
@@ -363,7 +363,7 @@ Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:177](https://github.c
|
|
|
363
363
|
|
|
364
364
|
> **release**(`options`?): `void`
|
|
365
365
|
|
|
366
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:288](https://github.com/isdk/ai-tool.js/blob/
|
|
366
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:288](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L288)
|
|
367
367
|
|
|
368
368
|
Releases the semaphore, incrementing the number of free execution slots. If there are tasks in the waiting queue, the next task will be dispatched.
|
|
369
369
|
|
|
@@ -383,7 +383,7 @@ Releases the semaphore, incrementing the number of free execution slots. If ther
|
|
|
383
383
|
|
|
384
384
|
> **tryAcquire**(`options`?): `any`
|
|
385
385
|
|
|
386
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:234](https://github.com/isdk/ai-tool.js/blob/
|
|
386
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:234](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L234)
|
|
387
387
|
|
|
388
388
|
Attempt to acquire a token from the semaphore, if one is available immediately. Otherwise, return undefined.
|
|
389
389
|
|
|
@@ -405,7 +405,7 @@ Returns a token if the semaphore is not full; otherwise, returns `undefined`.
|
|
|
405
405
|
|
|
406
406
|
> **unlock**(`token`?): `void`
|
|
407
407
|
|
|
408
|
-
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:225](https://github.com/isdk/ai-tool.js/blob/
|
|
408
|
+
Defined in: [packages/ai-tool/src/utils/async-semaphore.ts:225](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/async-semaphore.ts#L225)
|
|
409
409
|
|
|
410
410
|
#### Parameters
|
|
411
411
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: CancelableAbility
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:74](https://github.com/isdk/ai-tool.js/blob/
|
|
9
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:74](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L74)
|
|
10
10
|
|
|
11
11
|
## Indexable
|
|
12
12
|
|
|
@@ -28,7 +28,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:74](https://github
|
|
|
28
28
|
|
|
29
29
|
> **\_\_task\_aborter**: `undefined` \| [`TaskAbortController`](TaskAbortController.md) \| [`TaskAbortControllers`](../interfaces/TaskAbortControllers.md)
|
|
30
30
|
|
|
31
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:86](https://github.com/isdk/ai-tool.js/blob/
|
|
31
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:86](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L86)
|
|
32
32
|
|
|
33
33
|
***
|
|
34
34
|
|
|
@@ -36,7 +36,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:86](https://github
|
|
|
36
36
|
|
|
37
37
|
> **\_\_task\_semaphore**: `undefined` \| [`Semaphore`](Semaphore.md)
|
|
38
38
|
|
|
39
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:87](https://github.com/isdk/ai-tool.js/blob/
|
|
39
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:87](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L87)
|
|
40
40
|
|
|
41
41
|
***
|
|
42
42
|
|
|
@@ -44,7 +44,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:87](https://github
|
|
|
44
44
|
|
|
45
45
|
> `optional` **\_asyncFeatures**: `number`
|
|
46
46
|
|
|
47
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:75](https://github.com/isdk/ai-tool.js/blob/
|
|
47
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:75](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L75)
|
|
48
48
|
|
|
49
49
|
***
|
|
50
50
|
|
|
@@ -52,7 +52,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:75](https://github
|
|
|
52
52
|
|
|
53
53
|
> `optional` **\_isReadyFn**: [`SemaphoreIsReadyFuncType`](../type-aliases/SemaphoreIsReadyFuncType.md)
|
|
54
54
|
|
|
55
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:77](https://github.com/isdk/ai-tool.js/blob/
|
|
55
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:77](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L77)
|
|
56
56
|
|
|
57
57
|
***
|
|
58
58
|
|
|
@@ -60,7 +60,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:77](https://github
|
|
|
60
60
|
|
|
61
61
|
> **\_maxTaskConcurrency**: `undefined` \| `number`
|
|
62
62
|
|
|
63
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:76](https://github.com/isdk/ai-tool.js/blob/
|
|
63
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:76](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L76)
|
|
64
64
|
|
|
65
65
|
***
|
|
66
66
|
|
|
@@ -68,7 +68,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:76](https://github
|
|
|
68
68
|
|
|
69
69
|
> **cleanMultiTaskAborter**: (`id`, `aborters`) => `void`
|
|
70
70
|
|
|
71
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:84](https://github.com/isdk/ai-tool.js/blob/
|
|
71
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:84](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L84)
|
|
72
72
|
|
|
73
73
|
#### Parameters
|
|
74
74
|
|
|
@@ -90,7 +90,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:84](https://github
|
|
|
90
90
|
|
|
91
91
|
> **generateAsyncTaskId**: (`taskId`?, `aborters`?) => [`AsyncTaskId`](../type-aliases/AsyncTaskId.md)
|
|
92
92
|
|
|
93
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:83](https://github.com/isdk/ai-tool.js/blob/
|
|
93
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:83](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L83)
|
|
94
94
|
|
|
95
95
|
#### Parameters
|
|
96
96
|
|
|
@@ -114,7 +114,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:83](https://github
|
|
|
114
114
|
|
|
115
115
|
> **get** **maxTaskConcurrency**(): `undefined` \| `number`
|
|
116
116
|
|
|
117
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:89](https://github.com/isdk/ai-tool.js/blob/
|
|
117
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:89](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L89)
|
|
118
118
|
|
|
119
119
|
##### Returns
|
|
120
120
|
|
|
@@ -128,7 +128,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:89](https://github
|
|
|
128
128
|
|
|
129
129
|
> **get** **semaphore**(): `undefined` \| [`Semaphore`](Semaphore.md)
|
|
130
130
|
|
|
131
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:93](https://github.com/isdk/ai-tool.js/blob/
|
|
131
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:93](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L93)
|
|
132
132
|
|
|
133
133
|
##### Returns
|
|
134
134
|
|
|
@@ -140,7 +140,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:93](https://github
|
|
|
140
140
|
|
|
141
141
|
> **\_cleanMultiTaskAborter**(`id`, `aborters`): `void`
|
|
142
142
|
|
|
143
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:273](https://github.com/isdk/ai-tool.js/blob/
|
|
143
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:273](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L273)
|
|
144
144
|
|
|
145
145
|
#### Parameters
|
|
146
146
|
|
|
@@ -162,7 +162,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:273](https://githu
|
|
|
162
162
|
|
|
163
163
|
> **\_generateAsyncTaskId**(`taskId`?, `aborters`?): [`AsyncTaskId`](../type-aliases/AsyncTaskId.md)
|
|
164
164
|
|
|
165
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:173](https://github.com/isdk/ai-tool.js/blob/
|
|
165
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:173](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L173)
|
|
166
166
|
|
|
167
167
|
#### Parameters
|
|
168
168
|
|
|
@@ -184,7 +184,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:173](https://githu
|
|
|
184
184
|
|
|
185
185
|
> **$cleanMultiTaskAborter**(`id`, `aborters`): `void`
|
|
186
186
|
|
|
187
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:253](https://github.com/isdk/ai-tool.js/blob/
|
|
187
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:253](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L253)
|
|
188
188
|
|
|
189
189
|
#### Parameters
|
|
190
190
|
|
|
@@ -206,7 +206,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:253](https://githu
|
|
|
206
206
|
|
|
207
207
|
> **$generateAsyncTaskId**(`taskId`?, `aborters`?): `undefined` \| [`AsyncTaskId`](../type-aliases/AsyncTaskId.md)
|
|
208
208
|
|
|
209
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:186](https://github.com/isdk/ai-tool.js/blob/
|
|
209
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:186](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L186)
|
|
210
210
|
|
|
211
211
|
#### Parameters
|
|
212
212
|
|
|
@@ -228,7 +228,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:186](https://githu
|
|
|
228
228
|
|
|
229
229
|
> **abort**(`reason`?, `data`?): `void`
|
|
230
230
|
|
|
231
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:330](https://github.com/isdk/ai-tool.js/blob/
|
|
231
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:330](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L330)
|
|
232
232
|
|
|
233
233
|
#### Parameters
|
|
234
234
|
|
|
@@ -250,7 +250,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:330](https://githu
|
|
|
250
250
|
|
|
251
251
|
> **cleanTaskAborter**(`aborter`): `void`
|
|
252
252
|
|
|
253
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:263](https://github.com/isdk/ai-tool.js/blob/
|
|
253
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:263](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L263)
|
|
254
254
|
|
|
255
255
|
#### Parameters
|
|
256
256
|
|
|
@@ -268,7 +268,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:263](https://githu
|
|
|
268
268
|
|
|
269
269
|
> **createAborter**(`params`?, `taskId`?, `raiseError`?): [`TaskAbortController`](TaskAbortController.md)
|
|
270
270
|
|
|
271
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:197](https://github.com/isdk/ai-tool.js/blob/
|
|
271
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:197](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L197)
|
|
272
272
|
|
|
273
273
|
#### Parameters
|
|
274
274
|
|
|
@@ -294,7 +294,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:197](https://githu
|
|
|
294
294
|
|
|
295
295
|
> **createTaskPromise**\<`Output`\>(`runTask`, `params`, `options`?): [`TaskPromise`](../interfaces/TaskPromise.md)\<`Output`\>
|
|
296
296
|
|
|
297
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:277](https://github.com/isdk/ai-tool.js/blob/
|
|
297
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:277](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L277)
|
|
298
298
|
|
|
299
299
|
#### Type Parameters
|
|
300
300
|
|
|
@@ -330,7 +330,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:277](https://githu
|
|
|
330
330
|
|
|
331
331
|
> **getRunningTask**(`taskId`?): `undefined` \| [`TaskAbortController`](TaskAbortController.md)
|
|
332
332
|
|
|
333
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:135](https://github.com/isdk/ai-tool.js/blob/
|
|
333
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:135](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L135)
|
|
334
334
|
|
|
335
335
|
#### Parameters
|
|
336
336
|
|
|
@@ -348,7 +348,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:135](https://githu
|
|
|
348
348
|
|
|
349
349
|
> **getRunningTaskCount**(): `number`
|
|
350
350
|
|
|
351
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:158](https://github.com/isdk/ai-tool.js/blob/
|
|
351
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:158](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L158)
|
|
352
352
|
|
|
353
353
|
#### Returns
|
|
354
354
|
|
|
@@ -360,7 +360,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:158](https://githu
|
|
|
360
360
|
|
|
361
361
|
> **getSemaphore**(`isReadyFn`): `undefined` \| [`Semaphore`](Semaphore.md)
|
|
362
362
|
|
|
363
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:97](https://github.com/isdk/ai-tool.js/blob/
|
|
363
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:97](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L97)
|
|
364
364
|
|
|
365
365
|
#### Parameters
|
|
366
366
|
|
|
@@ -378,7 +378,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:97](https://github
|
|
|
378
378
|
|
|
379
379
|
> **hasAsyncFeature**(`feature`): `boolean`
|
|
380
380
|
|
|
381
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:114](https://github.com/isdk/ai-tool.js/blob/
|
|
381
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:114](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L114)
|
|
382
382
|
|
|
383
383
|
#### Parameters
|
|
384
384
|
|
|
@@ -396,7 +396,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:114](https://githu
|
|
|
396
396
|
|
|
397
397
|
> **isAborted**(`taskId`?): `boolean`
|
|
398
398
|
|
|
399
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:120](https://github.com/isdk/ai-tool.js/blob/
|
|
399
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:120](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L120)
|
|
400
400
|
|
|
401
401
|
#### Parameters
|
|
402
402
|
|
|
@@ -414,7 +414,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:120](https://githu
|
|
|
414
414
|
|
|
415
415
|
> **runAsyncCancelableTask**\<`Output`\>(`params`, `runTask`, `options`?): [`TaskPromise`](../interfaces/TaskPromise.md)\<`Output`\>
|
|
416
416
|
|
|
417
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:315](https://github.com/isdk/ai-tool.js/blob/
|
|
417
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:315](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L315)
|
|
418
418
|
|
|
419
419
|
#### Type Parameters
|
|
420
420
|
|
|
@@ -454,7 +454,7 @@ Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:315](https://githu
|
|
|
454
454
|
|
|
455
455
|
> `static` **hasAsyncFeature**(`feature`): `boolean`
|
|
456
456
|
|
|
457
|
-
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:107](https://github.com/isdk/ai-tool.js/blob/
|
|
457
|
+
Defined in: [packages/ai-tool/src/utils/cancelable-ability.ts:107](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/utils/cancelable-ability.ts#L107)
|
|
458
458
|
|
|
459
459
|
#### Parameters
|
|
460
460
|
|