fix(pick_action): improve action pickup by using only the assistant thought process (#25)
* fix(pick_action): improve action pickup by using only the assistant thought process Signed-off-by: mudler <mudler@localai.io> * fix: improve templates Signed-off-by: mudler <mudler@localai.io> --------- Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
committed by
GitHub
parent
4010f9d86c
commit
dd4fbd64d3
@@ -657,11 +657,7 @@ func (a *Agent) consumeJob(job *types.Job, role string) {
|
||||
conv = a.addFunctionResultToConversation(chosenAction, actionParams, result, conv)
|
||||
}
|
||||
|
||||
//conv = append(conv, messages...)
|
||||
//conv = messages
|
||||
|
||||
// given the result, we can now ask OpenAI to complete the conversation or
|
||||
// to continue using another tool given the result
|
||||
// given the result, we can now re-evaluate the conversation
|
||||
followingAction, followingParams, reasoning, err := a.pickAction(job.GetContext(), reEvaluationTemplate, conv, maxRetries)
|
||||
if err != nil {
|
||||
job.Result.Conversation = conv
|
||||
|
||||
Reference in New Issue
Block a user