AddXLQPGen1AI
Adds the XLQP AI interface and optional in-world companion behavior.
AddXLQPGen1AI
What it does
Adds the XLQP AI interface and optional in-world companion behavior.
When to use it
Use it when your project has configured an AI backend and needs chat, theme, or world-tool integration.
ElementFunction:AddXLQPGen1AI(AIConfig)
local XLQPAI = AITab:AddXLQPGen1AI({
Name = "XLQP Gen1 AI",
Default = "",
Height = 500,
Gui = true,
Moveable = true,
UltraAI = true,
CompanionEnabled = true,
FollowEnabled = true,
UsePlayerAnimations = true,
BubbleResponses = true,
ChatPromptsOnly = false,
WorldToolsEnabled = true,
ThemeToolsEnabled = true,
FollowDistance = 7,
WalkSpeed = 15,
CompanionName = "UltraAI Companion"
})Behavior and return value
Current agent system
This constructor now mounts the same agent as AddTextbox({Ai = true}). It accepts the new permission, effort, planner, context, and callback options documented in the AI agent guide, and retains its optional companion preferences.
The normal mounted controller supports Send, GetLastResponse, GetTools, CallTool, SetPermissionMode, SetEffort, SetMultiline, SetAgentPlanner, GetCurrentTask, AskQuestion, Show, and Hide. If the main agent UI cannot mount, the constructor creates a simpler fallback; do not assume the fallback implements the full tool-controller API.
Call this method on the compatible section, tab, panel, or element container shown by the signature. Store the returned value when you need to update, read, or destroy the element later.
Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.