Interface: LogContext
Defined in: packages/workflow-engine/src/ai/types.ts:367
Context for logging to workflow persistence (optional). When provided, batch operations can log to the database.
Properties
createLog
createLog: (
data) =>Promise<void>
Defined in: packages/workflow-engine/src/ai/types.ts:371
Function to create a log entry in persistence
Parameters
data
level
"DEBUG" | "INFO" | "WARN" | "ERROR"
message
string
metadata?
Record<string, unknown>
workflowRunId
string
workflowStageId
string
Returns
Promise<void>
stageRecordId
stageRecordId:
string
Defined in: packages/workflow-engine/src/ai/types.ts:369
workflowRunId
workflowRunId:
string
Defined in: packages/workflow-engine/src/ai/types.ts:368