Skip to content

Commit

Permalink
Make outputs and extra not optional in persist
Browse files Browse the repository at this point in the history
  • Loading branch information
vowelparrot committed May 10, 2023
1 parent ccf53cf commit 3fc1bf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions langchain/src/callbacks/handlers/tracers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -721,12 +721,12 @@ export class LangChainTracerV2 extends LangChainTracer {
end_time: run.end_time,
run_type: run.run_type,
reference_example_id: example_id,
extra: run.extra,
extra: run.extra ?? {},
execution_order: run.execution_order,
serialized: run.serialized,
error: run.error,
inputs: run.inputs,
outputs: run.outputs,
outputs: run.outputs ?? {},
session_id: run.session_id,
child_runs: await Promise.all(
run.child_runs.map((child_run) => this._convertToCreate(child_run))
Expand Down

0 comments on commit 3fc1bf5

Please sign in to comment.