Skip to content

AIDK API Reference / aidk-react / UseExecutionReturn

Interface: UseExecutionReturn ​

Defined in: packages/react/src/hooks/useExecution.ts:30

Properties ​

PropertyTypeDescriptionDefined in
clearMessages() => voidClear messages and reset statepackages/react/src/hooks/useExecution.ts:52
errorError | nullLast errorpackages/react/src/hooks/useExecution.ts:50
isStreamingbooleanWhether currently streamingpackages/react/src/hooks/useExecution.ts:44
messagesMessage[]Accumulated messagespackages/react/src/hooks/useExecution.ts:46
sendMessage(input: MessageInput, threadId?: string) => Promise<void>Send a message and stream the response.packages/react/src/hooks/useExecution.ts:42
threadIdstring | nullCurrent thread IDpackages/react/src/hooks/useExecution.ts:48

Released under the MIT License.