Open-source AI coworkers that each get a computer of their own: a browser, files and tools, with every action decided before it happens and recorded after. Bring any AG-UI agent.
import { createContext } from "react";
/**
* Whether the component is being drawn from a tool call that is still streaming.
*
* Provided by the conversation's gallery render. Everywhere else a component is drawn (a preview,
* an admin screen, a test) its arguments are complete, which is the default. A component reads it
* when something half written should be held in place rather than refused, and only then.
*/
export const GalleryStreamingContext = createContext(false);
/**
* Whether a call's arguments may still be arriving at all: its row is the newest of a turn that is
* still running. The SDK's own status cannot say this on its own. It reports `inProgress` for any
* call with no result, so a call whose run was stopped, or whose page closed before it answered,
* reloads as `inProgress` for good; held back on that, its last bar stayed muted forever.
*
* The transcript provides it per row. Anywhere else nothing is known, and the status decides.
*/
export const ArgumentsArrivingContext = createContext(true);