MCPcopy Create free account
hub / github.com/IBM/AssetOpsBench / _text_part

Function _text_part

src/agent/opencode_agent/tests/test_runner.py:242–246  ·  view source on GitHub ↗
(part_id, text, *, message_id=None, part_type="text")

Source from the content-addressed store, hash-verified

240 assert runner._config["agent"]["assetops"]["permission"]["read"] == "allow"
241
242def _text_part(part_id, text, *, message_id=None, part_type="text"):
243 part = {"id": part_id, "type": part_type, "text": text}
244 if message_id is not None:
245 part["messageID"] = message_id
246 return {"type": "message.part.updated", "properties": {"part": part}}
247
248
249def _tool_part(part_id, tool, *, input=None, output=None):

Calls

no outgoing calls

Tested by

no test coverage detected