MCPcopy
hub / github.com/microsoft/agent-lightning / update

Method update

agentlightning/store/collection/base.py:261–275  ·  view source on GitHub ↗

Update the given items in the collection. Args: items: The items to update in the collection. update_fields: The fields to update. If not provided, all fields in the type will be updated. Only applicable if the item type is a Pydantic BaseModel.

(self, items: Sequence[T], update_fields: Sequence[str] | None = None)

Source from the content-addressed store, hash-verified

259 raise NotImplementedError()
260
261 async def update(self, items: Sequence[T], update_fields: Sequence[str] | None = None) -> Sequence[T]:
262 """Update the given items in the collection.
263
264 Args:
265 items: The items to update in the collection.
266 update_fields: The fields to update. If not provided, all fields in the type will be updated.
267 Only applicable if the item type is a Pydantic BaseModel.
268
269 Raises:
270 ValueError: If an item with the primary keys does not exist.
271
272 Returns:
273 The items that were updated.
274 """
275 raise NotImplementedError()
276
277 async def upsert(self, items: Sequence[T], update_fields: Sequence[str] | None = None) -> Sequence[T]:
278 """Upsert the given items into the collection.

Callers 15

build_chartjsFunction · 0.45
_maybe_flushMethod · 0.45
update_resourcesMethod · 0.45
_on_attempt_heartbeatMethod · 0.45
record_attributesMethod · 0.45
convert_call_to_spanMethod · 0.45
record_attributesMethod · 0.45
_async_set_upMethod · 0.45
get_test_metricsMethod · 0.45
_train_stepMethod · 0.45

Calls

no outgoing calls