oag-mcp
    Preparing search index...

    Function prepareCode

    • Validate and transpile agent code into a base64 ES module.

      Parameters

      • code: string

        agent code

      • language: "typescript" | "javascript"

        "typescript" or "javascript"

      • maxBytes: number

        maximum accepted code size

      Returns PreparedCode

      prepared code or error