File Management
What is file management?
Init an LM Invoker
from dotenv import load_dotenv
load_dotenv()
from gllm_inference.lm_invoker import GoogleLMInvoker
lm_invoker = GoogleLMInvoker("gemini-2.5-flash-lite")Upload a File
from gllm_inference.schema import Attachment
file = Attachment.from_path('path/to/file.pdf')
uploaded_file = await lm_invoker.file.upload(attachment)List the Files
Invoke LM invoker with Uploaded File
Delete the File
Troubleshooting
Last updated
Was this helpful?