update
This commit is contained in:
+3
-3
@@ -37,11 +37,11 @@ mutable struct yiemAgent <: agent # High-level agent wrapper
|
|||||||
# Convert prepareContext()'s new Vector{agentMessage} to LLM message format
|
# Convert prepareContext()'s new Vector{agentMessage} to LLM message format
|
||||||
formatMsgForLLM::Function
|
formatMsgForLLM::Function
|
||||||
|
|
||||||
# Actually invoke the LLM to get a completion response. The LLM response comes back as an
|
# A callable struct. Actually invoke the LLM to get a completion response.
|
||||||
# assistantMessage whose content is an array of content blocks.
|
# 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".
|
# Each block has a type — "text", "thinking", or "toolCall".
|
||||||
# The code filters for type === "toolCall" blocks, then passes them to executeToolCalls().
|
# 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..)
|
# Callback invoked before executing a tool call (ask for user permission/confirmation/abort, etc..)
|
||||||
beforeToolCall::Union{Function, Nothing}
|
beforeToolCall::Union{Function, Nothing}
|
||||||
|
|||||||
Reference in New Issue
Block a user