Fetch To Local • AI Agent SDK

fetch_to_local: Fetch “remote_path“ out of the sandbox to a local path.

fetch_to_local

Async

Method

</div>

This is a method of the RemoteMediaResolver class in the protocols module.

Fetch `remote_path` out of the sandbox to a local path.

Returns the gateway-local filesystem path of the fetched copy, which the caller is expected to re-screen through the outbound-path guard before delivery.

Signature

python
async def fetch_to_local(remote_path: str) -> str

Parameters

ParamField str

No description available.

Returns

ResponseField str

The result of the operation.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 3220