create_file

create_file: Create Empty File

Creates a new empty file at the specified path.

def create_file(
    agent_name: str, 
    file_path: str,
    base_url: str = aios_kernel_url
) -> StorageResponse

Parameters:

  • agent_name: Identifier for the agent making the request

  • file_path: Path where the new file should be created

  • base_url: API endpoint URL

Returns:

  • StorageResponse object containing creation status

Example:

# Create a new Python script file
response = create_file(
    "developer_agent",
    "projects/data_analyzer/main.py"
)

print(response["response"]["response_message"]

Last updated