MCPcopy Create free account
hub / github.com/ValueCell-ai/valuecell / append

Method append

python/valuecell/core/event/buffer.py:62–66  ·  view source on GitHub ↗

Append a chunk of text to this buffer and update the timestamp.

(self, text: str)

Source from the content-addressed store, hash-verified

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.

Callers 15

ingestMethod · 0.95
test_append_textMethod · 0.95
detect_browser_languageFunction · 0.80
check_empty_valuesFunction · 0.80
save_itemMethod · 0.80
get_itemsMethod · 0.80

Calls

no outgoing calls

Tested by 15

test_append_textMethod · 0.76
emitMethod · 0.64
flush_task_responseMethod · 0.64
ensure_conversationMethod · 0.64
fake_sleepFunction · 0.64
callbackFunction · 0.64
fake_create_taskFunction · 0.64