fix: correct plan path in replan-required message
Use session/$OLLIE_SESSION_ID/agent/$OLLIE_UNAME/plan instead of outdated s/$OLLIE_SESSION_ID/plan
This commit is contained in:
parent
bb3cb01c24
commit
7100942984
|
|
@ -631,7 +631,7 @@ func run(ctx context.Context, cfg agentConfig, state state) error {
|
|||
if roundsWithoutPlan >= replanGate {
|
||||
state.update(backend.Message{
|
||||
Role: "user",
|
||||
Content: fmt.Sprintf("<system-replan-required>\nYou have executed %d tool rounds without replanning. Stop and write a PLAN: block showing your current checklist before calling any more tools. Update session/$OLLIE_SESSION_ID/agent/$OLLIE_AGENT_ID/plan.\n</system-replan-required>", replanGate),
|
||||
Content: fmt.Sprintf("<system-replan-required>\nYou have executed %d tool rounds without replanning. Stop and write a PLAN: block showing your current checklist before calling any more tools. Update session/$OLLIE_SESSION_ID/agent/$OLLIE_UNAME/plan.\n</system-replan-required>", replanGate),
|
||||
}, nil)
|
||||
roundsWithoutPlan = 0
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue