import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const response = await client.invocations.follow('id');
console.log(response);{
"event": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"message": "<string>"
}Establishes a Server-Sent Events (SSE) stream that delivers real-time logs and status updates for an invocation. The stream terminates automatically once the invocation reaches a terminal state.
import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const response = await client.invocations.follow('id');
console.log(response);{
"event": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"message": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The invocation ID to follow.
Show logs since the given time (RFC timestamps or durations like 5m).
"2025-06-20T12:00:00Z"
SSE stream of invocation state updates and logs.