useClientToolCalls
Unpublished development API. This package is under development and is not available as a published release.
A renderToolCallPrompt for MessageList that draws waiting ask tools below the message's tool
calls. Chat does this itself through its clientTools prop. The function changes only when a
call starts or stops waiting, so rows keep their memo otherwise.
import { useClientToolCalls } from '@threadplane/react/chat';Declaration · overload 1
export declare function useClientToolCalls<TCall extends ClientToolCallLike>(clientTools: ChatClientTools | undefined): ((call: TCall) => ReactNode) | undefined;Type parameters
TCallClientToolCallLike
Parameters
clientTools· requiredChatClientTools | undefined
Returns
((call: TCall) => ReactNode) | undefined