This commit is contained in:
narawat lamaiin
2024-05-07 06:30:24 +07:00
parent 8cc5606ae8
commit 43e7ba3991
4 changed files with 59 additions and 44 deletions

View File

@@ -125,6 +125,10 @@ end
julia>
```
# TODO
- [] update docs
- [] add to remove <<< user option select >>> and <<| reward |>>
# Signature
"""
function virtualWineCustomerChatbox(a::T1, input::T2)::String where {T1<:agent, T2<:AbstractString}
@@ -158,9 +162,9 @@ function virtualWineCustomerChatbox(a::T1, input::T2)::String where {T1<:agent,
)
@show outgoingMsg
result = GeneralUtils.sendReceiveMqttMsg(outgoingMsg; timeout=120)
response = result[:response][:text]
response = result[:response]
return response
return (response[:text], response[:select], response[:reward], response[:isterminal])
end