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

Method emit

python/valuecell/core/event/service.py:36–41  ·  view source on GitHub ↗

Annotate, persist, and return the response.

(self, response: BaseResponse)

Source from the content-addressed store, hash-verified

34 return self._conversation_service
35
36 async def emit(self, response: BaseResponse) -> BaseResponse:
37 """Annotate, persist, and return the response."""
38
39 annotated = self._buffer.annotate(response)
40 await self._persist_from_buffer(annotated)
41 return annotated
42
43 async def emit_many(self, responses: Iterable[BaseResponse]) -> list[BaseResponse]:
44 """Persist a batch of responses in order."""

Callers 2

emit_manyMethod · 0.95
test_emit_persists_itemsFunction · 0.45

Calls 2

_persist_from_bufferMethod · 0.95
annotateMethod · 0.45

Tested by 1

test_emit_persists_itemsFunction · 0.36