From 0f2a33bcdda6ad4e2d81b4f330b14752ade04c13 Mon Sep 17 00:00:00 2001 From: narawat Date: Fri, 3 Jul 2026 20:30:24 +0700 Subject: [PATCH] update --- Project.toml | 2 +- src/llmUtil.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index 6f51dc7..8f7a5a9 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "GeneralUtils" uuid = "c6c72f09-b708-4ac8-ac7c-2084d70108fe" -version = "0.4.6" +version = "0.4.7" authors = ["tonaerospace "] [deps] diff --git a/src/llmUtil.jl b/src/llmUtil.jl index f20ca42..0faea44 100644 --- a/src/llmUtil.jl +++ b/src/llmUtil.jl @@ -485,8 +485,8 @@ julia> YiemAgent.checkAgentResponse_JSON(response_extra, requiredKeys) (false, "Your previous attempt has duplicated points according to the required response format") ``` """ -function checkAgentResponse_JSON(responsedict::Dict, requiredKeys::T - )::Tuple where {T<:Array{String}} +function checkAgentResponse_JSON(responsedict::T1, requiredKeys::T2 + )::Tuple where {T1<:AbstractDict, T2<:Array{String}} _responsedictKey = keys(responsedict) responsedictKey = [i for i in _responsedictKey] # convert into a list is_requiredKeys_in_responsedictKey = [i ∈ responsedictKey for i in requiredKeys]