import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const executionUpdateChunk = await client.devboxes.executions.streamStdoutUpdates(
'devbox_id',
'execution_id',
);
console.log(executionUpdateChunk.output);{
"output": "<string>",
"offset": 123
}Tails the stdout logs for the given execution with SSE streaming
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const executionUpdateChunk = await client.devboxes.executions.streamStdoutUpdates(
'devbox_id',
'execution_id',
);
console.log(executionUpdateChunk.output);{
"output": "<string>",
"offset": 123
}Documentation Index
Fetch the complete documentation index at: https://docs.runloop.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the devbox.
The ID of the execution.
The byte offset to start the stream from (if unspecified, starts from the beginning of the stream)
Was this page helpful?