File tree 2 files changed +2
-10
lines changed
2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,8 @@ export class RunnableMultiActionAgent extends BaseMultiActionAgent {
315
315
super ( fields ) ;
316
316
this . runnable = fields . runnable ;
317
317
this . stop = fields . stop ;
318
- this . defaultRunName = fields . defaultRunName ?? this . defaultRunName ;
318
+ this . defaultRunName =
319
+ fields . defaultRunName ?? this . runnable . name ?? this . defaultRunName ;
319
320
this . streamRunnable = fields . streamRunnable ?? this . streamRunnable ;
320
321
}
321
322
Original file line number Diff line number Diff line change @@ -118,14 +118,5 @@ export function createToolCallingAgent({
118
118
singleAction : false ,
119
119
}
120
120
) ;
121
-
122
- // agent = (
123
- // RunnablePassthrough.assign(
124
- // agent_scratchpad=lambda x: format_to_tool_messages(x["intermediate_steps"])
125
- // )
126
- // | prompt
127
- // | llm_with_tools
128
- // | ToolsAgentOutputParser()
129
- // )
130
121
return agent ;
131
122
}
You can’t perform that action at this time.
0 commit comments