EntityStream — consumes a live async-iterable of StreamEvents and renders the accumulating text in real time.
<EntityStream stream={myAgentStream} mappings={[{ entityType: "Draft", pointer: "/draft", kind: "single" }]} onComplete={(text) => setGeneratedText(text)}/> Copy
<EntityStream stream={myAgentStream} mappings={[{ entityType: "Draft", pointer: "/draft", kind: "single" }]} onComplete={(text) => setGeneratedText(text)}/>
EntityStream — consumes a live async-iterable of StreamEvents and renders the accumulating text in real time.