|
@@ -1322,7 +1322,10 @@ export const layer = Layer.effect(
|
|
|
sessionID,
|
|
sessionID,
|
|
|
parentSessionID: session.parentID,
|
|
parentSessionID: session.parentID,
|
|
|
system,
|
|
system,
|
|
|
- messages: [...modelMsgs, ...(isLastStep ? [{ role: "assistant" as const, content: MAX_STEPS_PROMPT }] : [])],
|
|
|
|
|
|
|
+ messages: [
|
|
|
|
|
+ ...modelMsgs,
|
|
|
|
|
+ ...(isLastStep ? [{ role: "assistant" as const, content: MAX_STEPS_PROMPT }] : []),
|
|
|
|
|
+ ],
|
|
|
tools,
|
|
tools,
|
|
|
model,
|
|
model,
|
|
|
toolChoice: format.type === "json_schema" ? "required" : undefined,
|
|
toolChoice: format.type === "json_schema" ? "required" : undefined,
|