Development Kit

Build your own tools and automations

Use our development kit to build applications on top of the Arcane Engine. The kit uses our API to provide a set of tools and libraries which allow you to define and run tasks directly in your code.

Install the SDK package as a dependency:

Python

pip install arcane-engine

NodeJS

(coming soon)

Use it in your code:


from arcane.engine import ArcaneEngine
from arcane.util import wait_for_result

engine = ArcaneEngine()

def understand_code(code_to_understand, repo):
  prompt = f"Find this part of the code and read the relevant files: {code_to_understand}"
  task = engine.create_task(repo, prompt)
  return wait_for_result(task)

def document_code(explained_code, repo):
  prompt = f"{explained_code}\n---\nWrite a document explaining the code above and save it in `docs/`"
  engine.create_task(repo, prompt)


# Document the ArcaneEngine class
repo = "arc-eng/kit"
explained_code = understand_code("The ArcaneEngine class", repo)
document_code(explained_code, repo)