Agent Console
Headless agent console foundation for messages, tool calls, artifacts, diagnostics and local status state.
@zeus-web/agent-consoleAdvancedGenerated
Playground
Source
Choose the framework entry that matches your application.
html
<script type="module">
import '@zeus-web/agent-console/wc/auto'
const agentConsole = document.querySelector('#agent-run')
const startedAt = Date.now()
agentConsole.status = 'running'
agentConsole.messages = [
{
id: 'message-1',
role: 'assistant',
content: 'Inspecting the workspace.',
status: 'complete',
createdAt: startedAt,
updatedAt: startedAt,
},
]
agentConsole.componentOnReady().then(() => {
agentConsole.appendMessage({
role: 'assistant',
content: 'Done.',
})
})
</script>
<zw-agent-console id="agent-run"></zw-agent-console>tsx
import {
AgentConsole,
type AgentConsoleProps,
} from '@zeus-web/agent-console/react'
const startedAt = Date.now()
const messages: NonNullable<AgentConsoleProps['messages']> = [
{
id: 'message-1',
role: 'assistant',
content: 'Inspecting the workspace.',
status: 'complete',
createdAt: startedAt,
updatedAt: startedAt,
},
]
export function AgentRun() {
return <AgentConsole status="running" messages={messages} />
}vue
<script setup lang="ts">
import { AgentConsole } from '@zeus-web/agent-console/vue'
const startedAt = Date.now()
const messages = [
{
id: 'message-1',
role: 'assistant',
content: 'Inspecting the workspace.',
status: 'complete',
createdAt: startedAt,
updatedAt: startedAt,
},
]
</script>
<template>
<AgentConsole status="running" :messages="messages" />
</template>When to use
- Use it when building an AI assistant console UI.
- Use it when a local state model is needed for messages, tool calls, artifacts and diagnostics.
- Use it before adding a real provider adapter.
When not to use
- Do not treat it as a model request library.
- Do not use it as a direct OpenAI, Anthropic or DeepSeek client.
- Do not use it when only a basic chat transcript is needed.
- Do not put API keys or network transport inside templates.
Install
bash
pnpm add @zeus-web/agent-consoleComponent family
zw-agent-console
Slots
zw-agent-console
timelinetoolsartifactsContentdiagnosticsContent
Events
zw-agent-console
agent-eventstatus-changeartifact-selectreset
Methods
zw-agent-console
appendMessageupdateMessagestartToolCallfinishToolCalladdArtifactselectArtifactaddDiagnosticsetStatusgetStategetEventsreset
Examples
React package usage
Use the generated Agent Console wrapper from the advanced package.
tsx
import { AgentConsole } from '@zeus-web/agent-console/react'
export function Example() {
return <AgentConsole />
}AI usage hints
- Keep business request logic in the application layer.
- Generate local UI only.
- Do not add fetch, WebSocket, EventSource or provider SDK usage.
- Use appendMessage, startToolCall and addArtifact methods for local state transitions.