import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs({
apiKey: process.env['BRAINBASE_LABS_API_KEY'], // This is the default and can be omitted
});
await client.workers.runtimeErrors.record('workerId', {
error: 'error',
service: 'service',
type: 'type',
});import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs({
apiKey: process.env['BRAINBASE_LABS_API_KEY'], // This is the default and can be omitted
});
await client.workers.runtimeErrors.record('workerId', {
error: 'error',
service: 'service',
type: 'type',
});Documentation Index
Fetch the complete documentation index at: https://docs.usebrainbase.com/llms.txt
Use this file to discover all available pages before exploring further.
API key authentication
Error type/class (e.g., "ValueError", "RuntimeError")
Service that generated the error (e.g., "based_engine", "sms")
Error message
Full stack trace
warning, error, critical Function being executed when error occurred
Line number in Based code
Additional context
Deployment ID (optional)
Flow ID (used to lookup deployment if deploymentId not provided)
Session ID for trace correlation
Runtime error recorded successfully