@nhtio/adk/batteries
Opt-in aggregate barrel for bundled ADK batteries across LLMs, tools, and storage.
Remarks
Opt-in bundled tools that ship with the ADK. This barrel is not re-exported from the root entry — consumers must explicitly import { ... } from '@nhtio/adk/batteries' to use these tools, and consumers who do not import this barrel pay nothing in their bundle.
The barrel is a plain re-export of every category. Finer-grained subpaths exist for tree-shaking:
@nhtio/adk/batteries/tools— every tool, identical to this barrel@nhtio/adk/batteries/tools/<category>— just one category (e.g.math,color,datetime_math)
Each export is a pre-constructed @nhtio/adk!Tool instance ready to be registered with a ToolRegistry. The ADK has no opinion on storage — the consumer's executor middleware is responsible for persisting tool output and assembling the ToolCall.results field using each tool's artifactConstructor.
Need every bundled tool? import * as batteries from '@nhtio/adk/batteries' then Object.values(batteries). Need just one category? Deep-import the subpath and pay only for that bundle.
Interfaces
| Interface | Description |
|---|---|
| WebLLMChatCompletionsAdapterOptions | - |
Type Aliases
| Type Alias | Description |
|---|---|
| WebLLMChatCompletionsRequestBody | - |
| WebLLMEngine | - |
| WebLLMInitProgressReport | - |
References
addStandingInstructionTool
Re-exports addStandingInstructionTool
AssembledToolCall
Re-exports AssembledToolCall
buildChatCompletionsHistory
Re-exports buildChatCompletionsHistory
calculateTool
Re-exports calculateTool
ChatCompletionsBucketLabel
Re-exports ChatCompletionsBucketLabel
ChatCompletionsBucketOrder
Re-exports ChatCompletionsBucketOrder
ChatCompletionsChunk
Re-exports ChatCompletionsChunk
ChatCompletionsHelpers
Re-exports ChatCompletionsHelpers
ChatCompletionsMessage
Re-exports ChatCompletionsMessage
ChatCompletionsResponse
Re-exports ChatCompletionsResponse
ChatCompletionsRetryConfig
Re-exports ChatCompletionsRetryConfig
ChatCompletionsTool
Re-exports ChatCompletionsTool
ChatCompletionsToolCallDelta
Re-exports ChatCompletionsToolCallDelta
ChatCompletionsToolCallDeltaAccumulator
Re-exports ChatCompletionsToolCallDeltaAccumulator
colorAdjustTool
Re-exports colorAdjustTool
colorContrastTool
Re-exports colorContrastTool
colorSchemeTool
Re-exports colorSchemeTool
compareRecordsTool
Re-exports compareRecordsTool
compareValuesTool
Re-exports compareValuesTool
convertTimeTool
Re-exports convertTimeTool
convertUnitTool
Re-exports convertUnitTool
createChatCompletionsToolCallDeltaAccumulator
Re-exports createChatCompletionsToolCallDeltaAccumulator
dateAddTool
Re-exports dateAddTool
dateBusinessDaysTool
Re-exports dateBusinessDaysTool
dateCalendarInfoTool
Re-exports dateCalendarInfoTool
dateDiffTool
Re-exports dateDiffTool
dateNthWeekdayTool
Re-exports dateNthWeekdayTool
dateParseTool
Re-exports dateParseTool
datePeriodTool
Re-exports datePeriodTool
defaultBuildChatCompletionsHistory
Re-exports defaultBuildChatCompletionsHistory
defaultCreateChatCompletionsToolCallDeltaAccumulator
Re-exports defaultCreateChatCompletionsToolCallDeltaAccumulator
defaultDescriptionToChatCompletionsJsonSchema
Re-exports defaultDescriptionToChatCompletionsJsonSchema
defaultFilterThoughts
Re-exports defaultFilterThoughts
defaultRenderChatCompletionsSystemPrompt
Re-exports defaultRenderChatCompletionsSystemPrompt
defaultRenderChatCompletionsToolCallResult
Re-exports defaultRenderChatCompletionsToolCallResult
defaultRenderFirstPartyRetrievables
Re-exports defaultRenderFirstPartyRetrievables
defaultRenderMemories
Re-exports defaultRenderMemories
defaultRenderRetrievables
Re-exports defaultRenderRetrievables
defaultRenderRetrievableSafetyDirective
Re-exports defaultRenderRetrievableSafetyDirective
defaultRenderStandingInstructions
Re-exports defaultRenderStandingInstructions
defaultRenderThirdPartyPrivateRetrievables
Re-exports defaultRenderThirdPartyPrivateRetrievables
defaultRenderThirdPartyPublicRetrievables
Re-exports defaultRenderThirdPartyPublicRetrievables
defaultRenderThought
Re-exports defaultRenderThought
defaultRenderTimelineMessage
Re-exports defaultRenderTimelineMessage
defaultRenderTrustedContent
Re-exports defaultRenderTrustedContent
defaultRenderUntrustedContent
Re-exports defaultRenderUntrustedContent
defaultToolsToChatCompletionsTools
Re-exports defaultToolsToChatCompletionsTools
deleteMemoryTool
Re-exports deleteMemoryTool
deleteRetrievableTool
Re-exports deleteRetrievableTool
DescriptionLike
Re-exports DescriptionLike
descriptionToChatCompletionsJsonSchema
Re-exports descriptionToChatCompletionsJsonSchema
detectDelimiterTool
Re-exports detectDelimiterTool
durationFormatTool
Re-exports durationFormatTool
E_INVALID_OPENAI_CHAT_COMPLETIONS_OPTIONS
Re-exports E_INVALID_OPENAI_CHAT_COMPLETIONS_OPTIONS
E_INVALID_WEBLLM_CHAT_COMPLETIONS_OPTIONS
Re-exports E_INVALID_WEBLLM_CHAT_COMPLETIONS_OPTIONS
E_OPENAI_CHAT_COMPLETIONS_CONTEXT_OVERFLOW
Re-exports E_OPENAI_CHAT_COMPLETIONS_CONTEXT_OVERFLOW
E_OPENAI_CHAT_COMPLETIONS_HTTP_ERROR
Re-exports E_OPENAI_CHAT_COMPLETIONS_HTTP_ERROR
E_OPENAI_CHAT_COMPLETIONS_INVALID_TOOL_CALL_ARGS
Re-exports E_OPENAI_CHAT_COMPLETIONS_INVALID_TOOL_CALL_ARGS
E_OPENAI_CHAT_COMPLETIONS_REQUEST_TIMEOUT
Re-exports E_OPENAI_CHAT_COMPLETIONS_REQUEST_TIMEOUT
E_OPENAI_CHAT_COMPLETIONS_STREAM_ERROR
Re-exports E_OPENAI_CHAT_COMPLETIONS_STREAM_ERROR
E_OPENAI_CHAT_COMPLETIONS_STREAM_STALLED
Re-exports E_OPENAI_CHAT_COMPLETIONS_STREAM_STALLED
E_WEBLLM_CHAT_COMPLETIONS_CONTEXT_OVERFLOW
Re-exports E_WEBLLM_CHAT_COMPLETIONS_CONTEXT_OVERFLOW
E_WEBLLM_CHAT_COMPLETIONS_INVALID_TOOL_CALL_ARGS
Re-exports E_WEBLLM_CHAT_COMPLETIONS_INVALID_TOOL_CALL_ARGS
E_WEBLLM_CHAT_COMPLETIONS_STREAM_ERROR
Re-exports E_WEBLLM_CHAT_COMPLETIONS_STREAM_ERROR
encodeTextTool
Re-exports encodeTextTool
evaluateKatexTool
Re-exports evaluateKatexTool
filterThoughts
Re-exports filterThoughts
formatListTool
Re-exports formatListTool
formatNumberTool
Re-exports formatNumberTool
formatTableTool
Re-exports formatTableTool
geoBboxContainsTool
Re-exports geoBboxContainsTool
geoDistanceTool
Re-exports geoDistanceTool
geoWithinRadiusTool
Re-exports geoWithinRadiusTool
getCurrentTimeTool
Re-exports getCurrentTimeTool
jsonFormatTool
Re-exports jsonFormatTool
JsonSchema
Re-exports JsonSchema
jsonTransformTool
Re-exports jsonTransformTool
listMemoriesTool
Re-exports listMemoriesTool
listRetrievablesTool
Re-exports listRetrievablesTool
listStandingInstructionsTool
Re-exports listStandingInstructionsTool
MemoryAttrs
Re-exports MemoryAttrs
memoryTools
Re-exports memoryTools
OpenAIChatCompletionsAdapter
Re-exports OpenAIChatCompletionsAdapter
OpenAIChatCompletionsAdapterOptions
Re-exports OpenAIChatCompletionsAdapterOptions
openAIChatCompletionsOptionsSchema
Re-exports openAIChatCompletionsOptionsSchema
OpenAIChatCompletionsRequestBody
Re-exports OpenAIChatCompletionsRequestBody
parseCsvTool
Re-exports parseCsvTool
parseKvTool
Re-exports parseKvTool
parseYamlTool
Re-exports parseYamlTool
removeStandingInstructionTool
Re-exports removeStandingInstructionTool
renderChatCompletionsSystemPrompt
Re-exports renderChatCompletionsSystemPrompt
renderChatCompletionsToolCallResult
Re-exports renderChatCompletionsToolCallResult
renderFirstPartyRetrievables
Re-exports renderFirstPartyRetrievables
renderMemories
Re-exports renderMemories
renderRetrievables
Re-exports renderRetrievables
renderRetrievableSafetyDirective
Re-exports renderRetrievableSafetyDirective
renderStandingInstructions
Re-exports renderStandingInstructions
renderThirdPartyPrivateRetrievables
Re-exports renderThirdPartyPrivateRetrievables
renderThirdPartyPublicRetrievables
Re-exports renderThirdPartyPublicRetrievables
renderThought
Re-exports renderThought
renderTimelineMessage
Re-exports renderTimelineMessage
renderTrustedContent
Re-exports renderTrustedContent
renderUntrustedContent
Re-exports renderUntrustedContent
RetrievableAttrs
Re-exports RetrievableAttrs
retrievableTools
Re-exports retrievableTools
setOperationsTool
Re-exports setOperationsTool
StandingInstructionAttrs
Re-exports StandingInstructionAttrs
standingInstructionTools
Re-exports standingInstructionTools
statsCorrelateTool
Re-exports statsCorrelateTool
statsDescribeTool
Re-exports statsDescribeTool
statsHistogramTool
Re-exports statsHistogramTool
statsTransformTool
Re-exports statsTransformTool
storeMemoryTool
Re-exports storeMemoryTool
storeRetrievableTool
Re-exports storeRetrievableTool
stringExtractTool
Re-exports stringExtractTool
stringSimilarityTool
Re-exports stringSimilarityTool
stringTransformTool
Re-exports stringTransformTool
textAnalyzeTool
Re-exports textAnalyzeTool
textDiffTool
Re-exports textDiffTool
textEscapeTool
Re-exports textEscapeTool
textLinesTool
Re-exports textLinesTool
ThoughtAttrs
Re-exports ThoughtAttrs
toolsToChatCompletionsTools
Re-exports toolsToChatCompletionsTools
TrustedContentAttrs
Re-exports TrustedContentAttrs
unicodeNormalizeTool
Re-exports unicodeNormalizeTool
UntrustedContentAttrs
Re-exports UntrustedContentAttrs
updateMemoryTool
Re-exports updateMemoryTool
updateRetrievableTool
Re-exports updateRetrievableTool
validateFormatTool
Re-exports validateFormatTool
validateOptions
Re-exports validateOptions
validateWebLLMChatCompletionsOptions
Renames and re-exports validateOptions
WebLLMChatCompletionsAdapter
Re-exports WebLLMChatCompletionsAdapter
webLLMChatCompletionsOptionsSchema
Re-exports webLLMChatCompletionsOptionsSchema