diff --git a/frontend/src/lib/components/flows/content/AgentResourceBar.svelte b/frontend/src/lib/components/flows/content/AgentResourceBar.svelte index c091450e11..414ab459ad 100644 --- a/frontend/src/lib/components/flows/content/AgentResourceBar.svelte +++ b/frontend/src/lib/components/flows/content/AgentResourceBar.svelte @@ -4,11 +4,14 @@ import Badge from '$lib/components/common/badge/Badge.svelte' import Path from '$lib/components/Path.svelte' import Label from '$lib/components/Label.svelte' + import Required from '$lib/components/Required.svelte' + import ResourcePathHint from '$lib/components/ResourcePathHint.svelte' + import GfmMarkdown from '$lib/components/GfmMarkdown.svelte' import autosize from '$lib/autosize' import { ResourceService, type InputTransform, type Resource } from '$lib/gen' import { workspaceStore } from '$lib/stores' import { sendUserToast } from '$lib/toast' - import { Bot, ChevronDown, ChevronUp, Save, Unlink, Pencil } from 'lucide-svelte' + import { Bot, ChevronDown, ChevronUp, Pen, Save, Unlink, Pencil } from 'lucide-svelte' import { AGENT_BRAIN_KEYS, AGENT_FLOW_LOCAL_KEYS, @@ -85,6 +88,7 @@ let newPath = $state('') let pathError = $state('') let description = $state('') + let editDescription = $state(false) let saving = $state(false) type LinkedInfo = { @@ -612,7 +616,11 @@ Save this AI agent's configuration and tools as a reusable resource. Other flows can then link to it, and updates propagate automatically.

+ - +
+

Description +

+ {#if editDescription} +
+
GH Markdown
+ +
+ {:else if description == undefined || description == ''} +
No description provided
+ {:else} + + {/if} +
{#if providerSaveError}

{providerSaveError}