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

Method on_text_chunk

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

Source from the content-addressed store, hash-verified

1161 start = time.monotonic()
1162
1163 def on_text_chunk(chunk: str) -> None:
1164 self._emit({
1165 "type": "stream_event",
1166 "session_id": self.session_id,
1167 "event": {
1168 "type": "content_block_delta",
1169 "delta": {"type": "text_delta", "text": chunk},
1170 },
1171 })
1172
1173 def on_thinking_chunk(chunk: str) -> None:
1174 # Live reasoning deltas → a separate thinking delta the TUI renders

Callers

nothing calls this directly

Calls 1

_emitMethod · 0.95

Tested by

no test coverage detected