Skip to content
4 min read · 714 words

@nhtio/adk/batteries/llm

Aggregate barrel for bundled LLM adapters and their helper, option, and exception exports.

References

AssembledToolCall

Re-exports AssembledToolCall


buildChatCompletionsHistory

Re-exports buildChatCompletionsHistory


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


createChatCompletionsToolCallDeltaAccumulator

Re-exports createChatCompletionsToolCallDeltaAccumulator


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


DescriptionLike

Re-exports DescriptionLike


descriptionToChatCompletionsJsonSchema

Re-exports descriptionToChatCompletionsJsonSchema


E_INVALID_LITERT_LM_OPTIONS

Re-exports E_INVALID_LITERT_LM_OPTIONS


E_INVALID_OLLAMA_OPTIONS

Re-exports E_INVALID_OLLAMA_OPTIONS


E_INVALID_OPENAI_CHAT_COMPLETIONS_OPTIONS

Re-exports E_INVALID_OPENAI_CHAT_COMPLETIONS_OPTIONS


E_INVALID_TRANSFORMERS_JS_OPTIONS

Re-exports E_INVALID_TRANSFORMERS_JS_OPTIONS


E_INVALID_WEBLLM_CHAT_COMPLETIONS_OPTIONS

Re-exports E_INVALID_WEBLLM_CHAT_COMPLETIONS_OPTIONS


E_LITERT_LM_CONTEXT_OVERFLOW

Re-exports E_LITERT_LM_CONTEXT_OVERFLOW


E_LITERT_LM_INVALID_TOOL_CALL_ARGS

Re-exports E_LITERT_LM_INVALID_TOOL_CALL_ARGS


E_LITERT_LM_STREAM_ERROR

Re-exports E_LITERT_LM_STREAM_ERROR


E_OLLAMA_CONTEXT_OVERFLOW

Re-exports E_OLLAMA_CONTEXT_OVERFLOW


E_OLLAMA_HTTP_ERROR

Re-exports E_OLLAMA_HTTP_ERROR


E_OLLAMA_INVALID_TOOL_CALL_ARGS

Re-exports E_OLLAMA_INVALID_TOOL_CALL_ARGS


E_OLLAMA_REQUEST_TIMEOUT

Re-exports E_OLLAMA_REQUEST_TIMEOUT


E_OLLAMA_STREAM_ERROR

Re-exports E_OLLAMA_STREAM_ERROR


E_OLLAMA_STREAM_STALLED

Re-exports E_OLLAMA_STREAM_STALLED


E_OLLAMA_UNSUPPORTED_MEDIA_MODALITY

Re-exports E_OLLAMA_UNSUPPORTED_MEDIA_MODALITY


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_TRANSFORMERS_JS_CONTEXT_OVERFLOW

Re-exports E_TRANSFORMERS_JS_CONTEXT_OVERFLOW


E_TRANSFORMERS_JS_INVALID_TOOL_CALL_ARGS

Re-exports E_TRANSFORMERS_JS_INVALID_TOOL_CALL_ARGS


E_TRANSFORMERS_JS_STREAM_ERROR

Re-exports E_TRANSFORMERS_JS_STREAM_ERROR


E_TRANSFORMERS_JS_TOOL_PARSE_FAILED

Re-exports E_TRANSFORMERS_JS_TOOL_PARSE_FAILED


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


extractReasoningFields

Re-exports extractReasoningFields


filterThoughts

Re-exports filterThoughts


floorTrustTier

Re-exports floorTrustTier


JsonSchema

Re-exports JsonSchema


LiteRtLmAdapter

Re-exports LiteRtLmAdapter


LiteRtLmAdapterOptions

Re-exports LiteRtLmAdapterOptions


LiteRtLmConversation

Re-exports LiteRtLmConversation


LiteRtLmEngine

Re-exports LiteRtLmEngine


liteRtLmOptionsSchema

Re-exports liteRtLmOptionsSchema


MemoryAttrs

Re-exports MemoryAttrs


neutraliseDeveloperRulesTag

Re-exports neutraliseDeveloperRulesTag


OllamaAdapter

Re-exports OllamaAdapter


OllamaAdapterOptions

Re-exports OllamaAdapterOptions


OllamaChatRequestBody

Re-exports OllamaChatRequestBody


OllamaChatResponse

Re-exports OllamaChatResponse


OllamaChatStreamChunk

Re-exports OllamaChatStreamChunk


OllamaFormat

Re-exports OllamaFormat


OllamaHelpers

Re-exports OllamaHelpers


OllamaMessage

Re-exports OllamaMessage


ollamaOptionsSchema

Re-exports ollamaOptionsSchema


OllamaRuntimeOptions

Re-exports OllamaRuntimeOptions


OllamaThink

Re-exports OllamaThink


OllamaTool

Re-exports OllamaTool


OllamaToolCall

Re-exports OllamaToolCall


OpenAIChatCompletionsAdapter

Re-exports OpenAIChatCompletionsAdapter


OpenAIChatCompletionsAdapterOptions

Re-exports OpenAIChatCompletionsAdapterOptions


openAIChatCompletionsOptionsSchema

Re-exports openAIChatCompletionsOptionsSchema


OpenAIChatCompletionsRequestBody

Re-exports OpenAIChatCompletionsRequestBody


PromptAssembledObservation

Re-exports PromptAssembledObservation


PromptAssembledObserverFn

Re-exports PromptAssembledObserverFn


RawGenerationObservation

Re-exports RawGenerationObservation


RawGenerationObserverFn

Re-exports RawGenerationObserverFn


ReasoningExtract

Re-exports ReasoningExtract


ReasoningField

Re-exports ReasoningField


ReasoningFieldPrecedence

Re-exports ReasoningFieldPrecedence


ReasoningParserFn

Re-exports ReasoningParserFn


ReasoningParserName

Re-exports ReasoningParserName


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


sanitizeFilenameForDescription

Re-exports sanitizeFilenameForDescription


sanitizeMimeType

Re-exports sanitizeMimeType


StandingInstructionAttrs

Re-exports StandingInstructionAttrs


stripEnvelopeSpecialTokens

Re-exports stripEnvelopeSpecialTokens


ThoughtAttrs

Re-exports ThoughtAttrs


ToolCallParserFn

Re-exports ToolCallParserFn


ToolCallParserName

Re-exports ToolCallParserName


toolsToChatCompletionsTools

Re-exports toolsToChatCompletionsTools


TransformersJsAdapter

Re-exports TransformersJsAdapter


TransformersJsAdapterOptions

Re-exports TransformersJsAdapterOptions


TransformersJsMessage

Re-exports TransformersJsMessage


transformersJsOptionsSchema

Re-exports transformersJsOptionsSchema


TransformersJsPipeline

Re-exports TransformersJsPipeline


TrustedContentAttrs

Re-exports TrustedContentAttrs


UntrustedContentAttrs

Re-exports UntrustedContentAttrs


validateLiteRtLmOptions

Renames and re-exports validateOptions


validateOllamaOptions

Renames and re-exports validateOptions


validateOptions

Re-exports validateOptions


validateTransformersJsOptions

Renames and re-exports validateOptions


validateWebLLMChatCompletionsOptions

Renames and re-exports validateOptions


WebLLMChatCompletionsAdapter

Re-exports WebLLMChatCompletionsAdapter


WebLLMChatCompletionsAdapterOptions

Re-exports WebLLMChatCompletionsAdapterOptions


webLLMChatCompletionsOptionsSchema

Re-exports webLLMChatCompletionsOptionsSchema


WebLLMChatCompletionsRequestBody

Re-exports WebLLMChatCompletionsRequestBody


WebLLMEngine

Re-exports WebLLMEngine


WebLLMInitProgressReport

Re-exports WebLLMInitProgressReport