File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,6 @@ protected override async Task<IChainValues> InternalCallAsync(IChainValues value
140
140
switch ( res . Value [ ReActAnswer ] )
141
141
{
142
142
case AgentAction :
143
- {
144
143
var action = ( AgentAction ) res . Value [ ReActAnswer ] ;
145
144
var tool = _tools [ action . Action . ToLower ( CultureInfo . InvariantCulture ) ] ;
146
145
var toolRes = await tool . ToolTask ( action . ActionInput , cancellationToken ) . ConfigureAwait ( false ) ;
@@ -150,13 +149,10 @@ await _conversationSummaryMemory.ChatHistory
150
149
await _conversationSummaryMemory . ChatHistory . AddMessage ( new Message ( "Thought:" , MessageRole . System ) )
151
150
. ConfigureAwait ( false ) ;
152
151
break ;
153
- }
154
152
case AgentFinish :
155
- {
156
153
var finish = ( AgentFinish ) res . Value [ ReActAnswer ] ;
157
154
values . Value [ OutputKeys [ 0 ] ] = finish . Output ;
158
155
return values ;
159
- }
160
156
}
161
157
}
162
158
You can’t perform that action at this time.
0 commit comments