Skip to content

SDK examples

Gene Kogan edited this page Nov 17, 2024 · 1 revision

Working with Eden Python SDK.

To use a tool:

from eve.tool import Tool

async def main():
    tool = Tool.load("flux_dev", db="STAGE")
    return await tool.async_run({
        "prompt": "The universe in a bottle"
    })

import asyncio
result = asyncio.run(main)
print(result)

Non-async version coming soon.

Clone this wiki locally