Repository navigation
·
11 commits
to main
since this release
Patch Changes
-
#3988
17862acThanks @mattzcarey! -AIChatAgentanduseAgentChat. See Upgrading from ai-chat 0.12.- A turn cut off by a restart is recovered under its request id and ends once; a message queued behind it is answered afterwards.
- Rate-limit, transient and overflow errors are retried without
classifyChatError;chatRecovery.stableTimeoutMsis deprecated. - While a reply cut off mid-stream is continued,
this.messagesends in a user message asking the model to carry on. - A message sent while a turn runs is stored when its own turn starts, so the transcript reads
U1, A1, U2, A2. - A new message sent while a reply waits on a client tool or an approval is answered, with the waiting call failed first.
continueLastTurn()is skipped while the reply waits on a client tool or an approval; recovery no longer calls an overridden one.- Turns store their messages directly: a
persistMessagesoverride no longer sees a turn's writes. getCurrentAgent().connectionin a turn is the asking tab while it is connected, and its new connection after a reconnect.- Each turn is traced as one
invoke_agentspan; three setup spans are gone. useAgentChat: a Clear while a reply streams no longer leaves the partial reply, and a recovering reply is not reported aserror.
-
#3988
17862acThanks @mattzcarey! - Upgradeagents,@cloudflare/ai-chatand@cloudflare/thinktogether. See Upgrading from ai-chat 0.12 and Upgrading Think from 0.24.@cloudflare/ai-chatand@cloudflare/thinkneedagents0.35.0 or later;agents/chatis internal and exports less.- An agent from the previous release migrates its storage in place at its first start; rolling back afterwards is not supported.