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, sessionId::Union{String, Nothing}=nothing,
maxRetryDelayMs::Union{Int64, Nothing}=nothing, maxRetryDelayMs::Union{Int64, Nothing}=nothing,
parallelToolExecute::Bool=false, parallelToolExecute::Bool=false,
agentEventSink::Function=agentEventSink, #WORKING agentEventSink::Function=agentEventSink,
) )
# Create channels: input (user -> agent), followUp (async queue), output (agent -> user) # Create channels: input (user -> agent), followUp (async queue), output (agent -> user)
inputChannel = Channel(16) inputChannel = Channel(16)
+1 -1
View File
@@ -342,7 +342,7 @@ agentState("You are a helpful assistant", OrderedDict{String, agentTool}(), agen
""" """
function agentState( function agentState(
systemPrompt::String="", 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), modelCost(0.0, 0.0, 0.0, 0.0), 0, 0),
tools::OrderedDict{String, agentTool}=OrderedDict{String, agentTool}(), tools::OrderedDict{String, agentTool}=OrderedDict{String, agentTool}(),
messages::Vector{agentMessage}=agentMessage[], 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 #WORKING load tools
text2text_llm = text2textInstructLLM(agent_conn, text2text_llm = text2textInstructLLM(agent_conn,
config["externalservice"]["servicesloadbalancer"]["nats"], config["externalservice"]["servicesloadbalancer"]["nats"],