The markdown-blockifier-default plugin will convert binary data to Steamship's standardized Block format. It runs in an auto-managed cloud stack. Steamship handles API Keys, scaling, and asynchronous tasking.
To use it, first create a new file:
# Create a Steamship client # Inside a package implementation, you can simply use `self.client` client = Steamship(workspace="my-unique-name") # Upload a file file = File.create(content="Contents of your file")
Your file is now saved to Steamship as raw bytes. Let's apply this Blockifier plugin to make it usable.
# Create an instance of this blockifier blockifier = client.use_plugin('markdown-blockifier-default') # Blockify the file blockify_task = file.blockify(blockifier.handle) # Wait for completion of the task. blockify_task.wait()
Now that we've blockified the file, we can query it's contents.
Agents built with the Steamship SDK can be deployed to production-ready APIs with a single command.
The best way to get started is with our Agent Guidebook.