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
| Prop | Type | Default | Description |
|---|---|---|---|
agentId | string | undefined | ID of the agent to edit; omit for a new agent |
endpoint | string | '/api/admin/ai/agents' | Base API endpoint |
loading | boolean | false | Show loading skeleton |
models | string[] | ['gpt-4o', 'claude-sonnet-4-6'] | Available model options |
showAdvanced | boolean | true | Show 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
