Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/langbase/src/langbase/workflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ export class Workflow {
private originalMethods: Map<string, Function> = new Map();
public readonly step: <T = any>(config: StepConfig<T>) => Promise<T>;

constructor(config: WorkflowConfig) {
constructor(config?: WorkflowConfig) {
this.context = {outputs: {}};
this.debug = config.debug ?? false;
this.name = config.name ?? 'workflow';
this.langbase = config.langbase;
this.debug = config?.debug ?? false;
this.name = config?.name ?? 'workflow';
this.langbase = config?.langbase;

// Only initialize tracing if langbase is provided
if (this.langbase) {
Expand Down
Loading