Files
windmill/frontend/src/lib/components/flows/common/FlowCard.svelte
T
hugocasa 958e8af782 feat: ai agent steps (#6393)
* feat: ai agent steps base

* better backend and graph

* feat: anthropic, log viewer

* nit

* fix(frontend): hide tool nodes from timeline

* move ai agent actions from flow status to flow status module

* nits and workspace/hub scripts support

* tmp ref

* fix merge

* feat: display agent tools status in the graph

* fix reactivity

* fix flow status

* nit
2025-08-20 22:40:57 +00:00

41 lines
897 B
Svelte

<script lang="ts">
import type { FlowModuleValue } from '$lib/gen'
import FlowCardHeader from './FlowCardHeader.svelte'
interface Props {
title?: string | undefined
summary?: string | undefined
noEditor: boolean
noHeader?: boolean
flowModuleValue?: FlowModuleValue | undefined
header?: import('svelte').Snippet
children?: import('svelte').Snippet
isAgentTool?: boolean
}
let {
title = undefined,
summary = $bindable(undefined),
noEditor,
noHeader = false,
flowModuleValue = undefined,
header,
children,
isAgentTool = false
}: Props = $props()
</script>
<div class="flex flex-col h-full">
{#if !noEditor && !noHeader}
<div>
<FlowCardHeader on:setHash on:reload {title} bind:summary {flowModuleValue} {isAgentTool}>
{@render header?.()}
</FlowCardHeader>
</div>
{/if}
<div class="min-h-0 flex-grow">
{@render children?.()}
</div>
</div>