Skip to content
@archipel/platform-intelligence Auto-generated

@pixel-brewery/archipel-platform-intelligence ​

Classes ​

ClassDescription
AnthropicIntelligenceProviderAdapterAnthropic adapter for language, files, and skills.
DefaultIntelligencePromptPolicyAdapterDefault prompt policy that supports native settings and automatic model selection.
GatewayIntelligenceProviderAdapterVercel AI Gateway adapter spanning all standardized model capabilities.
GoogleIntelligenceProviderAdapterGoogle adapter for language, embeddings, images, speech, video, realtime, and files.
GrokIntelligenceProviderAdapterxAI Grok adapter for language, image, speech, transcription, video, realtime, and files.
IntelligenceAgentReusable provider-neutral agent backed by the language capability.
IntelligenceAgentFactoryCreates reusable provider-neutral tool-loop agents.
IntelligenceConfigurationErrorError thrown when an intelligence provider configuration is invalid or missing.
IntelligenceEmbeddingGeneratorProvider-neutral single and batch embedding facade.
IntelligenceHealthIndicatorHealth indicator for the intelligence infrastructure. Performs a bounded remote readiness probe for the default language model and reports the locally registered capability topology.
IntelligenceImageGeneratorProvider-neutral image generation facade.
IntelligenceLanguageGeneratorProvider-neutral language generation, structured output, and streaming facade.
IntelligenceModuleCore module exposing the shared intelligence infrastructure.
IntelligencePromptExecutorValidates and executes reusable intelligence prompt invocations.
IntelligencePromptPolicyPortResolves provider-neutral prompt requirements into effective generation settings.
IntelligenceProviderAdapterPortPort implemented by every intelligence provider adapter.
IntelligenceProviderAssetUploaderUploads provider-managed files and skills behind provider-neutral contracts.
IntelligenceProviderDiagnosticsPerforms bounded, provider-neutral provider availability diagnostics.
IntelligenceProviderErrorError thrown when an intelligence provider call fails.
IntelligenceProviderRegistryImmutable registry of provider adapters and their supported capabilities.
IntelligenceRealtimeErrorError raised by a realtime session, transport, or metering adapter.
IntelligenceRealtimeMeteringPortApplication port for idempotently persisting realtime billing and audit events.
IntelligenceRealtimeSessionFactoryCreates server-owned WebSocket sessions, negotiates browser-owned WebRTC sessions, and ends browser-owned WebRTC sessions at their provider.
IntelligenceRealtimeSessionPortProvider-neutral control surface for one realtime model connection.
IntelligenceRerankerProvider-neutral semantic reranking facade.
IntelligenceSpeechGeneratorProvider-neutral speech generation facade.
IntelligenceToolBaseBase class for class-based intelligence tools.
IntelligenceToolRegistryRegistry for class-based intelligence tools.
IntelligenceTranscriptionGeneratorProvider-neutral bounded and streaming transcription facade.
IntelligenceValidationErrorError thrown when an intelligence input validation fails.
IntelligenceVideoGeneratorProvider-neutral video generation facade.
MiMoIntelligenceProviderAdapterXiaomi MiMo OpenAI-compatible language adapter.
OpenAIIntelligenceProviderAdapterOpenAI adapter for language, embeddings, images, audio, video, realtime, files, and skills.

Interfaces ​

InterfaceDescription
IIntelligenceAgentConfigurationReusable provider-neutral tool-loop agent configuration.
IIntelligenceDeferredToolLoadingOptionsOn-demand exposure of a large composed tool catalog during one language call.
IIntelligenceDeferredToolLoadResultOutput of the built-in deferred tool loader.
IIntelligenceEmbeddingBatchOptionsProvider-neutral batch embedding options.
IIntelligenceEmbeddingBatchResultProvider-neutral batch embedding result.
IIntelligenceEmbeddingOptionsProvider-neutral single-value embedding options.
IIntelligenceEmbeddingResultProvider-neutral embedding result.
IIntelligenceFileUploadOptionsProvider-neutral file upload options.
IIntelligenceFileUploadResultNormalized provider-managed file upload result.
IIntelligenceGeneratedFileBinary content generated by an intelligence capability.
IIntelligenceGenerationStepStartEventLanguage generation step metadata.
IIntelligenceImageGenerationOptionsProvider-neutral image generation options.
IIntelligenceImageGenerationResultProvider-neutral image generation result.
IIntelligenceLanguageCallCapacityImmutable standardized input facts for one prepared language call.
IIntelligenceLanguageCompletionNormalized language generation result.
IIntelligenceLanguageGenerationOptionsProvider-neutral language generation controls.
IIntelligenceLanguageStreamProvider-neutral text stream.
IIntelligenceModelReferenceSelects a provider-owned model without exposing a provider SDK model object.
IIntelligenceModelRequestOptionsShared provider/model controls for intelligence operations.
IIntelligenceModelStatusSafe resolved model status that never includes credentials.
IIntelligenceModuleOptionsOptions for configuring the intelligence module.
IIntelligenceObjectStreamProvider-neutral structured-output stream.
IIntelligencePreparedLanguageCallSingle-use language call whose local model, option, prompt, and tool preparation has already completed.
IIntelligencePromptProvider-neutral language-model prompt.
IIntelligencePromptDefinitionReusable, immutable definition of an intelligence prompt.
IIntelligencePromptEffectivePolicyEffective settings resolved for one prompt execution.
IIntelligencePromptExecutionContextApplication context made available to prompt policy adapters.
IIntelligencePromptExecutionPolicyNative settings and provider-neutral requirements declared by an intelligence prompt.
IIntelligencePromptExecutionResultNormalized result of an intelligence prompt execution.
IIntelligencePromptInvocationBound prompt definition ready for execution.
IIntelligencePromptPolicyRequestPolicy resolution request for one prompt invocation.
IIntelligencePromptRenderContextInput exposed to pure prompt rendering functions.
IIntelligenceProviderCallStartEventExact standardized input facts observed immediately before a provider call.
IIntelligenceProviderConfigurationDescribes the resolved configuration for the intelligence provider.
IIntelligenceProviderLoadRequestInternal model/API load request passed to a provider adapter.
IIntelligenceProviderProbeResultProvider-neutral result of a bounded provider availability probe.
IIntelligenceProviderWebRTCClosureOutcome of ending a browser-owned WebRTC session through a provider's server control channel.
IIntelligenceProviderWebRTCConversationHistoryRequestProvider request to add earlier conversation turns to the setup of one browser-owned WebRTC realtime session.
IIntelligenceProviderWebRTCTerminationRequestProvider request to end one browser-owned WebRTC realtime session.
IIntelligenceRealtimeAudioFormatProvider-neutral audio format configuration.
IIntelligenceRealtimeCloseEventDescribes why an upstream realtime connection closed.
IIntelligenceRealtimeConversationTurnOne earlier turn of a conversation that a new browser-owned WebRTC session receives as quoted, untrusted context.
IIntelligenceRealtimeModuleOptionsModule-level resilience and resource limits for realtime intelligence.
IIntelligenceRealtimeSessionConfigurationProvider-neutral configuration for a realtime AI session.
IIntelligenceRealtimeSessionOptionsOptions used to create one server-owned WebSocket realtime connection.
IIntelligenceRealtimeToolDefinitionProvider-neutral function definition exposed to a realtime model.
IIntelligenceRealtimeTranscriptionConfigurationProvider-neutral transcription configuration.
IIntelligenceRealtimeTurnDetectionConfigurationProvider-neutral voice activity detection configuration.
IIntelligenceRealtimeUsageNormalized token usage reported by a realtime provider.
IIntelligenceRealtimeWebRTCConfigurationProvider-neutral browser setup needed before creating a WebRTC SDP offer.
IIntelligenceRealtimeWebRTCSessionOptionsServer-side SDP exchange for a browser-owned WebRTC realtime session.
IIntelligenceRealtimeWebRTCSessionResultSDP answer and data-channel information returned to the browser.
IIntelligenceRealtimeWebRTCTerminationOptionsIdentifies one browser-owned WebRTC session that the server ends at its provider.
IIntelligenceRealtimeWebRTCTerminationResultResult of ending a browser-owned WebRTC realtime session from the server.
IIntelligenceRequestOptionsShared execution controls for bounded intelligence requests.
IIntelligenceRerankingOptionsProvider-neutral reranking options.
IIntelligenceRerankingResultProvider-neutral reranking result.
IIntelligenceSkillUploadOptionsProvider-neutral skill bundle upload options.
IIntelligenceSkillUploadResultNormalized provider-managed skill upload result.
IIntelligenceSpeechGenerationOptionsProvider-neutral speech generation options.
IIntelligenceSpeechGenerationResultProvider-neutral speech generation result.
IIntelligenceStreamingTranscriptionOptionsProvider-neutral live transcription options.
IIntelligenceToolMinimal shape required by the intelligence tool registry.
IIntelligenceToolCallTool call selected by a language model.
IIntelligenceToolDefinitionProvider-neutral application tool definition.
IIntelligenceToolExecutionEndEventTool execution completion event.
IIntelligenceToolExecutionStartEventTool execution start event.
IIntelligenceToolRegistryContract for the intelligence tool registry.
IIntelligenceTranscriptionOptionsProvider-neutral transcription options.
IIntelligenceTranscriptionResultProvider-neutral transcription result.
IIntelligenceTranscriptionStreamProvider-neutral live transcription result.
IIntelligenceUsageProvider-neutral usage counters.
IIntelligenceVideoGenerationOptionsProvider-neutral video generation options.
IIntelligenceVideoGenerationResultProvider-neutral video generation result.

Type Aliases ​

Type AliasDescription
IIntelligenceModelMessageProvider-neutral conversation message.
IIntelligencePromptModelRequirementModel selection requested by a reusable intelligence prompt.
IIntelligenceSchemaProvider-neutral schema accepted by prompts, structured outputs, and tools.
IntelligenceCapabilityIntelligence capability identifier.
IntelligenceDefaultModelsCapability-specific default provider and model references.
IntelligenceJsonValueJSON-compatible value used by provider-neutral intelligence contracts.
IntelligencePromptCapabilityProvider-neutral capability required by an intelligence prompt.
IntelligencePromptDefinitionConfigurationConfiguration accepted by intelligencePrompt.
IntelligencePromptGenerationOptionsNative generation settings that can be stored on a prompt definition.
IntelligencePromptLatencyLatency profile requested by an intelligence prompt.
IntelligencePromptModeSupported execution modes for reusable intelligence prompts.
IntelligencePromptQualityProvider-neutral model quality requested by an intelligence prompt.
IntelligencePromptReasoningProvider-neutral reasoning effort requested by an intelligence prompt.
IntelligenceProviderNameRepresents the union of supported intelligence provider identifiers.
IntelligenceProviderOptionsProvider-specific request options kept behind an explicit escape hatch.
IntelligenceProviderProbeStatusNormalized provider availability state.
IntelligenceProviderToolOptionsOpaque provider-tool configuration accepted only by provider-specific subpaths.
IntelligenceRealtimeClientEventProvider-neutral event sent from an application to a realtime model.
IntelligenceRealtimeConnectionModeConnection mechanisms supported by the AI SDK realtime model contract.
IntelligenceRealtimeConversationHistoryStatusOutcome of handing earlier conversation turns to a new browser-owned WebRTC session.
IntelligenceRealtimeMetadataValueSerializable metadata copied into realtime metering events.
IntelligenceRealtimeMeteringEventDurable metering event emitted by an Archipel realtime session.
IntelligenceRealtimeServerEventProvider-neutral event emitted by a realtime model.
IntelligenceRealtimeStatusDescribes the lifecycle state of an upstream realtime model connection.
IntelligenceRealtimeWebRTCTerminationStatusOutcome of ending a browser-owned WebRTC realtime session from the server.
IntelligenceRequestTimeoutsCapability-specific total request timeouts in milliseconds.
IntelligenceToolChoiceProvider-neutral tool-selection policy.
IntelligenceToolOutputProvider-neutral tool result.
IntelligenceToolSetProvider-neutral named tool collection.
IntelligenceTranscriptionStreamPartProvider-neutral live transcription event.
IntelligenceValidationStageUnion type derived from IntelligenceValidationStages.

Variables ​

VariableDescription
AI_GATEWAY_API_KEYVercel AI Gateway API key.
AI_GATEWAY_BASE_URLVercel AI Gateway base URL.
AI_GATEWAY_CONFIG_ENTRIESConfiguration entries used by the Vercel AI Gateway provider.
ANTHROPIC_API_KEYAnthropic-specific API key.
ANTHROPIC_BASE_URLAnthropic-specific base URL.
ANTHROPIC_CONFIG_ENTRIESConfiguration entries used by the Anthropic intelligence provider.
AnthropicIntelligenceToolNamesAnthropic provider-defined tool names exposed through Archipel.
GEMINI_API_KEYGoogle-specific Gemini API key alias.
GOOGLE_API_KEYGoogle-specific API key.
GOOGLE_BASE_URLGoogle-specific base URL.
GOOGLE_CONFIG_ENTRIESConfiguration entries used by the Google intelligence provider.
GoogleIntelligenceToolNamesGoogle provider-defined tool names exposed through Archipel.
GROK_API_KEYGrok-specific API key.
GROK_BASE_URLGrok-specific base URL.
GROK_CONFIG_ENTRIESConfiguration entries used by the Grok intelligence provider.
GrokIntelligenceToolNamesGrok provider-defined tool names exposed through Archipel.
INTELLIGENCE_API_KEYGlobal API key override for the intelligence provider.
INTELLIGENCE_BASE_URLGlobal base URL override for the intelligence provider.
INTELLIGENCE_MAX_OUTPUT_TOKENSMaximum number of output tokens for the AI model.
INTELLIGENCE_MODELAI model identifier to use for text generation.
INTELLIGENCE_PROVIDERIntelligence provider name (e.g. openai, anthropic, google, grok, mimo, gateway).
INTELLIGENCE_TEMPERATURESampling temperature for the AI model.
INTELLIGENCE_TOP_PTop-p (nucleus sampling) for the AI model.
IntelligenceCapabilityNamesCapability identifiers understood by the intelligence provider registry.
IntelligenceProviderNamesEnumerates the supported model providers powering the intelligence pipeline.
IntelligenceRealtimeConversationHistoryLimitsProvider-neutral bounds of the conversation history that a new browser-owned WebRTC session can receive.
IntelligenceValidationStagesIdentifies which side of a provider call failed validation.
MIMO_API_KEYMiMo-specific API key.
MIMO_BASE_URLMiMo-specific base URL.
MIMO_CONFIG_ENTRIESConfiguration entries used by the MiMo intelligence provider.
OPENAI_API_KEYOpenAI-specific API key.
OPENAI_BASE_URLOpenAI-specific base URL.
OPENAI_CONFIG_ENTRIESConfiguration entries used by the OpenAI intelligence provider.
OpenAIIntelligenceToolNamesOpenAI provider-defined tool names exposed through Archipel.
PLATFORM_INTELLIGENCE_CONFIG_ENTRIESProvider-neutral configuration entries required by platform-intelligence.
XAI_API_KEYxAI-specific API key alias for Grok.
XAI_BASE_URLxAI-specific base URL alias for Grok.

Functions ​

FunctionDescription
createAnthropicAdvisor20260301ToolCreates an Anthropic advisor tool registration.
createAnthropicBash20241022ToolCreates an Anthropic bash tool registration for the 2024-10-22 version.
createAnthropicBash20250124ToolCreates an Anthropic bash tool registration for the 2025-01-24 version.
createAnthropicCodeExecution20250522ToolCreates an Anthropic code-execution tool registration for the 2025-05-22 version.
createAnthropicCodeExecution20250825ToolCreates an Anthropic code-execution tool registration for the 2025-08-25 version.
createAnthropicCodeExecution20260120ToolCreates an Anthropic code-execution tool registration for the 2026-01-20 version.
createAnthropicComputer20241022ToolCreates an Anthropic computer-use tool registration for the 2024-10-22 version.
createAnthropicComputer20250124ToolCreates an Anthropic computer-use tool registration for the 2025-01-24 version.
createAnthropicComputer20251124ToolCreates an Anthropic computer-use tool registration for the 2025-11-24 version.
createAnthropicMemory20250818ToolCreates an Anthropic memory tool registration.
createAnthropicTextEditor20241022ToolCreates an Anthropic text-editor tool registration for the 2024-10-22 version.
createAnthropicTextEditor20250124ToolCreates an Anthropic text-editor tool registration for the 2025-01-24 version.
createAnthropicTextEditor20250429ToolCreates an Anthropic text-editor tool registration for the 2025-04-29 version.
createAnthropicTextEditor20250728ToolCreates an Anthropic text-editor tool registration for the 2025-07-28 version.
createAnthropicToolSearchBM2520251119ToolCreates an Anthropic BM25 tool-search tool registration.
createAnthropicToolSearchRegex20251119ToolCreates an Anthropic regex tool-search tool registration.
createAnthropicWebFetch20250910ToolCreates an Anthropic web-fetch tool registration for the 2025-09-10 version.
createAnthropicWebFetch20260209ToolCreates an Anthropic web-fetch tool registration for the 2026-02-09 version.
createAnthropicWebSearch20250305ToolCreates an Anthropic web-search tool registration for the 2025-03-05 version.
createAnthropicWebSearch20260209ToolCreates an Anthropic web-search tool registration for the 2026-02-09 version.
createGoogleCodeExecutionToolCreates a Google code-execution tool registration.
createGoogleEnterpriseWebSearchToolCreates a Google enterprise-web-search tool registration.
createGoogleFileSearchToolCreates a Google file-search tool registration.
createGoogleGoogleMapsToolCreates a Google Maps grounding tool registration.
createGoogleGoogleSearchToolCreates a Google Search grounding tool registration.
createGoogleUrlContextToolCreates a Google URL context tool registration.
createGoogleVertexRagStoreToolCreates a Google Vertex RAG Store tool registration.
createGrokCodeExecutionToolCreates a Grok code-execution tool registration.
createGrokFileSearchToolCreates a Grok file-search tool registration.
createGrokMcpServerToolCreates a Grok MCP server tool registration.
createGrokViewImageToolCreates a Grok image-understanding tool registration.
createGrokViewXVideoToolCreates a Grok X-video understanding tool registration.
createGrokWebSearchToolCreates a Grok web-search tool registration.
createGrokXSearchToolCreates a Grok X-search tool registration.
createIntelligenceJsonSchemaCreates a provider-neutral JSON Schema wrapper.
createIntelligenceToolCreates an Archipel intelligence tool registration.
createMimoCustomToolCreates a provider-neutral function tool for MiMo.
createOpenAIApplyPatchToolCreates an OpenAI apply-patch tool registration.
createOpenAICodeInterpreterToolCreates an OpenAI code-interpreter tool registration.
createOpenAICustomToolCreates an OpenAI custom provider-defined tool registration.
createOpenAIFileSearchToolCreates an OpenAI file-search tool registration.
createOpenAIImageGenerationToolCreates an OpenAI image-generation tool registration.
createOpenAILocalShellToolCreates an OpenAI local-shell tool registration.
createOpenAIMcpToolCreates an OpenAI MCP connector tool registration.
createOpenAIShellToolCreates an OpenAI shell tool registration.
createOpenAIToolSearchToolCreates an OpenAI tool-search tool registration.
createOpenAIWebSearchPreviewToolCreates an OpenAI web-search-preview tool registration.
createOpenAIWebSearchToolCreates an OpenAI web-search tool registration.
defineIntelligenceToolDefines a provider-neutral intelligence tool while preserving its input and output types.
intelligencePromptCreates a reusable intelligence prompt definition.
provideIntelligenceToolsCreates a feature-owned Nest provider that contributes existing tool providers to the application-wide intelligence registry during module bootstrap.
validateIntelligenceSchemaValidates a value through an Archipel schema without exposing the underlying schema library.

Released under the MIT License.