Write File • AI Agent SDK
write_file: Write a file to the sandbox.
write_file
Async
Method
</div>
This is a method of the SandboxProtocol class in the protocols module.
Write a file to the sandbox.
Signature
async def write_file(path: str, content: Union[str, bytes]) -> boolParameters
ParamField
strPath within sandbox
ParamField
Union[str, bytes]File content
Returns
ResponseField
boolTrue if successful
Source
View on GitHubpraisonaiagents/sandbox/protocols.py at line 297