From 2de4fa07c12d5c055dd564c94133dbd37bb21a4d Mon Sep 17 00:00:00 2001 From: narawat Date: Fri, 7 Aug 2026 10:19:55 +0700 Subject: [PATCH] update --- src/agentCore.jl | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/agentCore.jl b/src/agentCore.jl index d19313d..21c7dfa 100644 --- a/src/agentCore.jl +++ b/src/agentCore.jl @@ -176,7 +176,22 @@ function _process_message(agent::yiemAgent)::assistantMessage # loop until llmCall() response didn't use tool calls final_response = nothing while true - #WORKING check + + """ example message in agent.inputChannel + Dict( + "role" => "user", + "content" => [ + Dict("type" => "text", "text" => "Do you have something similar to the one in the image?"), + Dict( + "type" => "image_url", + "image_url" => Dict("url" => data_uri) + ) + ] + ), + """ + + # check agent.inputChannel if there are, use OpenAiToUserMessage() to convert them into + # userMessage type and push to agent._state.messages. # call agent.prepareContext()