reason should be said from system'
'
This commit is contained in:
@@ -205,10 +205,12 @@ func (a *Agent) pickAction(ctx context.Context, templ string, messages []openai.
|
|||||||
actionsID = append(actionsID, m.Definition().Name.String())
|
actionsID = append(actionsID, m.Definition().Name.String())
|
||||||
}
|
}
|
||||||
intentionsTools := action.NewIntention(actionsID...)
|
intentionsTools := action.NewIntention(actionsID...)
|
||||||
|
|
||||||
|
//XXX: Why we add the reason here?
|
||||||
params, err := a.decision(ctx,
|
params, err := a.decision(ctx,
|
||||||
append(c, openai.ChatCompletionMessage{
|
append(c, openai.ChatCompletionMessage{
|
||||||
Role: "assistent",
|
Role: "system",
|
||||||
Content: reason,
|
Content: "The assistant thought: " + reason,
|
||||||
}),
|
}),
|
||||||
Actions{intentionsTools}.ToTools(),
|
Actions{intentionsTools}.ToTools(),
|
||||||
intentionsTools.Definition().Name)
|
intentionsTools.Definition().Name)
|
||||||
|
|||||||
Reference in New Issue
Block a user