From e622a522dc7008813dd47069ee063cf3381d4262 Mon Sep 17 00:00:00 2001 From: narawat Date: Tue, 4 Aug 2026 21:45:00 +0700 Subject: [PATCH] update --- src/type.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/type.jl b/src/type.jl index 37ab0fc..f283de3 100644 --- a/src/type.jl +++ b/src/type.jl @@ -369,11 +369,12 @@ mutable struct yiemAgent <: agent # High-level agent wrapper _task::Union{Task, Nothing} # Background task running the agent loop - formatMsgForLLM::Function # Convert agent messages to LLM message format - # Preprocess/transform messages and context (modify, filter, prune, inject, reorder, add context) # for a single LLM call in _process_message()'s loop returns new Vector{agentMessage} preprocessContext ::Union{Function, Nothing} + + # Convert preprocessContext()'s new Vector{agentMessage} to LLM message format + formatMsgForLLM::Function # Callback invoked before executing a tool call (ask for user permission/confirmation/abort, etc..) beforeToolCall::Union{Function, Nothing}