chore: cleanup, identify goal from conversation when evaluting achievement

Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
mudler
2025-04-12 10:52:12 +02:00
parent 209a9989c4
commit 0e3df1562c
3 changed files with 96 additions and 43 deletions

View File

@@ -10,12 +10,11 @@ import (
// NewGoal creates a new intention action
// The inention action is special as it tries to identify
// a tool to use and a reasoning over to use it
func NewGoal(s ...string) *GoalAction {
return &GoalAction{tools: s}
func NewGoal() *GoalAction {
return &GoalAction{}
}
type GoalAction struct {
tools []string
}
type GoalResponse struct {
Goal string `json:"goal"`