Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.trelent.com/llms.txt

Use this file to discover all available pages before exploring further.

LocalImporter uploads files from your local machine into the run environment.
from trelent_agents import Client, LocalImporter

client = Client(client_id="...", client_secret="...")

run = client.runs.create(
    sandbox="translator:latest",
    prompt="Translate all files in /mnt/ to Spanish.",
    imports=[
        LocalImporter(path="./documents"),
    ],
)
The SDK tarballs and uploads the path contents. A directory’s contents appear directly under /mnt/; a single file appears at /mnt/<filename>.