Installation¶
Requirements¶
| Requirement | Version |
|---|---|
| Drupal core | ^11.2 or ^12 |
| PHP | 8.2 or higher |
| FlowDrop | ^2.0 (the flowdrop and flowdrop_node_category modules) |
| AI Context | ^1.0 beta |
To feed the output to an AI agent you also need FlowDrop Agents, which provides the AI Agent Executor node. The agent picker on the AI Context node reads its agent list from FlowDrop Agents as well. Without it the picker shows no agents, and the rest of the node works.
Install¶
composer require drupal/flowdrop_ai_context
drush en flowdrop_ai_context
Installing the module creates:
- the AI Context node category in the FlowDrop palette;
- the AI Context Item node type (
flowdrop_ai_context_injector); - the AI Context node type (
flowdrop_ai_context_dynamic_selector).
Updating¶
Run database updates after every update of the module:
drush updb
The update functions keep existing sites in line with new installs:
- move both node types into the AI Context category;
- install a node type that is missing because it shipped after the module was first installed;
- rename the node types from "AI Context Injector" and "AI Context Selector" to "AI Context Item" and "AI Context", unless a site changed the label;
- remove the
max_itemsparameter from the AI Context node type and from AI Context nodes in saved workflows. AI Context no longer limits a selection by item count; the token budget is the only limit.