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

Function _tool_part

src/agent/opencode_agent/tests/test_runner.py:249–261  ·  view source on GitHub ↗
(part_id, tool, *, input=None, output=None)

Source from the content-addressed store, hash-verified

247
248
249def _tool_part(part_id, tool, *, input=None, output=None):
250 return {
251 "type": "message.part.updated",
252 "properties": {
253 "part": {
254 "id": part_id,
255 "type": "tool",
256 "tool": tool,
257 "input": input or {},
258 "output": output,
259 }
260 },
261 }
262
263
264def _step_finish(input_tokens, output_tokens):

Calls

no outgoing calls

Tested by

no test coverage detected