diff --git a/src/agentCore.jl b/src/agentCore.jl index ff4089f..e913e49 100644 --- a/src/agentCore.jl +++ b/src/agentCore.jl @@ -37,11 +37,11 @@ mutable struct yiemAgent <: agent # High-level agent wrapper # Convert prepareContext()'s new Vector{agentMessage} to LLM message format formatMsgForLLM::Function - # Actually invoke the LLM to get a completion response. The LLM response comes back as an - # assistantMessage whose content is an array of content blocks. + # A callable struct. Actually invoke the LLM to get a completion response. + # The LLM response comes back as an assistantMessage whose content is an array of content blocks. # Each block has a type — "text", "thinking", or "toolCall". # The code filters for type === "toolCall" blocks, then passes them to executeToolCalls(). - llmCall::Function + llmCall # Callback invoked before executing a tool call (ask for user permission/confirmation/abort, etc..) beforeToolCall::Union{Function, Nothing}