This commit is contained in:
narawat lamaiin
2024-04-29 20:55:02 +07:00
parent 8f95f08695
commit 3316ec4ecf
4 changed files with 84 additions and 11 deletions

View File

@@ -47,13 +47,13 @@ end
""" Think and choose action
# Arguments
`a::T1`
- `a::T1`
one of Yiem's agent
`state::T2`
- `state::T2`
a game state
# Return
`thought::Dict`
- `thought::Dict`
# Example
```jldoctest
@@ -145,7 +145,7 @@ function decisionMaker(a::T1, state::T2)::String where {T1<:agent, T2<:AbstractD
prompt = formatLLMtext_llama3instruct("system", _prompt)
msgMeta = GeneralUtils.generate_msgMeta(
a.config[:externalService][:text2textinstruct][:mqtttopic],
a.config[:externalservice][:text2textinstruct][:mqtttopic],
senderName= "decisionMaker",
senderId= a.id,
receiverName= "text2textinstruct",