This commit is contained in:
2026-08-12 04:33:19 +07:00
parent 06d51c1ee9
commit 6c96409969
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ function yiemAgent(
sessionId::Union{String, Nothing}=nothing,
maxRetryDelayMs::Union{Int64, Nothing}=nothing,
parallelToolExecute::Bool=false,
agentEventSink::Function=agentEventSink, #WORKING
agentEventSink::Function=agentEventSink,
)
# Create channels: input (user -> agent), followUp (async queue), output (agent -> user)
inputChannel = Channel(16)
+1 -1
View File
@@ -342,7 +342,7 @@ agentState("You are a helpful assistant", OrderedDict{String, agentTool}(), agen
"""
function agentState(
systemPrompt::String="",
model::llmModel=llmModel{String}("", "unknown", "unknown", "", false, String[],
model=llmModel("model_1", "unknown", "unknown", "", false, String[],
modelCost(0.0, 0.0, 0.0, 0.0), 0, 0),
tools::OrderedDict{String, agentTool}=OrderedDict{String, agentTool}(),
messages::Vector{agentMessage}=agentMessage[],
+5
View File
@@ -299,6 +299,11 @@ end
# model=YiemAgent.llmModel("model_1", "unknown", "unknown", "", false, String[],
# YiemAgent.modelCost(0.0, 0.0, 0.0, 0.0), 0, 0)
#WORKING load tools
text2text_llm = text2textInstructLLM(agent_conn,
config["externalservice"]["servicesloadbalancer"]["nats"],