Skip to content

Commit fded506

Browse files
committed
Evals need to call tools automatically
Signed-off-by: David Gageot <david.gageot@docker.com>
1 parent dc4987c commit fded506

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pkg/evaluation/evaluation.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ func runLoop(ctx context.Context, rt *runtime.LocalRuntime, eval *session.Sessio
7777
}
7878
}
7979

80-
sess := session.New(session.WithMaxIterations(rt.CurrentAgent().MaxIterations()))
80+
sess := session.New(
81+
session.WithToolsApproved(true),
82+
session.WithMaxIterations(rt.CurrentAgent().MaxIterations()),
83+
)
8184
for i := range userMessages {
8285
sess.AddMessage(&userMessages[i])
8386
_, err := rt.Run(ctx, sess)

0 commit comments

Comments
 (0)