Skip to content

AIDK API Reference / aidk / CompleteProps

Interface: CompleteProps ​

Defined in: packages/core/src/jsx/components/complete.tsx:38

Props for Complete component

Extends ​

  • ComponentBaseProps

Properties ​

PropertyTypeDescriptionInherited fromDefined in
children?| Element | Element[]Children to render as the final output. Typically an <Assistant> message with the final answer.-packages/core/src/jsx/components/complete.tsx:43
isError?booleanWhether the completion is due to an error condition. If true, the reason is treated as an error message.-packages/core/src/jsx/components/complete.tsx:54
key?string | numberKey for React-like reconciliation (optional). Used by compiler to track component instances across renders.ComponentBaseProps.keypackages/core/src/jsx/jsx-types.ts:22
reason?stringReason for completion (optional, used for logging/debugging)-packages/core/src/jsx/components/complete.tsx:48
ref?stringReference name for accessing this component instance. Use com.getRef<ComponentType>('myRef') to access the instance. Example <Fork ref="myFork" input={forkInput} /> const fork = com.getRef<ForkComponent>('myFork');ComponentBaseProps.refpackages/core/src/jsx/jsx-types.ts:16

Released under the MIT License.