> For the complete documentation index, see [llms.txt](https://docs.aios.foundation/aios-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aios.foundation/aios-docs/aios-agent-sdk/storage-api/share_file.md).

# share\_file

#### `share_file`: Share Files

Makes a file accessible in the AIOS environment.

```python
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:**

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

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