Repository navigation
Chat: programmatic turns under a given id, the run checkpoint on a model call, a cancel reason (4.iii 6f, parity 10, draft) - #3342
Closed
mattzcarey wants to merge 1 commit into
Closed
mattzcarey wants to merge 1 commit into
mattzcarey wants to merge 1 commit into
Conversation
|
agents
@cloudflare/ai-chat
@cloudflare/codemode
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
Contributor
|
✅ agents import sizes: no significant changes ( |
mattzcarey
force-pushed
the
slim/chat-fn-6f10
branch
from
November 27, 2026 02:01
bb5d7c8 to
4205e6a
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f11
branch
from
November 27, 2026 02:01
9fe6dd0 to
9f3b258
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f10
branch
from
November 27, 2026 02:04
4205e6a to
7a0e7e7
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f11
branch
from
November 27, 2026 02:04
9f3b258 to
98f3f0c
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f10
branch
from
November 27, 2026 02:07
7a0e7e7 to
ebd8f5f
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f11
branch
from
November 27, 2026 02:07
98f3f0c to
55d0492
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f10
branch
from
November 27, 2026 02:13
ebd8f5f to
7fec15c
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f11
branch
from
November 27, 2026 02:13
55d0492 to
4418808
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f10
branch
from
November 27, 2026 02:27
7fec15c to
836896e
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f11
branch
2 times, most recently
from
November 27, 2026 02:28
01a4001 to
b533840
Compare
…all carries the run's checkpoint, cancelTurn takes a reason (agent-runs' R3 needs)
mattzcarey
force-pushed
the
slim/chat-fn-6f10
branch
from
November 27, 2026 04:12
cdffe74 to
82fc0a7
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f11
branch
from
November 27, 2026 04:12
b533840 to
34e3dec
Compare
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DRAFT, 4.iii 6f parity step 10, stacked on #3330. What R3-identity (agent-runs) needs from the chat core, items 1, 3 and 5 of its list:
submitTurn(…, { requestId, retain, metadata })starts a programmatic turn under the id it's given, kept after it settles, with its metadata. The core's own metadata is under itschatkey, so anagentToolkey sits beside it.ChatModelCall.checkpointis the turn's run checkpoint, for state a turn's tools keep across a reset (an agent tool's progress and milestones). Asetis one statement. A reader outside the run sees it withtasks.checkpointOfwhile the run is live; a settled run's checkpoints are gone, so what a parent reads after that is the result.cancelTurn(deps, id, reason?)carries the caller's reason to the run.Tests:
agent-tool:run-1is retained with its metadata, and its progress is visible while it runs;Both fail before.
Cost: none on the hot path.