Coder Social home page Coder Social logo

agent-x's Introduction

AGENT-X Logo AGENT-X

AGENT-X is the label helper component for AGENT, once installed in Chrome it allows for the labeling of HTML elements for training.

A gif of AGENT-X in action

Installation

To install AGENT-X follow the steps below:

  • Clone the project
  • Build the project
  • Open Chrome
  • Go to More Tools -> Extensions
  • Flip the Develop toggle
  • Click the button 'Load unpacked'
  • Select the dist/agent-x folder in the project you cloned earlier.
  • The AGENT-X icon should now be present in Chrome, click on it to ensure it installed properly.

User Guide

For a description of the architecture and design of AGENT-X and the associated AGENT project, read the Autonomous Generation and Exploration System (Agent) and Agent-X User's Guide.

Development

The project is divided into two parts, the PopOver (The small window that appears when the Chrome extension icons is clicked) and the "extension" which handles communication between the PopOver and the web page, as well as interactions with the web page. The "extension" is composed of two major compontents, "Background" and "Content". Content communicates with both the PopOver and Background and is the only method for interacting with the page. Background handles background processes, like API calls. The PopOver project is an Angular 7 application located under src/app while the "extension" is a vanilla JavaScript project located in the src/extension folder.

The Chrome Message Passing framework facilitates communication between the components. It is recommended that you read this page if you are unfamilar with Chrome Message Passing.

JQuery is used to interact with the DOM.

Finally, Angular 7 and RXJS Observables are used for the PopOver. All external interacations to the PopOver are wrapped in Observables in services. This allows for a clean sepeartion of concerns and to re-zone the callbacks since the Chrome APIs exit the NgZone. If you are unfamilar with RXJS Observables it is recommended that you read this.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build. Since the popover loads each time the Chrome Extension icon is clicked, it is recommended to use --prod to mitigate delayed popup responses. This build command will also transpile and copy both the PopOver and "extension" dependencies.

Once the application has been built you can re-install it in a similar fashion to the Installation steps above:

  • Go to More Tools -> Extensions
  • Click the button 'Load unpacked'
  • Select the dist/agent-x folder

Running unit tests

Run ng test to execute the unit tests via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Contributors

  • Justin Phillips
  • Patrick Alt
  • David Adamo
  • Philip Daye
  • Keith Briggs
  • Dionny Santiago
  • Peter J. Clarke
  • Tariq King

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.