类class
agentscope.app.workspace_managerPrewarmConfig
class PrewarmConfig(BaseModel)
源码Source
agentscope/app/workspace_manager/_prewarm.py:36–55预热配置,保存相关配置项。位于 agentscope.app.workspace_manager 包。
How many workspaces a manager keeps built ahead of demand. Declared in agentscope.app.workspace_manager.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
size | int | 大小字段。 | Field(default=0, ge=0, description='Workspaces to keep built and idle, ready to hand to the next session that needs one. 0 disables pre-warming.') |
max_creating | int | `max_creating` 字段。 | Field(default=4, gt=0, description='Ceiling on builds running at once, so a burst of sessions queues instead of stampeding the provider.') |
属性详情Attribute Detail
size
int = Field(default=0, ge=0, description='Workspaces to keep built and idle, ready to hand to the next session that needs one. 0 disables pre-warming.')大小字段。声明为 int。
Workspaces to keep built and idle, ready to hand to the next session that needs one.
源码Source
agentscope/app/workspace_manager/_prewarm.py:39max_creating
int = Field(default=4, gt=0, description='Ceiling on builds running at once, so a burst of sessions queues instead of stampeding the provider.')max_creating 字段。声明为 int。
Ceiling on builds running at once, so a burst of sessions queues instead of stampeding the provider.
源码Source
agentscope/app/workspace_manager/_prewarm.py:48