We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a87052b commit dea97f6Copy full SHA for dea97f6
1 file changed
composeApp/src/commonMain/kotlin/dev/johnoreilly/climatetrace/agent/ClimateTraceAgentProvider.kt
@@ -44,7 +44,7 @@ class ClimateTraceAgentProvider(
44
var inputMessage = initialInput
45
var lastAssistantMessage = ""
46
47
- repeat(50) { // align with agentConfig.maxAgentIterations
+ while (inputMessage.isNotEmpty()) {
48
println("Calling LLM with Input = $inputMessage")
49
var responses = requestLLMMultiple(inputMessage)
50
@@ -124,13 +124,10 @@ class ClimateTraceAgentProvider(
124
onToolCallEvent("Tool ${ctx.toolName}, args ${ctx.toolArgs}")
125
}
126
127
-
128
onAgentExecutionFailed { ctx ->
129
onErrorEvent("${ctx.throwable.message}")
130
131
132
133
134
onAgentCompleted { _ ->
135
// Skip finish event handling
136
0 commit comments