update
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
name = "GeneralUtils"
|
name = "GeneralUtils"
|
||||||
uuid = "c6c72f09-b708-4ac8-ac7c-2084d70108fe"
|
uuid = "c6c72f09-b708-4ac8-ac7c-2084d70108fe"
|
||||||
version = "0.4.6"
|
version = "0.4.7"
|
||||||
authors = ["tonaerospace <tonaerospace.etc@gmail.com>"]
|
authors = ["tonaerospace <tonaerospace.etc@gmail.com>"]
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|||||||
+2
-2
@@ -485,8 +485,8 @@ julia> YiemAgent.checkAgentResponse_JSON(response_extra, requiredKeys)
|
|||||||
(false, "Your previous attempt has duplicated points according to the required response format")
|
(false, "Your previous attempt has duplicated points according to the required response format")
|
||||||
```
|
```
|
||||||
"""
|
"""
|
||||||
function checkAgentResponse_JSON(responsedict::Dict, requiredKeys::T
|
function checkAgentResponse_JSON(responsedict::T1, requiredKeys::T2
|
||||||
)::Tuple where {T<:Array{String}}
|
)::Tuple where {T1<:AbstractDict, T2<:Array{String}}
|
||||||
_responsedictKey = keys(responsedict)
|
_responsedictKey = keys(responsedict)
|
||||||
responsedictKey = [i for i in _responsedictKey] # convert into a list
|
responsedictKey = [i for i in _responsedictKey] # convert into a list
|
||||||
is_requiredKeys_in_responsedictKey = [i ∈ responsedictKey for i in requiredKeys]
|
is_requiredKeys_in_responsedictKey = [i ∈ responsedictKey for i in requiredKeys]
|
||||||
|
|||||||
Reference in New Issue
Block a user