agentsociety.configs

Submodules

Package Contents

Classes

AgentsConfig

Configuration for different types of agents in the simulation.

Config

Configuration for the simulation.

TaskLoaderConfig

Configuration for the task loader.

IndividualConfig

Configuration for the individual.

Data

API

agentsociety.configs.__all__

[‘EnvConfig’, ‘AgentConfig’, ‘WorkflowStepConfig’, ‘ExpConfig’, ‘EnvironmentConfig’, ‘Config’, ‘load…

class agentsociety.configs.AgentsConfig

Bases: pydantic.BaseModel

Configuration for different types of agents in the simulation.

citizens: list[agentsociety.configs.agent.AgentConfig]

‘Field(…)’

Citizen Agent configuration

firms: list[agentsociety.configs.agent.AgentConfig]

‘Field(…)’

Firm Agent configuration

banks: list[agentsociety.configs.agent.AgentConfig]

‘Field(…)’

Bank Agent configuration

nbs: list[agentsociety.configs.agent.AgentConfig]

‘Field(…)’

NBS Agent configuration

governments: list[agentsociety.configs.agent.AgentConfig]

‘Field(…)’

Government Agent configuration

supervisor: Optional[agentsociety.configs.agent.AgentConfig]

‘Field(…)’

Supervisor Agent configuration

init_funcs: list[Callable[[Any], Union[None, Awaitable[None]]]]

‘Field(…)’

Initialization functions for simulation, the only one argument is the AgentSociety object

serialize_init_funcs(init_funcs, info)
class agentsociety.configs.Config

Bases: pydantic.BaseModel

Configuration for the simulation.

llm: List[agentsociety.llm.LLMConfig]

‘Field(…)’

List of LLM configurations

env: agentsociety.configs.env.EnvConfig

None

Environment configuration

map: agentsociety.environment.MapConfig

None

Map configuration

agents: agentsociety.configs.AgentsConfig

None

Configuration for different types of agents in the simulation.

exp: agentsociety.configs.exp.ExpConfig

None

Experiment configuration

logging_level: str

‘Field(…)’

Logging level

class agentsociety.configs.TaskLoaderConfig

Bases: pydantic.BaseModel

Configuration for the task loader.

task_type: type[agentsociety.taskloader.Task]

None

Task type

file_path: str

None

File path

shuffle: bool

‘Field(…)’

Shuffle the tasks

class agentsociety.configs.IndividualConfig

Bases: pydantic.BaseModel

Configuration for the individual.

name: str

‘Field(…)’

Name of the solver

llm: List[agentsociety.llm.LLMConfig]

‘Field(…)’

List of LLM configurations

env: agentsociety.configs.env.EnvConfig

None

Environment configuration

id: uuid.UUID

‘Field(…)’

Unique identifier for the individual

individual: agentsociety.configs.agent.AgentConfig

None

Individual Agent configuration

task_loader: agentsociety.configs.TaskLoaderConfig

None

Task loader configuration

logging_level: str

‘Field(…)’

Logging level

serialize_id(id, info)