update add thoughtlog

This commit is contained in:
2023-11-27 03:01:40 +00:00
parent da983f2874
commit ef67e9fd19
3 changed files with 39 additions and 16 deletions

View File

@@ -91,11 +91,12 @@ end
)
```
"""
function sendReceivePrompt(a::T, prompt::String; timeout::Int=120) where {T<:agent}
function sendReceivePrompt(a::T, prompt::String; max_tokens=256, timeout::Int=120) where {T<:agent}
a.msgMeta[:msgId] = "$(uuid4())" # new msg id for each msg
msg = Dict(
:msgMeta=> a.msgMeta,
:txt=> prompt,
:max_tokens=>max_tokens
)
payloadChannel = Channel(1)