Documentation Gaps
When to Use
Use this guide when the official documentation doesn't match actual behavior.
Gaps identified by comparing official docs to actual code through 1.4.2. New in 1.4.0-rc1: ChatProcessor plugin system, global guardrails, and AiExceptionEvent are not yet in official docs. New in 1.4.2: ai_file entity, ai.file_manager service, AiFileProviderInterface, ChatWithPdf capability, restrict_to_topic guardrail, and StreamableGuardrailInterface are not yet in official docs.
Each gap below names where this guide set covers it, or marks it as still undocumented anywhere.
Core Module
- ProviderProxy wrapping pattern undocumented — covered in Core Architecture
- Guardrails system has no developer guide — covered in Guardrails System
- Short-term memory plugin system undocumented — covered in Short-Term Memory
AiDataTypeConverterplugin system undocumented — still undocumented- Prompt config entity system (
ai.ai_prompt) minimally documented — covered in Prompt System ai.text_chunkerservice not in developer guide — still undocumented- ChatProcessor plugin type (1.4) — covered in Core Architecture and AI Chatbot
AiExceptionEvent(1.4) — covered in Events System- Global guardrails in
ai.settings(1.4) — covered in Guardrails System ai_filecontent entity,ai.file_managerservice (1.4.2) — covered in Core Architecture and Operation TypesAiFileProviderInterface(1.4.2) — covered in Provider SystemChatWithPdfcapability (1.4.2) — covered in Enums & DTOsStreamableGuardrailInterfaceandrestrict_to_topicguardrail (1.4.2) — covered in Guardrails System
ai_assistant_api
use_function_callingmode (tool calls vs JSON-in-prompt) not documented — covered in AI Assistant APIAgentRunnerpath (assistant delegates to ai_agents) not documented — covered in AI Assistant API and AI AgentssetVerboseMode(),setThrowException()undocumented — covered in AI Assistant API- Specific error message overrides on entity undocumented — covered in AI Assistant API
AiAssistantPassContextToAgentEventnot in docs — covered in AI Assistant API
ai_chatbot
- Full POST payload schema for
/api/deepchatnot documented — covered in AI Chatbot should_continueprotocol for tool-call round-trips not documented — covered in AI Chatbotverbose_mode,show_copy_icon,show_structured_resultsblock settings undocumented — covered in AI Chatbot- CSRF token acquisition flow incomplete in docs — covered in AI Chatbot
hook_deepchat_prepend_messagenot documented — covered in AI Chatbot
ai_automators
AutomatorsToolentity and function-calling integration undocumented — covered in AI Automators- All 4 events (
AutomatorConfigEvent,ProcessFieldEvent,ValuesChangeEvent,RuleIsAllowedEvent) undocumented — covered in AI Automators ViewsExtractorplugin undocumented — listed in AI Automators- Full 52-plugin inventory not listed — covered in AI Automators
$settings['ai_automator_advanced_mode_enabled']undocumented — covered in AI Automators
ai_ckeditor
module_dependenciessilencing mechanism undocumented — covered in AI CKEditorReformatHtml,ModifyPrompt,Helpplugins undocumented — listed in AI CKEditorAiAutomatorsCKEditorcross-module plugin undocumented — covered in AI CKEditor- Global
ai_ckeditor.settingsprompts config undocumented — covered in AI CKEditor
ai_search
include_raw_embedding_vectorfeature undocumented — covered in AI SearchAiVdbProviderSearchApiInterfacerequirements undocumented — covered in AI Searchsearch_api_ai_get_chunks_resultquery option undocumented — covered in AI Search- Chunk preview tool in Fields form undocumented — still undocumented
ai_translate
- Drush commands (
ai:translate-entity,ai:translate-text) undocumented — covered in AI Translate hook_ai_translate_translation_alterundocumented — covered in AI TranslateChatTranslationProviderplugin undocumented — covered in AI Translate- Layout Builder translation integration undocumented — covered in AI Translate
- Programmatic API not documented — covered in AI Translate
ai_observability
- All config settings undocumented (docs is 5 sentences) — covered in AI Observability
- OpenTelemetry spans and metrics undocumented — covered in AI Observability
AiObservabilityUtilsundocumented — covered in AI Observability- Token usage tracking capabilities undocumented — covered in AI Observability
ai_validations
- XTRUE/XFALSE protocol is the critical missing piece — covered in AI Validations
- Image classification is deny-list (not allow-list) — not clarified — covered in AI Validations
- FieldValidation module version requirement not prominent — covered in AI Validations
field_widget_actions
FieldWidgetFormActionBasemodal pattern undocumented — covered in Field Widget ActionsFillEditorCommand/FillSimpleFieldCommandAjax commands undocumented — covered in Field Widget ActionsFORM_ELEMENT_PROPERTYconstant requirement undocumented — covered in Field Widget Actions- Config Action for Recipes (
SetupFieldWidgetAction) undocumented — covered in Field Widget Actions
ai_eca
- Docs describe a working module; actual code is a deprecated migration stub — see Deprecated Modules
ai_logging
prompt_logging_excluded_tagsundocumented — covered in AI Logging- Deprecation notice missing from docs — the module is deprecated; use AI Observability
See Also
- Reference: https://project.pages.drupalcode.org/ai/1.3.x/
- Reference: https://git.drupalcode.org/project/ai