create_dir

create_dir: Create Directory

Creates a new directory at the specified path.

def create_dir(
    agent_name: str, 
    dir_path: str,
    base_url: str = aios_kernel_url
) -> StorageResponse

Parameters:

  • agent_name: Identifier for the agent making the request

  • dir_path: Path where the new directory should be created

  • base_url: API endpoint URL

Returns:

  • StorageResponse object containing creation status

Example:

# Create a project directory structure
response = create_dir(
    "project_manager",
    "projects/new_webapp/src"
)

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

Last updated