share_file
share_file
: Share Files
share_file
: Share FilesMakes 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 filefile_path
: Path to the file to be sharedbase_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