Skip to content

Conversation

@ronanjia
Copy link
Collaborator

A basic UI is added to oasis, which now can be used to generate customized user data for simulation

INFO
This UI is written in React + NestJS wrapped by React Router v7

  • React is for the HTML
  • NestJS call oasis python function by spawn a "node:child_process" and run the code.

PART 1: Examples in Python

  • Bridge file for Nodejs to invoke python function is placed here examples/child_process_bridge/call_from_nodejs.py
  • In the same directory, file reddit_user_generate.py handles the code to generate agent user from React

PART 2: UI for Web

  • Folder "ui/web" is added to Project root path.
  • Directory ui/web/src contains the NestJS code to invoke python code while return result to React
  • Directory ui/web/app contains the React code to Show the page

FUNCTION AVAILABLE

  • In Simulation Setting Page, user can now customize the parameters for generating simulation agent users by Clicking Button Advanced.
  • Generated User Data would be stored to path like /data/user_data/user_data_{count}.json
  • The Play Sim function is under construction, a basic functional version would be available next week. HOPEFULLY

A basic UI is added to oasis, which now can be used to generate customized user data for simulation
@ronanjia
Copy link
Collaborator Author

  • Start UI by cd into directory ui/web
  • A Node env is required, go to here to install
  • Install package dependencies by npm install or yarn install
  • Run UI by npm dev or npm dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

【Feature Request】Introduce UI-Based Configuration for Agent Relationships, Attributes, and Environment Settings

3 participants