This commit is contained in:
2026-07-03 20:30:24 +07:00
parent b8f84846bb
commit 0f2a33bcdd
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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]