agentsociety.storage.model

Module Contents

Classes

Experiment

Experiment model

Functions

agent_profile

Create agent profile table

agent_status

Create agent status table

agent_survey

Create agent survey table

agent_dialog

Create agent dialog table

global_prompt

Create global prompt table

pending_dialog

Create pending dialog table

pending_survey

Create pending survey table

task_result

Create task result table

metric

Create metric table

Data

API

agentsociety.storage.model.__all__

[‘agent_profile’, ‘agent_status’, ‘agent_survey’, ‘agent_dialog’, ‘global_prompt’, ‘pending_dialog’,…

agentsociety.storage.model.agent_profile(table_name: str)

Create agent profile table

agentsociety.storage.model.agent_status(table_name: str)

Create agent status table

agentsociety.storage.model.agent_survey(table_name: str)

Create agent survey table

agentsociety.storage.model.agent_dialog(table_name: str)

Create agent dialog table

agentsociety.storage.model.global_prompt(table_name: str)

Create global prompt table

agentsociety.storage.model.pending_dialog(table_name: str)

Create pending dialog table

agentsociety.storage.model.pending_survey(table_name: str)

Create pending survey table

agentsociety.storage.model.task_result(table_name: str)

Create task result table

agentsociety.storage.model.metric(table_name: str)

Create metric table

class agentsociety.storage.model.Experiment

Bases: agentsociety.storage._base.Base

Experiment model

__tablename__

None

tenant_id: sqlalchemy.orm.Mapped[str]

‘mapped_column(…)’

id: sqlalchemy.orm.Mapped[uuid.UUID]

‘mapped_column(…)’

name: sqlalchemy.orm.Mapped[str]

‘mapped_column(…)’

num_day: sqlalchemy.orm.Mapped[int]

‘mapped_column(…)’

status: sqlalchemy.orm.Mapped[int]

‘mapped_column(…)’

cur_day: sqlalchemy.orm.Mapped[int]

‘mapped_column(…)’

cur_t: sqlalchemy.orm.Mapped[float]

‘mapped_column(…)’

config: sqlalchemy.orm.Mapped[str]

‘mapped_column(…)’

error: sqlalchemy.orm.Mapped[str]

‘mapped_column(…)’

input_tokens: sqlalchemy.orm.Mapped[int]

‘mapped_column(…)’

output_tokens: sqlalchemy.orm.Mapped[int]

‘mapped_column(…)’

created_at: sqlalchemy.orm.Mapped[datetime.datetime]

‘mapped_column(…)’

updated_at: sqlalchemy.orm.Mapped[datetime.datetime]

‘mapped_column(…)’

property agent_profile_tablename

Get agent profile table name

property agent_status_tablename

Get agent status table name

property agent_dialog_tablename

Get agent dialog table name

property agent_survey_tablename

Get agent survey table name

property global_prompt_tablename

Get global prompt table name

property pending_dialog_tablename

Get pending dialog table name

property pending_survey_tablename

Get pending survey table name

property task_result_tablename

Get task result table name

property metric_tablename

Get metric table name

to_dict()