MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / on_thinking_chunk

Method on_thinking_chunk

src/server/agent_server.py:1173–1183  ·  view source on GitHub ↗
(chunk: str)

Source from the content-addressed store, hash-verified

1171 })
1172
1173 def on_thinking_chunk(chunk: str) -> None:
1174 # Live reasoning deltas → a separate thinking delta the TUI renders
1175 # in its streaming thinking view (the original's live thinking, §3).
1176 self._emit({
1177 "type": "stream_event",
1178 "session_id": self.session_id,
1179 "event": {
1180 "type": "content_block_delta",
1181 "delta": {"type": "thinking_delta", "thinking": chunk},
1182 },
1183 })
1184
1185 def on_message(message: Any) -> None:
1186 # Persist into the session conversation so the next turn pairs

Callers

nothing calls this directly

Calls 1

_emitMethod · 0.95

Tested by

no test coverage detected