fix: gci field alignment and golines >120 char in loop_run.go
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c11a43e766
commit
d8a18daa11
1 changed files with 9 additions and 5 deletions
|
|
@ -437,9 +437,13 @@ func (al *AgentLoop) runAgentLoop(ctx context.Context, agent *AgentInstance, opt
|
||||||
ts.session.SetHistory(opts.SessionKey, history[:ts.initialHistoryLength])
|
ts.session.SetHistory(opts.SessionKey, history[:ts.initialHistoryLength])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
al.emitEvent(EventKindTurnEnd,
|
abortMeta := EventMeta{
|
||||||
EventMeta{AgentID: agent.ID, TurnID: scope.turnID, SessionKey: opts.SessionKey, Iteration: iteration},
|
AgentID: agent.ID,
|
||||||
TurnEndPayload{
|
TurnID: scope.turnID,
|
||||||
|
SessionKey: opts.SessionKey,
|
||||||
|
Iteration: iteration,
|
||||||
|
}
|
||||||
|
al.emitEvent(EventKindTurnEnd, abortMeta, TurnEndPayload{
|
||||||
Status: TurnEndStatusAborted,
|
Status: TurnEndStatusAborted,
|
||||||
Duration: time.Since(turnStart),
|
Duration: time.Since(turnStart),
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue