@nhtio/adk/batteries/llm
Aggregate barrel for bundled LLM adapters and their helper, option, and exception exports.
References
AnthropicCacheBreakpoints
Re-exports AnthropicCacheBreakpoints
AnthropicCacheControlEphemeral
Re-exports AnthropicCacheControlEphemeral
AnthropicCacheTtl
Re-exports AnthropicCacheTtl
AnthropicContentBlock
Re-exports AnthropicContentBlock
AnthropicContentBlockParam
Re-exports AnthropicContentBlockParam
AnthropicDocumentBlockParam
Re-exports AnthropicDocumentBlockParam
AnthropicImageBlockParam
Re-exports AnthropicImageBlockParam
AnthropicJSONOutputFormat
Re-exports AnthropicJSONOutputFormat
AnthropicMessage
Re-exports AnthropicMessage
AnthropicMessageCountTokensParams
Re-exports AnthropicMessageCountTokensParams
AnthropicMessageCreateParams
Re-exports AnthropicMessageCreateParams
AnthropicMessageCreateParamsBase
Re-exports AnthropicMessageCreateParamsBase
AnthropicMessageDeltaUsage
Re-exports AnthropicMessageDeltaUsage
AnthropicMessageParam
Re-exports AnthropicMessageParam
AnthropicMessagesAdapter
Re-exports AnthropicMessagesAdapter
AnthropicMessagesAdapterOptions
Re-exports AnthropicMessagesAdapterOptions
AnthropicMessagesCountTokensDeps
Re-exports AnthropicMessagesCountTokensDeps
AnthropicMessagesCountTokensInput
Re-exports AnthropicMessagesCountTokensInput
AnthropicMessagesCountTokensRequestInput
Re-exports AnthropicMessagesCountTokensRequestInput
AnthropicMessagesHelpers
Re-exports AnthropicMessagesHelpers
anthropicMessagesOptionsSchema
Re-exports anthropicMessagesOptionsSchema
AnthropicMessageTokensCount
Re-exports AnthropicMessageTokensCount
AnthropicModel
Re-exports AnthropicModel
AnthropicOutputConfig
Re-exports AnthropicOutputConfig
AnthropicRawContentBlockDelta
Re-exports AnthropicRawContentBlockDelta
AnthropicRawContentBlockDeltaEvent
Re-exports AnthropicRawContentBlockDeltaEvent
AnthropicRawContentBlockStartEvent
Re-exports AnthropicRawContentBlockStartEvent
AnthropicRawContentBlockStopEvent
Re-exports AnthropicRawContentBlockStopEvent
AnthropicRawMessageDeltaEvent
Re-exports AnthropicRawMessageDeltaEvent
AnthropicRawMessageStartEvent
Re-exports AnthropicRawMessageStartEvent
AnthropicRawMessageStopEvent
Re-exports AnthropicRawMessageStopEvent
AnthropicRawMessageStreamEvent
Re-exports AnthropicRawMessageStreamEvent
AnthropicRedactedThinkingBlock
Re-exports AnthropicRedactedThinkingBlock
AnthropicRedactedThinkingBlockParam
Re-exports AnthropicRedactedThinkingBlockParam
AnthropicRefusalStopDetails
Re-exports AnthropicRefusalStopDetails
AnthropicStopReason
Re-exports AnthropicStopReason
AnthropicTextBlockParam
Re-exports AnthropicTextBlockParam
AnthropicThinkingBlock
Re-exports AnthropicThinkingBlock
AnthropicThinkingBlockParam
Re-exports AnthropicThinkingBlockParam
AnthropicThinkingConfigParam
Re-exports AnthropicThinkingConfigParam
AnthropicThinkingReplayPayload
Re-exports AnthropicThinkingReplayPayload
AnthropicTool
Re-exports AnthropicTool
AnthropicToolChoice
Re-exports AnthropicToolChoice
AnthropicToolResultBlockParam
Re-exports AnthropicToolResultBlockParam
AnthropicToolUseBlock
Re-exports AnthropicToolUseBlock
AnthropicToolUseBlockParam
Re-exports AnthropicToolUseBlockParam
AnthropicUsage
Re-exports AnthropicUsage
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
ClaudeCodeCliAdapter
Re-exports ClaudeCodeCliAdapter
ClaudeCodeCliAdapterOptions
Re-exports ClaudeCodeCliAdapterOptions
ClaudeCodeCliExtraArg
Re-exports ClaudeCodeCliExtraArg
ClaudeCodeCliHelpers
Re-exports ClaudeCodeCliHelpers
claudeCodeCliOptionsSchema
Re-exports claudeCodeCliOptionsSchema
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_ANTHROPIC_MESSAGES_CONTEXT_OVERFLOW
Re-exports E_ANTHROPIC_MESSAGES_CONTEXT_OVERFLOW
E_ANTHROPIC_MESSAGES_HTTP_ERROR
Re-exports E_ANTHROPIC_MESSAGES_HTTP_ERROR
E_ANTHROPIC_MESSAGES_INVALID_TOOL_CALL_ARGS
Re-exports E_ANTHROPIC_MESSAGES_INVALID_TOOL_CALL_ARGS
E_ANTHROPIC_MESSAGES_REQUEST_TIMEOUT
Re-exports E_ANTHROPIC_MESSAGES_REQUEST_TIMEOUT
E_ANTHROPIC_MESSAGES_STREAM_ERROR
Re-exports E_ANTHROPIC_MESSAGES_STREAM_ERROR
E_ANTHROPIC_MESSAGES_STREAM_STALLED
Re-exports E_ANTHROPIC_MESSAGES_STREAM_STALLED
E_ANTHROPIC_MESSAGES_UNSUPPORTED_MEDIA_MODALITY
Re-exports E_ANTHROPIC_MESSAGES_UNSUPPORTED_MEDIA_MODALITY
E_CLAUDE_CODE_CLI_BINARY_NOT_FOUND
Re-exports E_CLAUDE_CODE_CLI_BINARY_NOT_FOUND
E_CLAUDE_CODE_CLI_MCP_BRIDGE_STARTUP_FAILED
Re-exports E_CLAUDE_CODE_CLI_MCP_BRIDGE_STARTUP_FAILED
E_CLAUDE_CODE_CLI_PROCESS_EXITED_NONZERO
Re-exports E_CLAUDE_CODE_CLI_PROCESS_EXITED_NONZERO
E_CLAUDE_CODE_CLI_STARTUP_TIMEOUT
Re-exports E_CLAUDE_CODE_CLI_STARTUP_TIMEOUT
E_CLAUDE_CODE_CLI_STREAM_ERROR
Re-exports E_CLAUDE_CODE_CLI_STREAM_ERROR
E_CLAUDE_CODE_CLI_STREAM_STALLED
Re-exports E_CLAUDE_CODE_CLI_STREAM_STALLED
E_CLAUDE_CODE_CLI_TURN_FAILED
Re-exports E_CLAUDE_CODE_CLI_TURN_FAILED
E_CLAUDE_CODE_CLI_UNSUPPORTED_MEDIA_MODALITY
Re-exports E_CLAUDE_CODE_CLI_UNSUPPORTED_MEDIA_MODALITY
E_CLAUDE_CODE_CLI_WRAPPER_CRASHED
Re-exports E_CLAUDE_CODE_CLI_WRAPPER_CRASHED
E_CLAUDE_CODE_CLI_WRAPPER_SPAWN_ERROR
Re-exports E_CLAUDE_CODE_CLI_WRAPPER_SPAWN_ERROR
E_INVALID_ANTHROPIC_MESSAGES_OPTIONS
Re-exports E_INVALID_ANTHROPIC_MESSAGES_OPTIONS
E_INVALID_CLAUDE_CODE_CLI_OPTIONS
Re-exports E_INVALID_CLAUDE_CODE_CLI_OPTIONS
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
validateAnthropicMessagesOptions
Renames and re-exports validateOptions
validateClaudeCodeCliOptions
Renames and re-exports validateOptions
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
WrapperAuth
Re-exports WrapperAuth
WrapperBridgedTool
Re-exports WrapperBridgedTool
WrapperCommand
Re-exports WrapperCommand
WrapperErrorEvent
Re-exports WrapperErrorEvent
WrapperEvent
Re-exports WrapperEvent
WrapperInitEvent
Re-exports WrapperInitEvent
WrapperLogEvent
Re-exports WrapperLogEvent
WrapperMessageDeltaEvent
Re-exports WrapperMessageDeltaEvent
WrapperReadyEvent
Re-exports WrapperReadyEvent
WrapperResultEvent
Re-exports WrapperResultEvent
WrapperRetryEvent
Re-exports WrapperRetryEvent
WrapperRunCommand
Re-exports WrapperRunCommand
WrapperShutdownCommand
Re-exports WrapperShutdownCommand
WrapperShutdownCompleteEvent
Re-exports WrapperShutdownCompleteEvent
WrapperThoughtDeltaEvent
Re-exports WrapperThoughtDeltaEvent
WrapperToolCallRequestEvent
Re-exports WrapperToolCallRequestEvent
WrapperToolCallResponseCommand
Re-exports WrapperToolCallResponseCommand
WrapperToolResultContentBlock
Re-exports WrapperToolResultContentBlock