Skip to content

Project Structure

├── main.py # Main entry file
├── requirements.txt # Python dependencies
├── README.md # Project documentation
├── input_schema.json # UI Worker input configuration file
├── output_schema.json # UI Worker output configuration file
├── sdk.py # SDK file
├── sdk_pb2.py
├── sdk_pb2_grpc.py
├── main.js # Main entry file
├── package.json # Node.js dependencies
├── README.md # Project documentation
├── input_schema.json # UI Worker input configuration file
├── output_schema.json # UI Worker output configuration file
├── sdk.js # SDK file
├── sdk_pb.js
├── sdk_grpc_pb.js
├── main.go # Main entry file
├── go.mod # Go module file
├── go.sum # Go dependencies checksum
├── README.md # Project documentation
├── input_schema.json # UI Worker input configuration file
├── output_schema.json # UI Worker output configuration file
├── GoSdk/ # SDK directory
│ ├── sdk.go
│ ├── sdk.pb.go
│ └── sdk_grpc.pb.go
  • main.py / main.js / main.go: The main entry point for the Worker project.
  • The filename must be main, with the extension depending on the chosen language.
LanguageFilePurpose
Node.jspackage.jsonNode.js dependencies
Pythonrequirements.txtPython dependencies
Gogo.modGo module definition

These files declare all dependencies required to run the project.

  • UI Worker input configuration file
  • Defines the input form displayed on the platform
  • See Input Schema for details
  • UI Worker output configuration file
  • Defines the output data table structure (column headers)
  • See Output Schema for details
  • Documentation of Worker functionality
  • Includes usage instructions and important notes
  • Get runtime parameters passed when the script starts
  • Access task configuration, authentication info, etc.
  • Define data table structure (headers)
  • Store collected result data
  • Support batch saving and resume from breakpoint
  • Standardized log interface
  • Support multiple log levels: INFO, WARN, ERROR
  • Logs are automatically collected and displayed by the platform