Changeset 0.29.2 (#197)
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit is contained in:
@@ -182,6 +182,7 @@ func (e *Executor) Execute(ctx context.Context, task models.Task, run *models.Ta
|
||||
personaID = *task.PersonaID
|
||||
}
|
||||
|
||||
extTools := handlers.BuildExtToolMap(ctx, e.stores, task.OwnerID)
|
||||
sink := handlers.NewHeadlessSink(task.ID)
|
||||
result := handlers.CoreToolLoop(ctx, handlers.LoopConfig{
|
||||
Provider: provider,
|
||||
@@ -203,6 +204,8 @@ func (e *Executor) Execute(ctx context.Context, task models.Task, run *models.Ta
|
||||
MaxTokens: task.MaxTokens,
|
||||
},
|
||||
Streaming: false, // headless — use ChatCompletion
|
||||
Runner: e.runner,
|
||||
ExtTools: extTools,
|
||||
}, sink)
|
||||
|
||||
// ── 6. Persist output based on output_mode ──
|
||||
|
||||
Reference in New Issue
Block a user