update
This commit is contained in:
+10
-7
@@ -176,18 +176,21 @@ julia> # Currently returns a placeholder echo response
|
||||
function _process_message(agent::yiemAgent, msg)::assistantMessage
|
||||
# WORKING
|
||||
|
||||
# take every messages from agent.inputChannel, convert them into userMessage
|
||||
# and add them to agent._state.messages
|
||||
# loop until LLM didn't use tool calls
|
||||
while
|
||||
# take every messages from agent.inputChannel, convert them into userMessage
|
||||
# and add them to agent._state.messages
|
||||
|
||||
# call agent.preprocessContext()
|
||||
# call agent.preprocessContext()
|
||||
|
||||
# Call agent.formatMsgForLLM(agent._state) to format for LLM
|
||||
# Call agent.formatMsgForLLM(agent._state) to format for LLM
|
||||
|
||||
# Call the LLM (blocking — the task waits here)
|
||||
# Call the LLM (blocking — the task waits here)
|
||||
|
||||
# call toolArgumentValidation() to make sure soon-to-call tools has valid arguments
|
||||
# call toolArgumentValidation() to make sure soon-to-call tools has valid arguments
|
||||
|
||||
# If agent has tools, handle tool calls in a loop
|
||||
# If agent has tools, handle tool calls in a loop, save tool
|
||||
end
|
||||
|
||||
# Build assistantMessage and return it
|
||||
|
||||
|
||||
Reference in New Issue
Block a user