Components/Agents
Universal Component

Agents

loadingbadge/

This page was migrated by AI, please review carefully

Migration is complete, but please validate against source code and manual review.

Agents

loadingbadge/

import { ref } from 'vue' const selectedId = ref<string | null>('chat') const loading = ref(false) const agents = [ { id: 'chat', name: 'Chat Agent', description: 'General conversation assistant', iconClass: 'i-carbon-chat', badgeText: 6, }, { id: 'code', name: 'Code Agent', description: 'Code generation & refactor', iconClass: 'i-carbon-code', badgeText: 12, }, { id: 'search', name: 'Search Agent', description: 'Web search & citations', iconClass: 'i-carbon-search', }, { id: 'disabled', name: 'Disabled Agent', description: 'Not available', iconClass: 'i-carbon-bot', disabled: true, }, ]

Basic Usage

AgentsList

Demo loads on client.

API

TxAgentsList

Props

PropTypeDefaultDescription
agentsAgentItemProps[]-Description for agents.
selectedIdstring | nullnullDescription for selectedId.
loadingbooleanfalseDescription for loading.

Events

EventParamsDescription
select(id: string)Description for select.

TxAgentItem

Props

PropTypeDefaultDescription
idstring-Description for id.
namestring-Description for name.
descriptionstring''Description for description.
iconClassstring'i-carbon-bot'Description for iconClass.
selectedbooleanfalseDescription for selected.
disabledbooleanfalseDescription for disabled.
badgeTextstring | number''badge Text
Was this helpful?