write_file
write_file: Write Content to File
write_file: Write Content to Filedef write_file(
agent_name: str,
file_path: str,
content: str,
base_url: str = aios_kernel_url
) -> StorageResponse# Write a simple HTML file
html_content = """
<!DOCTYPE html>
<html>
<head>
<title>AIOS Project</title>
</head>
<body>
<h1>Welcome to AIOS</h1>
<p>This is a sample project page.</p>
</body>
</html>
"""
response = write_file(
"web_developer",
"projects/website/index.html",
html_content
)
print(response["response]["response_message"])Last updated