Skip to content

Commit

Permalink
langchain[patch]: Fix passing run configs through in AgentExecutor (#…
Browse files Browse the repository at this point in the history
…5338)

* langchain[patch]: Fix passing run configs through in AgentExecutor

* chore: lint files
  • Loading branch information
bracesproul authored May 13, 2024
1 parent 4ce16de commit d3f3f29
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions langchain/src/agents/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ export class AgentExecutorIterator
async onFirstStep(): Promise<void> {
if (this.iterations === 0) {
const callbackManager = await CallbackManager.configure(
this.callbacks,
this.callbacks ?? this.config?.callbacks,
this.agentExecutor.callbacks,
this.tags,
this.tags ?? this.config?.tags,
this.agentExecutor.tags,
this.metadata,
this.metadata ?? this.config?.metadata,
this.agentExecutor.metadata,
{
verbose: this.agentExecutor.verbose,
Expand All @@ -176,9 +176,9 @@ export class AgentExecutorIterator
this.inputs,
undefined,
undefined,
this.tags,
this.metadata,
this.runName
this.tags ?? this.config?.tags,
this.metadata ?? this.config?.metadata,
this.runName ?? this.config?.runName
);
}
}
Expand Down

0 comments on commit d3f3f29

Please sign in to comment.