Skip to content

Function: buildCardResult()

buildCardResult(spec): object

Compile a spec into the tool/route result shape: the validated Adaptive Card document plus the title echoed back for a caller that wants a label without re-reading the document.

object[] = ...

object[] = ...

string = ...

string = ...

string = ...

object

card: object

$schema: string

optional actions?: Record<string, unknown>[]

body: Record<string, unknown>[]

type: "AdaptiveCard"

version: string

title: string