mount
mount
: Mount Storage Directory
mount
: Mount Storage DirectoryMounts 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 requestroot_dir
: Directory path to mount as storage rootbase_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