mount

mount: Mount Storage Directory

Mounts a directory as the root storage location for an agent.

def mount(
    agent_name: str, 
    root_dir: str,
    base_url: str = aios_kernel_url
) -> StorageResponse

Parameters:

  • agent_name: Identifier for the agent making the request

  • root_dir: Directory path to mount as storage root

  • base_url: API endpoint URL (default: configured AIOS kernel URL)

Returns:

  • StorageResponse object containing operation result

Example:

# Mount a personal storage directory for the agent
response = mount(
    "research_agent",
    "/data/research_projects"
)

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

Last updated