fix(ui): agent profile fields say what they accept and what empty means (#1875)
This commit is contained in:
1 file changed
+6
-3
@@ -74,15 +74,18 @@ onMounted(() => {
|
||||
<template #default="{ item: [key, profile] }">
|
||||
<FieldGroup class="@container/field-group">
|
||||
<Field orientation="responsive">
|
||||
<FieldContent><FieldLabel :for="`${key}-image`">Image</FieldLabel></FieldContent>
|
||||
<FieldContent>
|
||||
<FieldLabel :for="`${key}-image`">Image</FieldLabel>
|
||||
<FieldDescription>Container image reference, such as registry/name:tag. Empty uses the image from Container runtime.</FieldDescription>
|
||||
</FieldContent>
|
||||
<div class="flex min-w-0 flex-wrap items-center gap-3 @md/field-group:flex-1">
|
||||
<Input :id="`${key}-image`" :model-value="profile.image" placeholder="Container image" @update:model-value="(v) => patch(key, { image: String(v) })" />
|
||||
<Input :id="`${key}-image`" :model-value="profile.image" placeholder="registry/name:tag" @update:model-value="(v) => patch(key, { image: String(v) })" />
|
||||
</div>
|
||||
</Field>
|
||||
<Field orientation="responsive">
|
||||
<FieldContent>
|
||||
<FieldLabel :for="`${key}-tools`">Tools</FieldLabel>
|
||||
<FieldDescription>Comma-separated tool names.</FieldDescription>
|
||||
<FieldDescription>Names of the MCP servers, repository scripts and skills the agent may use. Empty allows all of them.</FieldDescription>
|
||||
</FieldContent>
|
||||
<div class="flex min-w-0 flex-wrap items-center gap-3 @md/field-group:flex-1">
|
||||
<TagsInput :id="`${key}-tools`" class="flex-1" :model-value="profile.tools ?? []" :aria-label="`${key} tools`" @update:model-value="(v) => patch(key, { tools: v.map(String) })">
|
||||
|
||||
Reference in new issue
Block a user