From 4cb01c71bb9cfecaa9ff0c995cd7eb7639f8279b Mon Sep 17 00:00:00 2001 From: narawat Date: Wed, 5 Aug 2026 19:33:40 +0700 Subject: [PATCH] update --- src/agentCore.jl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/agentCore.jl b/src/agentCore.jl index 2c2cca7..c830f7e 100644 --- a/src/agentCore.jl +++ b/src/agentCore.jl @@ -81,7 +81,7 @@ function _agent_loop(agent::yiemAgent) while msg === nothing if isready(agent.inputChannel) - # message will be taken then process in _process_message() + # message will be taken in _process_message() msg = fetch!(agent.inputChannel) else yield() @@ -109,7 +109,7 @@ function _agent_loop(agent::yiemAgent) # make active if agent._state.activeRun == false # Dispatch message through the processing pipeline - processing_task = @spawn _process_message(agent, msg) + processing_task = @spawn _process_message(agent) agent._state.activeRun = true end @@ -173,7 +173,7 @@ should be implemented. Currently a placeholder that echoes back the received mes julia> # Currently returns a placeholder echo response ``` """ -function _process_message(agent::yiemAgent, msg)::assistantMessage +function _process_message(agent::yiemAgent)::assistantMessage # WORKING # loop until llmCall() response didn't use tool calls @@ -187,13 +187,13 @@ function _process_message(agent::yiemAgent, msg)::assistantMessage # Call llmCall() (blocking — the task waits here) - # if LLM use tool calls + # if (LLM use tool calls) # call executeToolCalls() # save toolResults to agent._state.messages - # else + # else (LLM not use tool calls) # break out of while loop end