Skip to content
2 min read · 408 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_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


filterThoughts

Re-exports filterThoughts


JsonSchema

Re-exports JsonSchema


MemoryAttrs

Re-exports MemoryAttrs


OpenAIChatCompletionsAdapter

Re-exports OpenAIChatCompletionsAdapter


OpenAIChatCompletionsAdapterOptions

Re-exports OpenAIChatCompletionsAdapterOptions


openAIChatCompletionsOptionsSchema

Re-exports openAIChatCompletionsOptionsSchema


OpenAIChatCompletionsRequestBody

Re-exports OpenAIChatCompletionsRequestBody


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


StandingInstructionAttrs

Re-exports StandingInstructionAttrs


ThoughtAttrs

Re-exports ThoughtAttrs


toolsToChatCompletionsTools

Re-exports toolsToChatCompletionsTools


TrustedContentAttrs

Re-exports TrustedContentAttrs


UntrustedContentAttrs

Re-exports UntrustedContentAttrs


validateOptions

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