X Enterprises
Ai

AIAgentEditor

AI agent configuration editor for setting name, model, system prompt, and parameters.

AIAgentEditor

Renders a form for creating or editing an AI agent's configuration: name, description, model selection, system prompt textarea, temperature slider, max tokens, and active toggle.

Components

<XAdminAIAgentEditor />

Displays a full agent configuration form supporting new agent creation and editing of existing agents.

<XAdminAIAgentEditor :agentId="agentId" />

Props

PropTypeDefaultDescription
agentIdstringundefinedID of the agent to edit; omit for a new agent
endpointstring'/api/admin/ai/agents'Base API endpoint
loadingbooleanfalseShow loading skeleton
modelsstring[]['gpt-4o', 'claude-sonnet-4-6']Available model options
showAdvancedbooleantrueShow advanced parameters (temperature, max tokens)

AI Context

component: XAdminAIAgentEditor
package: "@xenterprises/nuxt-x-app-admin"
category: AI
use-when: Creating or editing an AI agent's name, model, system prompt, and inference parameters in an admin panel
Copyright © 2026