Subscribe to a scoped tools (tool-call) stream. Same target and
lifecycle rules as useMessages; at the root this returns
stream.toolCalls directly.
useToolCalls(
stream: AnyStream,
target: MaybeRefOrGetter<SelectorTarget>
): Readonly<ShallowRef<AssembledToolCall[]>>| Name | Type | Description |
|---|---|---|
stream* | AnyStream | |
target | MaybeRefOrGetter<SelectorTarget> |