agentsociety-scan-modules

Scan AgentSociety2 workspaces to identify and validate agent classes and environment modules.

1.2k|203|Updated Feb 6, 2025
One-click install
npx skills add https://github.com/tsinghua-fib-lab/AgentSociety --skill agentsociety-scan-modules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agentsociety-scan-modules
Source: https://github.com/tsinghua-fib-lab/AgentSociety/tree/main/extension/skills/agentsociety-scan-modules/v1.0.0
Command: npx skills add https://github.com/tsinghua-fib-lab/AgentSociety --skill agentsociety-scan-modules

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps users in the AgentSociety2 framework identify and validate available agent classes and environment modules when module names are unknown or require verification.

Core Features & Use Cases

  • Scan Modules: Identify all available agent classes and environment modules in the workspace.
  • Module Info: Provide detailed information about individual modules, including description, constructor parameters, file location, and import path.
  • Custom Module Validation: Validate that custom modules can be imported and instantiated.

Quick Start

To scan all modules in the current workspace, use the following command: .agentsociety/bin/ags.py scan-modules list

Frequently Asked Questions about agentsociety-scan-modules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I discover available agent classes and environment modules in AgentSociety2?

To discover available agent classes and environment modules in AgentSociety2, run the scan-modules list command to identify all valid components within your current workspace. This allows you to query module details like constructor parameters and import paths.

Can I validate custom agent simulation modules before importing them?

Yes, you can validate custom agent simulation modules to ensure they can be properly imported and instantiated. This module validation process checks your custom environment modules against the AgentSociety2 framework requirements before simulation execution.

Do I need the AgentSociety2 framework installed to scan for environment modules?

Yes, scanning for environment modules requires the AgentSociety2 framework and its associated Python modules to be installed. The discovery and validation processes depend on this underlying framework to accurately identify and verify available agent classes.

What module information can I query for agent-based simulations in AgentSociety2?

You can query detailed module information for agent-based simulations including the module description, constructor parameters, file location, and import path. This ensures you have the necessary details to properly instantiate agent classes and environment modules.

Why is my custom environment module not recognized during module discovery?

If your custom environment module is not recognized during module discovery, it may fail the validation process due to import or instantiation errors. You must ensure the custom module is properly structured to be imported by the AgentSociety2 framework.