MCPcopy
hub / github.com/volcengine/OpenViking / append

Method append

openviking/ingest/replay.py:74–80  ·  view source on GitHub ↗
(self, ov_session_id: str, messages: List[Dict[str, Any]])

Source from the content-addressed store, hash-verified

72 )
73
74 async def append(self, ov_session_id: str, messages: List[Dict[str, Any]]) -> int:
75 total = 0
76 for start in range(0, len(messages), _BATCH):
77 chunk = messages[start : start + _BATCH]
78 result = await self._client.batch_add_messages(ov_session_id, chunk)
79 total += int(result.get("added", len(chunk)) or 0)
80 return total
81
82 async def commit(self, ov_session_id: str, keep_recent_count: int = 0) -> Dict[str, Any]:
83 return await self._client.commit_session(ov_session_id, keep_recent_count=keep_recent_count)

Callers 15

_embedding_probe_labelFunction · 0.45
_masked_inputFunction · 0.45
_select_embedding_presetFunction · 0.45
_select_vlm_presetFunction · 0.45
_prompt_cloud_vlmFunction · 0.45
_prompt_cloud_embeddingFunction · 0.45
_wizard_serverFunction · 0.45
_run_in_threadFunction · 0.45
_validate_backendMethod · 0.45

Calls 2

batch_add_messagesMethod · 0.45
getMethod · 0.45

Tested by 10

findMethod · 0.36
searchMethod · 0.36
_searchMethod · 0.36
lsMethod · 0.36
globMethod · 0.36
grepMethod · 0.36
add_messageMethod · 0.36
commit_sessionMethod · 0.36
_message_textFunction · 0.36