AS AgentScopeAPI 手册 / API Reference
类class agentscope.app.storage

ScheduleData

class ScheduleData(BaseModel)
源码Source agentscope/app/storage/_model/_schedule.py:40–105

调度配置数据。位于 agentscope.app.storage 包。

The schedule configuration data. Declared in agentscope.app.storage.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
namestr
调度的展示名称。
Field(description='Display name of the schedule.')
descriptionstr
`description` 字段。
Field(default='', description='The description of the schedule, including its purpose, trigger conditions, etc.')
enabledbool
已启用字段。
Field(default=True, description='Whether the schedule is active. Disabled schedules are retained but will not trigger.')
timezonestr
`timezone` 字段。
Field(default=_get_local_timezone(), description="IANA timezone name used to evaluate the cron expression, e.g. 'America/New_York' or 'Asia/Shanghai'.")
cron_expressionstr
`cron_expression` 字段。
Field(description="Standard 5-field cron expression, e.g. '0 9 * * 1-5'.")
started_atdatetime
已启动 at字段。
Field(description='The date and time the schedule was started.', default_factory=lambda: datetime.now().astimezone())
ended_atdatetime | None
`ended_at` 字段。
Field(default=None, description='The date and time the schedule was ended.')
chat_model_configChatModelConfig
聊天模型配置字段。
Field(description='Model configuration for the auto-created session.')
statefulbool
`stateful` 字段。
Field(title='Stateful', default=False, description='Whether consecutive executions share the same session context. If not, each execution will have its own state.')
permission_modePermissionMode
权限模式字段。
Field(title='Permission mode', default=PermissionMode.DONT_ASK, description='Permission level for the agent during scheduled execution. Defaults to DONT_ASK since no user is present to answer prompts.')
sourceScheduleSource
来源字段。
Field(default=ScheduleSource.USER, description='Indicates how this schedule was created.')
source_session_idstr
来源会话标识字段。
Field(default='', description='The source session identifier, used for resource retrieval.')

属性详情Attribute Detail

name

str = Field(description='Display name of the schedule.')

调度的展示名称。

Display name of the schedule.

源码Source agentscope/app/storage/_model/_schedule.py:43

description

str = Field(default='', description='The description of the schedule, including its purpose, trigger conditions, etc.')

description 字段。声明为 str。

The description of the schedule, including its purpose, trigger conditions, etc.

源码Source agentscope/app/storage/_model/_schedule.py:45

enabled

bool = Field(default=True, description='Whether the schedule is active. Disabled schedules are retained but will not trigger.')

已启用字段。声明为 bool。

Whether the schedule is active.

源码Source agentscope/app/storage/_model/_schedule.py:51

timezone

str = Field(default=_get_local_timezone(), description="IANA timezone name used to evaluate the cron expression, e.g. 'America/New_York' or 'Asia/Shanghai'.")

timezone 字段。声明为 str。

IANA timezone name used to evaluate the cron expression, e.g.

源码Source agentscope/app/storage/_model/_schedule.py:57

cron_expression

str = Field(description="Standard 5-field cron expression, e.g. '0 9 * * 1-5'.")

cron_expression 字段。声明为 str。

Standard 5-field cron expression, e.g.

源码Source agentscope/app/storage/_model/_schedule.py:63

started_at

datetime = Field(description='The date and time the schedule was started.', default_factory=lambda: datetime.now().astimezone())

已启动 at字段。声明为 datetime。

The date and time the schedule was started.

源码Source agentscope/app/storage/_model/_schedule.py:67

ended_at

datetime | None = Field(default=None, description='The date and time the schedule was ended.')

ended_at 字段。声明为 datetime | None。

The date and time the schedule was ended.

源码Source agentscope/app/storage/_model/_schedule.py:72

chat_model_config

ChatModelConfig = Field(description='Model configuration for the auto-created session.')

聊天模型配置字段。声明为 ChatModelConfig。

Model configuration for the auto-created session.

源码Source agentscope/app/storage/_model/_schedule.py:77

stateful

bool = Field(title='Stateful', default=False, description='Whether consecutive executions share the same session context. If not, each execution will have its own state.')

stateful 字段。声明为 bool。

Whether consecutive executions share the same session context.

源码Source agentscope/app/storage/_model/_schedule.py:81

permission_mode

PermissionMode = Field(title='Permission mode', default=PermissionMode.DONT_ASK, description='Permission level for the agent during scheduled execution. Defaults to DONT_ASK since no user is present to answer prompts.')

权限模式字段。声明为 PermissionMode。

Permission level for the agent during scheduled execution.

源码Source agentscope/app/storage/_model/_schedule.py:88

source

ScheduleSource = Field(default=ScheduleSource.USER, description='Indicates how this schedule was created.')

来源字段。声明为 ScheduleSource。

Indicates how this schedule was created.

源码Source agentscope/app/storage/_model/_schedule.py:96

source_session_id

str = Field(default='', description='The source session identifier, used for resource retrieval.')

来源会话标识字段。声明为 str。

The source session identifier, used for resource retrieval.

源码Source agentscope/app/storage/_model/_schedule.py:101
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.