share_file

share_file: Share Files

Makes a file accessible in the AIOS environment.

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

Parameters:

  • agent_name: Identifier for the agent sharing the file

  • file_path: Path to the file to be shared

  • base_url: API endpoint URL

Returns:

  • StorageResponse object containing sharing status

Example:

# Share a dataset file with other agents
response = share_file(
    "data_engineer",
    "datasets/processed_data.csv"
)

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

Last updated