Reference

Streaming

Push real-time progress to the frontend from a long-running method.
import { stream } from '@mindstudio-ai/agent';

A long-running method does not have to leave the user watching a spinner. stream pushes progress from the backend to the frontend while the work runs: accumulating text, or structured status objects. Any SDK action's log can be piped through it, so each step reports itself as it goes. It costs nothing when no one is listening, so it is always safe to leave in.

2 entries
Methods 1
Types 1