AIDK API Reference / aidk-react / UseExecutionReturn
Interface: UseExecutionReturn ​
Defined in: packages/react/src/hooks/useExecution.ts:30
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
clearMessages | () => void | Clear messages and reset state | packages/react/src/hooks/useExecution.ts:52 |
error | Error | null | Last error | packages/react/src/hooks/useExecution.ts:50 |
isStreaming | boolean | Whether currently streaming | packages/react/src/hooks/useExecution.ts:44 |
messages | Message[] | Accumulated messages | packages/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 |
threadId | string | null | Current thread ID | packages/react/src/hooks/useExecution.ts:48 |