Skip to content

Commit

Permalink
remove agent runningstate recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
sjorsdev committed May 1, 2024
1 parent ad9ca0c commit d0dbe4f
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ class AgentExecutor {
println("Waiting for permission for ${toolCall.name}")
delay(300)
}
if (status.value.runningState == AgentRunningState.WAITING_ON_APPROVAL) {
setRunningState(AgentRunningState.RUNNING)
}
setRunningState(AgentRunningState.EXECUTING_TOOL)
val result = tool.handler(functionArgs)
setRunningState(AgentRunningState.RUNNING)
Expand Down

0 comments on commit d0dbe4f

Please sign in to comment.