MCPcopy
hub / github.com/potpie-ai/potpie / append

Function append

potpie/sandbox/tests/e2e/test_local_subprocess_e2e.py:213–224  ·  view source on GitHub ↗
(token: str)

Source from the content-addressed store, hash-verified

211 )
212
213 async def append(token: str) -> None:
214 await local_service.exec(
215 workspace.id,
216 ExecRequest(
217 cmd=(
218 "sh",
219 "-c",
220 f"printf {token} >> log.txt && sleep 0.2 && printf {token} >> log.txt",
221 ),
222 command_kind=CommandKind.WRITE,
223 ),
224 )
225
226 await asyncio.gather(append("A"), append("B"))
227

Calls 2

ExecRequestClass · 0.90
execMethod · 0.45

Tested by

no test coverage detected