This commit is contained in:
narawat lamaiin
2024-08-02 06:47:28 +07:00
parent 9112f0767d
commit 51f91e8492
2 changed files with 4 additions and 4 deletions

View File

@@ -289,12 +289,12 @@ julia> result = checkinventory(agent, input)
"""
function checkinventory(a::T1, input::T2
)::NamedTuple{(:result, :success, :errormsg), Tuple{String, Bool, Union{String, Nothing}}} where {T1<:agent, T2<:AbstractString}
println("--> checkinventory input: $input ", @__FILE__, " ", @__LINE__)
wineattributes_1 = extractWineAttributes_1(a, input)
wineattributes_2 = extractWineAttributes_2(a, input)
inventoryquery = "$wineattributes_1, $wineattributes_2"
println("--> checkinventory: $inventoryquery")
println("--> checkinventory: $inventoryquery ", @__FILE__, " ", @__LINE__)
result = SQLLLM.query(inventoryquery, a.executeSQL, a.text2textInstructLLM)
return (result=result, success=true, errormsg=nothing)
end