DocsReact CorehooksUseAgentActionReturn
Package: @hexos/react-core

Return type of the useAgentAction hook, providing execution controls and state.

interface UseAgentActionReturn<TInput> {
    execute: (input: TInput) => Promise<void>;
    isExecuting: boolean;
    error: Error | null;
    lastResult: unknown;
    clearError: () => void;
}

execute

(input: TInput) => Promise

isExecuting

boolean

error

Error | null

lastResult

unknown

clearError

() => void