bc0c6108fc74beffddbe289ae902ded37b0e4b7a
A NATS redelivery or restart RecoverTurns redelivery hit the TurnClaimCompleted branch in TurnRunner.Run and replayed only turn.ResponseText, never the tool calls that produced it -- neither the ledger nor the session store persisted them. The transcript showed the original answer beside a tool-less duplicate, disagreeing about what ran. TurnRecord now carries ToolCalls, saved in the same call as ResponseText via a toolCallRecorder that tees Generate's TurnStream. The completed-duplicate replay walks turn.ToolCalls into stream.ToolCall before replaying the text, so a redelivered turn narrates the same activity as the original. The other replay path (prior-reply, matched by conversation history rather than turn ID) stays deliberately text-only: it exists for the crash race where the assistant message was saved but the turn record was never completed, so there is no persisted tool record for it to replay either. Documented on Run's doc comment rather than left implicit. Closes archie-core-ippu.
Description
Archie connects events from your systems to agents that can investigate, reason, and act.
Define what an event means, map its data into a workflow, and give that workflow an agent equipped for the job: its own execution environment, tools, and identity.
https://archie.catlow.cloud
132 MiB
0 Stars
1 Watchers
0 Forks
Releases
11
Archie v1.62.0
Latest
Languages
Go
76.7%
Vue
13.1%
TypeScript
7.8%
JavaScript
1.2%
Shell
0.6%
Other
0.4%