Append a chunk of text to this buffer and update the timestamp.
(self, text: str)
| 60 | self.agent_name: Optional[str] = agent_name |
| 61 | |
| 62 | def append(self, text: str): |
| 63 | """Append a chunk of text to this buffer and update the timestamp.""" |
| 64 | if text: |
| 65 | self.parts.append(text) |
| 66 | self.last_updated = time.monotonic() |
| 67 | |
| 68 | def snapshot_payload(self) -> Optional[BaseResponseDataPayload]: |
| 69 | """Return the current aggregate content as a payload without clearing. |
no outgoing calls